#include <trace.h>
Public Types | |
| typedef std::vector< TraceStatus > | TSVec_t |
| typedef bool(* | Callback_t )(Node *, Protocol *, PDU *, bool) |
| enum | TraceStatus { ENABLED, DISABLED, DEFAULT } |
Public Member Functions | |
| Trace () | |
| ~Trace () | |
| bool | Open (const char *) |
| void | Close () |
| void | On () |
| void | On (Layer_t) |
| void | Off () |
| void | Off (Layer_t) |
| bool | IsOn (Layer_t) |
| bool | IsEnabled () |
| Tfstream & | GetTS () |
| void | AppendEOL () |
| void | NewNode (Node *) |
| void | SetNode (Node *) |
| void | IPDotted (bool d=true) |
| void | TimePrecision (Count_t d) |
Static Public Member Functions | |
| Trace * | Instance () |
| bool | Enabled () |
| void | AddCallback (Callback_t cb) |
Static Public Attributes | |
| Callback_t | callback = 0 |
Private Attributes | |
| TSVec_t | trace |
| Tfstream | os |
| Node * | node |
Static Private Attributes | |
| Trace * | instance |
| bool | enabled = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1