MOOS 0.2375
Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes
CMOOSThreadedTimeJournal Class Reference

#include <MOOSThreadedTimeJournal.h>

Collaboration diagram for CMOOSThreadedTimeJournal:
Collaboration graph
[legend]

List of all members.

Classes

struct  THREADINFO

Public Types

typedef long H_THREADLOG

Public Member Functions

 CMOOSThreadedTimeJournal ()
 ~CMOOSThreadedTimeJournal ()
void Open (const std::string &sFile)
void SetStartTime (double startTime)
H_THREADLOG GetNextHandle (std::string sName)
bool Tick (const H_THREADLOG handle, const std::string &sTimerName)
bool Tock (const H_THREADLOG handle, const std::string &sTimerName)
void Log (const H_THREADLOG handle, const std::string &str)
void NewLevel (const H_THREADLOG handle, int nL=-1)
void Dump ()

Protected Types

typedef std::map< std::string,
double > 
TIMERMAP
typedef std::map< H_THREADLOG,
THREADINFO
THREADMAP

Protected Attributes

THREADMAP m_threadInfoMap
CMOOSLock m_lock
double m_dfStartTime
std::list< std::string > m_logList
std::ofstream m_file
long m_nextHandle

Detailed Description

Definition at line 53 of file MOOSThreadedTimeJournal.h.


Member Typedef Documentation

Definition at line 57 of file MOOSThreadedTimeJournal.h.

Definition at line 199 of file MOOSThreadedTimeJournal.h.

typedef std::map<std::string, double> CMOOSThreadedTimeJournal::TIMERMAP [protected]

Definition at line 190 of file MOOSThreadedTimeJournal.h.


Constructor & Destructor Documentation

CMOOSThreadedTimeJournal::CMOOSThreadedTimeJournal ( ) [inline]

Definition at line 60 of file MOOSThreadedTimeJournal.h.

CMOOSThreadedTimeJournal::~CMOOSThreadedTimeJournal ( ) [inline]

Definition at line 66 of file MOOSThreadedTimeJournal.h.


Member Function Documentation

void CMOOSThreadedTimeJournal::Dump ( ) [inline]

Definition at line 176 of file MOOSThreadedTimeJournal.h.

H_THREADLOG CMOOSThreadedTimeJournal::GetNextHandle ( std::string  sName) [inline]

Definition at line 82 of file MOOSThreadedTimeJournal.h.

void CMOOSThreadedTimeJournal::Log ( const H_THREADLOG  handle,
const std::string &  str 
) [inline]

Definition at line 142 of file MOOSThreadedTimeJournal.h.

void CMOOSThreadedTimeJournal::NewLevel ( const H_THREADLOG  handle,
int  nL = -1 
) [inline]

Definition at line 157 of file MOOSThreadedTimeJournal.h.

void CMOOSThreadedTimeJournal::Open ( const std::string &  sFile) [inline]

Definition at line 72 of file MOOSThreadedTimeJournal.h.

void CMOOSThreadedTimeJournal::SetStartTime ( double  startTime) [inline]

Definition at line 77 of file MOOSThreadedTimeJournal.h.

bool CMOOSThreadedTimeJournal::Tick ( const H_THREADLOG  handle,
const std::string &  sTimerName 
) [inline]

Definition at line 94 of file MOOSThreadedTimeJournal.h.

bool CMOOSThreadedTimeJournal::Tock ( const H_THREADLOG  handle,
const std::string &  sTimerName 
) [inline]

Definition at line 112 of file MOOSThreadedTimeJournal.h.


Member Data Documentation

Definition at line 206 of file MOOSThreadedTimeJournal.h.

std::ofstream CMOOSThreadedTimeJournal::m_file [protected]

Definition at line 212 of file MOOSThreadedTimeJournal.h.

Definition at line 204 of file MOOSThreadedTimeJournal.h.

std::list<std::string> CMOOSThreadedTimeJournal::m_logList [protected]

Definition at line 209 of file MOOSThreadedTimeJournal.h.

Definition at line 214 of file MOOSThreadedTimeJournal.h.

Definition at line 202 of file MOOSThreadedTimeJournal.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines