Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Trace Class Reference

#include <trace.h>

List of all members.

Public Types

typedef std::vector< TraceStatusTSVec_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 ()
TfstreamGetTS ()
void AppendEOL ()
void NewNode (Node *)
void SetNode (Node *)
void IPDotted (bool d=true)
void TimePrecision (Count_t d)

Static Public Member Functions

TraceInstance ()
bool Enabled ()
void AddCallback (Callback_t cb)

Static Public Attributes

Callback_t callback = 0

Private Attributes

TSVec_t trace
Tfstream os
Nodenode

Static Private Attributes

Traceinstance
bool enabled = false


Member Typedef Documentation

typedef bool(* Trace::Callback_t)(Node *, Protocol *, PDU *, bool)
 

typedef std::vector<TraceStatus> Trace::TSVec_t
 


Member Enumeration Documentation

enum Trace::TraceStatus
 

Enumeration values:
ENABLED 
DISABLED 
DEFAULT 


Constructor & Destructor Documentation

Trace::Trace  ) 
 

Trace::~Trace  ) 
 


Member Function Documentation

void Trace::AddCallback Callback_t  cb  )  [inline, static]
 

void Trace::AppendEOL  ) 
 

void Trace::Close  ) 
 

bool Trace::Enabled  )  [inline, static]
 

Tfstream& Trace::GetTS  )  [inline]
 

Trace * Trace::Instance  )  [static]
 

void Trace::IPDotted bool  d = true  )  [inline]
 

bool Trace::IsEnabled  ) 
 

bool Trace::IsOn Layer_t   ) 
 

void Trace::NewNode Node  ) 
 

void Trace::Off Layer_t   ) 
 

void Trace::Off  ) 
 

void Trace::On Layer_t   ) 
 

void Trace::On  ) 
 

bool Trace::Open const char *   ) 
 

void Trace::SetNode Node  ) 
 

void Trace::TimePrecision Count_t  d  )  [inline]
 


Member Data Documentation

Trace::Callback_t Trace::callback = 0 [static]
 

bool Trace::enabled = false [static, private]
 

Trace * Trace::instance [static, private]
 

Node* Trace::node [private]
 

Tfstream Trace::os [private]
 

TSVec_t Trace::trace [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Aug 27 16:17:35 2008 for Georgia Tech Network Simulator (GTNetS) by  doxygen 1.3.9.1