|
Boost Users : |
Subject: [Boost-users] generating a derived class from a base class
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-06-20 10:37:04
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,
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net