hpp-util 5.1.0
Debugging tools for the HPP project.
Loading...
Searching...
No Matches
hpp::debug::Output Class Referenceabstract

Debugging output. More...

#include <hpp/util/debug.hh>

Inheritance diagram for hpp::debug::Output:

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

◆ Output()

hpp::debug::Output::Output ( )
explicit

◆ ~Output()

hpp::debug::Output::~Output ( )
virtual

Member Function Documentation

◆ write() [1/2]

virtual void hpp::debug::Output::write ( const Channel & channel,
char const * file,
int line,
char const * function,
const std::string & data )
pure virtual

◆ write() [2/2]

virtual void hpp::debug::Output::write ( const Channel & channel,
char const * file,
int line,
char const * function,
const std::stringstream & data )
pure virtual

◆ writePrefix()

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

The documentation for this class was generated from the following files: