Provides an interface for optional logging and performance tracking of the Recast build process.
More...
#include <Recast.h>
List of all members.
Detailed Description
Provides an interface for optional logging and performance tracking of the Recast build process.
Definition at line 101 of file Recast.h.
Constructor & Destructor Documentation
rcContext::rcContext |
( |
bool |
state = true | ) |
[inline] |
Contructor.
- Parameters:
-
[in] | state | TRUE if the logging and performance timers should be enabled. [Default: true] |
Definition at line 107 of file Recast.h.
virtual rcContext::~rcContext |
( |
| ) |
[inline, virtual] |
Member Function Documentation
virtual int rcContext::doGetAccumulatedTime |
( |
const rcTimerLabel |
| ) |
const [inline, protected, virtual] |
Returns the total accumulated time of the specified performance timer.
- Parameters:
-
[in] | label | The category of the timer. |
- Returns:
- The accumulated time of the timer, or -1 if timers are disabled or the timer has never been started.
Definition at line 167 of file Recast.h.
virtual void rcContext::doLog |
( |
const rcLogCategory |
, |
|
|
const char * |
, |
|
|
const int |
|
|
) |
| [inline, protected, virtual] |
Logs a message.
- Parameters:
-
[in] | category | The category of the message. |
[in] | msg | The formatted message. |
[in] | len | The length of the formatted message. |
Definition at line 151 of file Recast.h.
virtual void rcContext::doResetLog |
( |
| ) |
[inline, protected, virtual] |
Clears all log entries.
Definition at line 145 of file Recast.h.
virtual void rcContext::doResetTimers |
( |
| ) |
[inline, protected, virtual] |
Clears all timers. (Resets all to unused.)
Definition at line 154 of file Recast.h.
virtual void rcContext::doStartTimer |
( |
const rcTimerLabel |
| ) |
[inline, protected, virtual] |
Starts the specified performance timer.
- Parameters:
-
[in] | label | The category of timer. |
Definition at line 158 of file Recast.h.
virtual void rcContext::doStopTimer |
( |
const rcTimerLabel |
| ) |
[inline, protected, virtual] |
Stops the specified performance timer.
- Parameters:
-
[in] | label | The category of the timer. |
Definition at line 162 of file Recast.h.
void rcContext::enableLog |
( |
bool |
state | ) |
[inline] |
Enables or disables logging.
- Parameters:
-
[in] | state | TRUE if logging should be enabled. |
Definition at line 112 of file Recast.h.
void rcContext::enableTimer |
( |
bool |
state | ) |
[inline] |
Enables or disables the performance timers.
- Parameters:
-
[in] | state | TRUE if timers should be enabled. |
Definition at line 124 of file Recast.h.
int rcContext::getAccumulatedTime |
( |
const rcTimerLabel |
label | ) |
const [inline] |
Returns the total accumulated time of the specified performance timer.
- Parameters:
-
label | The category of the timer. |
- Returns:
- The accumulated time of the timer, or -1 if timers are disabled or the timer has never been started.
Definition at line 140 of file Recast.h.
void rcContext::log |
( |
const rcLogCategory |
category, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Logs a message.
- Parameters:
-
[in] | category | The category of the message. |
[in] | format | The message. |
void rcContext::resetLog |
( |
| ) |
[inline] |
Clears all log entries.
Definition at line 115 of file Recast.h.
void rcContext::resetTimers |
( |
| ) |
[inline] |
Clears all peformance timers. (Resets all to unused.)
Definition at line 127 of file Recast.h.
void rcContext::startTimer |
( |
const rcTimerLabel |
label | ) |
[inline] |
Starts the specified performance timer.
- Parameters:
-
label | The category of timer. |
Definition at line 131 of file Recast.h.
void rcContext::stopTimer |
( |
const rcTimerLabel |
label | ) |
[inline] |
Stops the specified performance timer.
- Parameters:
-
label | The category of the timer. |
Definition at line 135 of file Recast.h.
Member Data Documentation
True if logging is enabled.
Definition at line 170 of file Recast.h.
True if the performance timers are enabled.
Definition at line 173 of file Recast.h.
The documentation for this class was generated from the following file:
- plugins/common/recast/recastnavigation/Recast.h