OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimTrace.h
Go to the documentation of this file.
1 //*****************************************************************************
2 // FILE: ossimTrace.h
3 //
4 // License: See top level LICENSE.txt file.
5 //
6 // DESCRIPTION:
7 // Contains declaration of class ossimTrace. Used for tracing code execution.
8 // Implemented as a singluy linked list of ossimTrace objects.
9 //
10 // SOFTWARE HISTORY:
11 // 24Apr2001 Oscar Kramer
12 // Initial coding.
13 //*****************************************************************************
14 // $Id: ossimTrace.h 11650 2007-08-24 12:02:47Z dburken $
15 
16 #ifndef ossimTrace_HEADER
17 #define ossimTrace_HEADER
18 
19 #include <ossim/base/ossimString.h>
20 #include <ossim/base/ossimNotify.h>
21 
22 // Macro for use with trace...
23 #define CLOG ossimNotify(ossimNotifyLevel_DEBUG) << MODULE << " (\"" __FILE__ "\", line " << __LINE__ << ") DEBUG: "
24 
25 
27 {
28 public:
29  ossimTrace( const ossimString& trace_name );
30  ~ossimTrace();
31 
35  bool isEnabled() const { return theEnabledFlag; }
36 
40  ossimString getTraceName() const { return theTraceName; }
41 
42 
48  void setTraceFlag(bool flag) { theEnabledFlag = flag; }
49 
60  bool operator()() const { return theEnabledFlag; }
61 
62 private:
65 };
66 
67 #endif
bool theEnabledFlag
Definition: ossimTrace.h:64
#define OSSIMDLLEXPORT
ossimString theTraceName
Definition: ossimTrace.h:63
ossimString getTraceName() const
Returns "theTraceName" as an ossimString.
Definition: ossimTrace.h:40
bool operator()() const
Operator() for ossimTrace.
Definition: ossimTrace.h:60
void setTraceFlag(bool flag)
Sets "theEnabled" flag.
Definition: ossimTrace.h:48
bool isEnabled() const
Definition: ossimTrace.h:35