|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimTrace.h>
Public Member Functions | |
| ossimTrace (const ossimString &trace_name) | |
| ~ossimTrace () | |
| bool | isEnabled () const |
| ossimString | getTraceName () const |
| Returns "theTraceName" as an ossimString. More... | |
| void | setTraceFlag (bool flag) |
| Sets "theEnabled" flag. More... | |
| bool | operator() () const |
| Operator() for ossimTrace. More... | |
Private Attributes | |
| ossimString | theTraceName |
| bool | theEnabledFlag |
Definition at line 26 of file ossimTrace.h.
| ossimTrace::ossimTrace | ( | const ossimString & | trace_name | ) |
Definition at line 28 of file ossimTrace.cpp.
References ossimTraceManager::addTrace(), and ossimTraceManager::instance().
| ossimTrace::~ossimTrace | ( | ) |
Definition at line 36 of file ossimTrace.cpp.
References ossimTraceManager::instance(), and ossimTraceManager::removeTrace().
|
inline |
Returns "theTraceName" as an ossimString.
Definition at line 40 of file ossimTrace.h.
Referenced by ossimTraceManager::addTrace().
|
inline |
|
inline |
Operator() for ossimTrace.
Given the static instance: static ossimTrace traceDebug("myTrace");
You can do: if (traceDebug()) { CLOG << "Your trace stuff goes here..." << endl; }
Definition at line 60 of file ossimTrace.h.
|
inline |
Sets "theEnabled" flag.
| flag | true == enabled, false == disabled. |
Definition at line 48 of file ossimTrace.h.
Referenced by ossimTraceManager::addTrace().
|
private |
Definition at line 64 of file ossimTrace.h.
|
private |
Definition at line 63 of file ossimTrace.h.
1.8.14