Go to the previous, next section.
#include <CNCL/Object.h>
CN_OBJECT
CNObject is the actual base of the CNCL inheritance tree. It
must be supported by all derived classes.
virtual CNClassDesc class_desc() const;
virtual bool is_a(CNClassDesc desc) const;
desc, else FALSE.
virtual void print(ostream &strm = cout) const = 0;
virtual void dump(ostream &strm = cout) const = 0;
virtual int store_on(CNPstream &);
virtual int storer(CNPstream &);
Object.h defines the following operators for easily writing objects to
streams:
ostream &operator << (ostream &strm, const CNObject &obj);
ostream &operator << (ostream &strm, const CNObject *obj);
print() member function. It is safe
to output a null pointer obj, in this case "(NIL)" is
printed.
Go to the previous, next section.