Simplify code structure for C++ analysis tools
Move all the code for declaring the actual analysis tool into the source
file, and leave only a stub info object in the headers. Make the class
declared in the header provide a static factory method to allow this.
This has several benefits:
- Easier to write and maintain the tools, as all the logic is in one
file only.
- Clearer about the intended level of encapsulation of the tools.
- Makes the tools in the library more closely resemble those written
using the template. The only difference now is that the main()
method is replaced by the info object, and that the info object
provides the names to pass to TrajectoryAnalysisModule constructor.
Change-Id: Ib545cc1d8900fe88cb58811df2cd4a63a6a99b2f
15 files changed: