OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimTraceManager.h>
Public Member Functions | |
void | setTracePattern (const ossimString &pattern) |
Sets "thePattern" to "pattern", then calls setTraceFlags(true). More... | |
void | addTrace (ossimTrace *traceObj) |
void | removeTrace (ossimTrace *traceObj) |
Static Public Member Functions | |
static ossimTraceManager * | instance () |
Protected Member Functions | |
ossimTraceManager () | |
Protected default constructor. More... | |
Private Member Functions | |
void | setTraceFlags (bool flag) |
Loops through "theTraceList" and sets any trace object's enable flag to flag if it matches regular expression of "thePattern". More... | |
Private Attributes | |
ossimString | thePattern |
The regular expression pattern like "ossimDynamic|ossimGdal". More... | |
std::vector< ossimTrace * > | theTraceList |
The list of trace objects. More... | |
Static Private Attributes | |
static ossimTraceManager * | theInstance = 0 |
The instance of this manager. More... | |
Definition at line 22 of file ossimTraceManager.h.
|
protected |
Protected default constructor.
Definition at line 24 of file ossimTraceManager.cpp.
References theInstance.
Referenced by instance().
void ossimTraceManager::addTrace | ( | ossimTrace * | traceObj | ) |
traceObj | ossimTrace* to add to "theTraceList". |
Definition at line 45 of file ossimTraceManager.cpp.
References ossimString::c_str(), ossimRegExp::compile(), ossimRegExp::find(), ossimTrace::getTraceName(), ossimTrace::setTraceFlag(), ossimString::size(), thePattern, and theTraceList.
Referenced by ossimTrace::ossimTrace().
|
static |
Definition at line 29 of file ossimTraceManager.cpp.
References ossimTraceManager(), and theInstance.
Referenced by ossimTrace::ossimTrace(), and ossimTrace::~ossimTrace().
void ossimTraceManager::removeTrace | ( | ossimTrace * | traceObj | ) |
traceObj | ossimTrace* to remove from "theTraceList". |
Definition at line 80 of file ossimTraceManager.cpp.
References theTraceList.
Referenced by ossimTrace::~ossimTrace().
|
private |
Loops through "theTraceList" and sets any trace object's enable flag to flag if it matches regular expression of "thePattern".
For trace objects not matching "thePattern" no action is taken.
Definition at line 92 of file ossimTraceManager.cpp.
References ossimString::c_str(), ossimRegExp::compile(), ossimRegExp::find(), thePattern, and theTraceList.
Referenced by setTracePattern().
void ossimTraceManager::setTracePattern | ( | const ossimString & | pattern | ) |
Sets "thePattern" to "pattern", then calls setTraceFlags(true).
pattern | Regular expression to enable trace for. |
Definition at line 39 of file ossimTraceManager.cpp.
References setTraceFlags(), and thePattern.
|
staticprivate |
The instance of this manager.
Definition at line 60 of file ossimTraceManager.h.
Referenced by instance(), and ossimTraceManager().
|
private |
The regular expression pattern like "ossimDynamic|ossimGdal".
Definition at line 63 of file ossimTraceManager.h.
Referenced by addTrace(), setTraceFlags(), and setTracePattern().
|
private |
The list of trace objects.
Definition at line 66 of file ossimTraceManager.h.
Referenced by addTrace(), removeTrace(), and setTraceFlags().