#include <libthrowable/trace_point.h>
Public Member Functions | |
| TracePoint (const char *filename, int linenumber, const char *function) throw () | |
| Constructs a new TracePoint object from filename, linenumber and function. | |
| TracePoint (const char *filename, int linenumber, const char *function, const std::string &message) throw () | |
| Constructs a new TracePoint object from filename, linenumber, function and message. | |
| template<class OStreamableT> | |
| TracePoint (const char *filename, int linenumber, const char *function, const OStreamableT &t, const std::string &name) throw () | |
| Constructs a new TracePoint object from filename, linenumber, function, a variable and its name. | |
| ~TracePoint () throw () | |
Static Public Member Functions | |
| static void | setLineWidth (int width) throw () |
| Specify a line width for all TracePoint objects. | |
| static void | setOstream (std::ostream &os) throw () |
| Write to os instead of std::cerr. | |
| static void | setThreadName (const std::string &name) throw () |
| Sets a name for the current thread. | |
Classes | |
| struct | Function |
| libthrowable::TracePoint::TracePoint | ( | const char * | filename, | |
| int | linenumber, | |||
| const char * | function | |||
| ) | throw () |
Constructs a new TracePoint object from filename, linenumber and function.
| libthrowable::TracePoint::TracePoint | ( | const char * | filename, | |
| int | linenumber, | |||
| const char * | function, | |||
| const std::string & | message | |||
| ) | throw () |
Constructs a new TracePoint object from filename, linenumber, function and message.
| libthrowable::TracePoint::TracePoint | ( | const char * | filename, | |
| int | linenumber, | |||
| const char * | function, | |||
| const OStreamableT & | t, | |||
| const std::string & | name | |||
| ) | throw () [inline] |
Constructs a new TracePoint object from filename, linenumber, function, a variable and its name.
| filename | usually __FILE__ | |
| linenumber | usually __LINE__ | |
| function | usually __FUNCTION__, __func__ or __PRETTY_FUNCTION__ | |
| t | any type meeting the requirements for util::stringify() | |
| name | the name of the variable you want to examine |
| libthrowable::TracePoint::~TracePoint | ( | ) | throw () |
| static void libthrowable::TracePoint::setLineWidth | ( | int | width | ) | throw () [static] |
Specify a line width for all TracePoint objects.
| width |
|
| static void libthrowable::TracePoint::setOstream | ( | std::ostream & | os | ) | throw () [static] |
Write to os instead of std::cerr.
1.5.4
Hosted on