Classes | Public Member Functions | Static Public Member Functions
Console Class Reference

Message, error, warning, and logging functionality. More...

#include <Console.hh>

List of all members.

Classes

class  NullStream

Public Member Functions

void Load ()
 Load the message parameters.
void SetQuiet (bool q)
 Set quiet output.
std::ostream & ColorMsg (const std::string &lbl, int color)
 Use this to output a message to the terminal.
std::ostream & ColorErr (const std::string &lbl, const std::string &file, unsigned int line, int color)
 Use this to output an error to the terminal.
std::ofstream & Log ()
 Use this to output a message to a log file.

Static Public Member Functions

static ConsoleInstance ()
 Return an instance to this class.

Detailed Description

Message, error, warning, and logging functionality.


Member Function Documentation

std::ostream& ColorErr ( const std::string &  lbl,
const std::string &  file,
unsigned int  line,
int  color 
)

Use this to output an error to the terminal.

Parameters:
levelLevel of the message
std::ostream& ColorMsg ( const std::string &  lbl,
int  color 
)

Use this to output a message to the terminal.

Parameters:
levelLevel of the message
void SetQuiet ( bool  q)

Set quiet output.

Parameters:
qTrue to prevent warning

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