Yate
|
A captured event string with a debug level. More...
#include <yateclass.h>
Public Member Functions | |
CapturedEvent (int level, const char *text) | |
CapturedEvent (const CapturedEvent &original) | |
int | level () const |
Static Public Member Functions | |
static bool | capturing () |
static const ObjList & | events () |
static void | append (int level, const char *text) |
Static Protected Member Functions | |
static ObjList & | eventsRw () |
static void | capturing (bool capture) |
Friends | |
class | Engine |
A captured event string with a debug level.
Holder for an event (output, debug or alarm) message
CapturedEvent | ( | int | level, |
const char * | text | ||
) | [inline] |
Constructor
level | Debugging level associated with the event |
text | Text description of the event |
CapturedEvent | ( | const CapturedEvent & | original | ) | [inline] |
Copy constructor
original | Captured event to copy |
static void append | ( | int | level, |
const char * | text | ||
) | [inline, static] |
Add an event to the captured events list
level | Debugging level associated with the event |
text | Text description of the event, must not be empty |
References ObjList::append().
static bool capturing | ( | ) | [inline, static] |
Get the capturing state of the output and debug messages
static void capturing | ( | bool | capture | ) | [inline, static, protected] |
Enable or disable capturing of output and debug messages
capture | True to capture internally the debugging messages |
Get the list of captured events
Get a writable list of captured events
int level | ( | ) | const [inline] |
Get the debugging level of the event