r184: *** empty log message ***
[ctsim.git] / include / trace.h
index 88aa2718b0690277b64b863a71f5b607a87edd19..64826e9a47ab6b5e97ec471b231eff7f1e2e4fec 100644 (file)
@@ -1,15 +1,13 @@
 #ifndef TRACE_H
 #define TRACE_H
 
-enum TraceID {
-    TRACE_INVALID=-1,
-    TRACE_NONE=0,              /* No tracing */
-    TRACE_TEXT,                /* Minimal status */
-    TRACE_PHM,         /* Show phantom */
-    TRACE_RAYS,                /* Show all rays */
-    TRACE_PLOT,                /* Plot raysums */
-    TRACE_CLIPPING     /* Plot clipping */
-};
+static const int TRACE_INVALID = 0xFFFF;
+static const int TRACE_NONE = 0x0000;
+static const int TRACE_TEXT = 0x0001;
+static const int TRACE_PHM = 0x0002;
+static const int TRACE_RAYS = 0x0004;
+static const int TRACE_PLOT = 0x0008;
+static const int TRACE_CLIPPING = 0x0010;
 
 class TraceLevel
 {
@@ -29,7 +27,7 @@ class TraceLevel
   
   int getTraceLevel(void) const { return m_traceLevel; }
   
-  static TraceID convertTraceNameToID (const char* traceName);
+  static int convertTraceNameToID (const char* traceName);
 
  private: