Debugging output. More...
#include <hpp/util/debug.hh>
Public Member Functions | |
Output () | |
virtual | ~Output () |
virtual void | write (const Channel &channel, char const *file, int line, char const *function, const std::string &data)=0 |
Protected Member Functions | |
std::ostream & | writePrefix (std::ostream &stream, const Channel &channel, char const *file, int line, char const *function) |
Debugging output.
Represents a debugging output, i.e. an output stream which can subscribe to channels.
There is two default output:
hpp::debug::Output::Output | ( | ) | [explicit] |
hpp::debug::Output::~Output | ( | ) | [virtual] |
virtual void hpp::debug::Output::write | ( | const Channel & | channel, |
char const * | file, | ||
int | line, | ||
char const * | function, | ||
const std::string & | data | ||
) | [pure virtual] |
Implemented in hpp::debug::ConsoleOutput, and hpp::debug::JournalOutput.
Referenced by hpp::debug::Channel::write().
std::ostream & hpp::debug::Output::writePrefix | ( | std::ostream & | stream, |
const Channel & | channel, | ||
char const * | file, | ||
int | line, | ||
char const * | function | ||
) | [protected] |
References hpp::debug::Channel::label().
Referenced by hpp::debug::JournalOutput::write(), and hpp::debug::ConsoleOutput::write().