| Puma Reference Manual | Puma: Puma::Printable Class Reference |
#include <Puma/Printable.h>

Derived classes have to implement method Printable::print().
Example:
class Name : public Puma::Printable { const char* the_name; public: Name(const char* n) : the_name(n) {} void print(ostream &os) { os << "[name: " << the_name << "]"; } }; Name adam("adam"); std::cout << adam << std::endl; // prints "[name: adam]\n"
Public Member Functions | |
| virtual | ~Printable () |
| Destructor. | |
| virtual void | print (ostream &os) const =0 |
| Print something on the given output stream. | |
| virtual Puma::Printable::~Printable | ( | ) | [inline, virtual] |
Destructor.
| virtual void Puma::Printable::print | ( | ostream & | os | ) | const [pure virtual] |
Print something on the given output stream.
| os | The output stream. |
Implemented in Puma::Filename, Puma::Unit, Puma::CTypeInfo, Puma::ManipError, Puma::CT_SimpleName, and Puma::CT_QualName.