ot::TimeModule Class Reference

#include <TimeModule.h>

Inheritance diagram for ot::TimeModule:

Inheritance graph
[legend]
Collaboration diagram for ot::TimeModule:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TimeModule ()
void init (StringTable &attributes, ConfigNode *localTree)
void start ()
int stop ()
void close ()

Protected Attributes

int sleep
int display
double startTime
double rate
double count

Constructor & Destructor Documentation

ot::TimeModule::TimeModule  )  [inline]
 

constructor method.


Member Function Documentation

void ot::TimeModule::close  )  [virtual]
 

closes the module, prints out the framerate, if display is 1.

Reimplemented from ot::Module.

void ot::TimeModule::init StringTable attributes,
ConfigNode localTree
[virtual]
 

initializes the tracker module. Parses any sleep or rate attributes

Parameters:
attributes StringTable of elements attribute values. Should be possibly , but is not for convenience.
localTree pointer to root of configuration nodes tree

Reimplemented from ot::Module.

void ot::TimeModule::start  )  [virtual]
 

starts the module, stores startTime if in Framerate mode.

Reimplemented from ot::Module.

int ot::TimeModule::stop  )  [virtual]
 

test for stopping the main loop. Here the actual sleeping is done if necessary.

Returns:
always 0

Reimplemented from ot::Module.


Member Data Documentation

double ot::TimeModule::count [protected]
 

int ot::TimeModule::display [protected]
 

double ot::TimeModule::rate [protected]
 

int ot::TimeModule::sleep [protected]
 

double ot::TimeModule::startTime [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:28:50 2007 for NaviTrack by  doxygen 1.4.6