OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Private Attributes | List of all members
ossimTrace Class Reference

#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
 

Detailed Description

Definition at line 26 of file ossimTrace.h.

Constructor & Destructor Documentation

◆ ossimTrace()

ossimTrace::ossimTrace ( const ossimString trace_name)

Definition at line 28 of file ossimTrace.cpp.

References ossimTraceManager::addTrace(), and ossimTraceManager::instance().

29  :
30  theTraceName (trace_name),
31  theEnabledFlag (false)
32 {
34 }
static ossimTraceManager * instance()
bool theEnabledFlag
Definition: ossimTrace.h:64
void addTrace(ossimTrace *traceObj)
ossimString theTraceName
Definition: ossimTrace.h:63

◆ ~ossimTrace()

ossimTrace::~ossimTrace ( )

Definition at line 36 of file ossimTrace.cpp.

References ossimTraceManager::instance(), and ossimTraceManager::removeTrace().

37 {
39 }
static ossimTraceManager * instance()
void removeTrace(ossimTrace *traceObj)

Member Function Documentation

◆ getTraceName()

ossimString ossimTrace::getTraceName ( ) const
inline

Returns "theTraceName" as an ossimString.

Definition at line 40 of file ossimTrace.h.

Referenced by ossimTraceManager::addTrace().

40 { return theTraceName; }
ossimString theTraceName
Definition: ossimTrace.h:63

◆ isEnabled()

bool ossimTrace::isEnabled ( ) const
inline
Returns
true if enabled false if not.

Definition at line 35 of file ossimTrace.h.

35 { return theEnabledFlag; }
bool theEnabledFlag
Definition: ossimTrace.h:64

◆ operator()()

bool ossimTrace::operator() ( ) const
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.

60 { return theEnabledFlag; }
bool theEnabledFlag
Definition: ossimTrace.h:64

◆ setTraceFlag()

void ossimTrace::setTraceFlag ( bool  flag)
inline

Sets "theEnabled" flag.

Parameters
flagtrue == enabled, false == disabled.

Definition at line 48 of file ossimTrace.h.

Referenced by ossimTraceManager::addTrace().

48 { theEnabledFlag = flag; }
bool theEnabledFlag
Definition: ossimTrace.h:64

Member Data Documentation

◆ theEnabledFlag

bool ossimTrace::theEnabledFlag
private

Definition at line 64 of file ossimTrace.h.

◆ theTraceName

ossimString ossimTrace::theTraceName
private

Definition at line 63 of file ossimTrace.h.


The documentation for this class was generated from the following files: