hpp-util 7.0.0
Debugging tools for the HPP project.
Loading...
Searching...
No Matches
hpp::debug::Channel Class Reference

Receive debugging information. More...

#include <hpp/util/debug.hh>

Public Types

typedef std::vector< Output * > subscribers_t

Public Member Functions

 Channel (char const *label, const subscribers_t &subscribers)
virtual ~Channel ()
void write (char const *file, int line, char const *function, const std::string &data)
void write (char const *file, int line, char const *function, const std::stringstream &data)
const char * label () const

Detailed Description

Receive debugging information.

Receive debugging information and forward it to its subscribers.

By default, there is four channels:

  • error for fatal problems
  • warning for non-fatal problems
  • notice for user information
  • info for technical information and debugging output

Member Typedef Documentation

◆ subscribers_t

Constructor & Destructor Documentation

◆ Channel()

hpp::debug::Channel::Channel(char const *label,
const subscribers_t &subscribers )
explicit

◆ ~Channel()

hpp::debug::Channel::~Channel()
virtual

Member Function Documentation

◆ label()

const char * hpp::debug::Channel::label()const

◆ write() [1/2]

void hpp::debug::Channel::write(char const *file,
intline,
char const *function,
const std::string &data )

◆ write() [2/2]

void hpp::debug::Channel::write(char const *file,
intline,
char const *function,
const std::stringstream &data )

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