
20 Jun
2010
20 Jun
'10
2:37 p.m.
Hello, I have a base class with a number of pure virtual functions. I will have to write a large number of derived classes and I wish to generate the derived class definitions programmatically as containing the list of all pure virtual functions present in the base class. class Base { public: function decl 1 pure virtual function decl 2 ... function decl n private: ... }; I'd like to generate the following header file content programmatically: class Derived1 : public Base { private: <list of pure virtual functions from Base> }; The implementation file would also be generated programmatically as it only varies slightly for each new derived. How would one proceed? Regards,