next up previous
Next: Associated Functions Up: C++ Design For Research Previous: Formatting Nested Output

Example Abstract Base Class

See the RADIAL proformas

class BaseClass {
public:
    virtual ~BaseClass();

    // Standard IO
    virtual const string& isA() const =0;
    virtual BaseClass* clone() const =0;
    virtual void print(ostream& os) const =0;
    virtual void load(RD_Bfstream& bfs) =0;
    virtual void save(RD_Bfstream& bfs) const =0;
};



 

Tim Cootes
2/24/1998