hpp::debug::Output Class Reference

Debugging output. More...

#include <hpp/util/debug.hh>

Inheritance diagram for hpp::debug::Output:
[legend]

List of all members.

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
virtual void write (const Channel &channel, char const *file, int line, char const *function, const std::stringstream &data)=0

Protected Member Functions

std::ostream & writePrefix (std::ostream &stream, const Channel &channel, char const *file, int line, char const *function)

Detailed Description

Debugging output.

Represents a debugging output, i.e. an output stream which can subscribe to channels.

There is two default output:

  • console which points to std::cerr
  • journal which points to the ``journal'' file in the debugging prefix

Constructor & Destructor Documentation

hpp::debug::Output::Output ( ) [explicit]
hpp::debug::Output::~Output ( ) [virtual]

Member Function Documentation

virtual void hpp::debug::Output::write ( const Channel channel,
char const *  file,
int  line,
char const *  function,
const std::string &  data 
) [pure virtual]
virtual void hpp::debug::Output::write ( const Channel channel,
char const *  file,
int  line,
char const *  function,
const std::stringstream &  data 
) [pure virtual]
std::ostream & hpp::debug::Output::writePrefix ( std::ostream &  stream,
const Channel channel,
char const *  file,
int  line,
char const *  function 
) [protected]