Suppose you need two classes, Class1 and Class2. You would then create two paramdef files, say paramdef.Class1 and paramdef.Class2. The Makefile can easily be set up to generate two code classes.
The following files would be generated:
Class1.hh Class1.cc Class2.hh Class2.ccEach class has its own user interface. Instead of using _tdrp_load_from_args(), you would use the functions:
Class1::load() Class2::load()to load up the parameters for each class.
Since the load() functions operate at a lower level than _load_from_args(), you will need to write code to parse the command line and respond to any TDRP arguments.