X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Ftrace.h;h=64826e9a47ab6b5e97ec471b231eff7f1e2e4fec;hp=88aa2718b0690277b64b863a71f5b607a87edd19;hb=1e88cf0f7fa4f690ea9f110e8ed3f2b5338d0a10;hpb=74a34e63a9a356e1467acdba65497ab15190dde0 diff --git a/include/trace.h b/include/trace.h index 88aa271..64826e9 100644 --- a/include/trace.h +++ b/include/trace.h @@ -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: