Multiple TDRP classs in C++

Complicated applications may require more than one TDRP class, although this is rare in practice. TDRP supports multiple classes.

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.cc
Each 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.