39 Printable::~Printable() {
42 string Printable::getClassName()
const {
46 void Printable::printContents(ostream& )
const {
50 void Printable::print(ostream& stream)
const {
51 stream << getClassName() <<
"[";
52 printContents(stream);
66 record->
print(stream);
67 stream <<
" at " << ((
void*) record);
std::string typeName(const std::type_info &type)
Returns a (demangled) string representation of type.
ostream & operator<<(ostream &stream, const Printable *record)
Output operator on std::ostream for pointer Printables.
virtual void print(std::ostream &stream) const
Constructs and prints the final debug output.
A base class that defines utility functions for printing objects to streams.