Changeset 1441 for trunk/psLib/src/sysUtils/psTrace.h
- Timestamp:
- Aug 9, 2004, 1:40:55 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psTrace.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psTrace.h
r1440 r1441 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-09 23: 34:58$12 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-09 23:40:55 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 16 16 */ 17 17 #if !defined(PS_TRACE_H) 18 # define PS_TRACE_H 118 #define PS_TRACE_H 1 19 19 20 # define PS_UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level21 # define PS_DEFAULT_TRACE_LEVEL 020 #define PS_UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 21 #define PS_DEFAULT_TRACE_LEVEL 0 22 22 23 23 /** \addtogroup LogTrace … … 29 29 //#define PS_NO_TRACE 1 ///< to turn off all tracing 30 30 31 # if defined(PS_NO_TRACE)32 # define psTrace(facil, level, ...) (void)033 /* do nothing */34 # define p_psTrace(facil, level, ...) (void)035 /* do nothing */36 # define psTraceSetLevel(facil,level) 037 # define psTraceGetLevel(facil) 038 # define psTraceReset() (void)0 /* do nothing */39 # define psTraceFree() (void)0 /* do nothing */40 # define psTracePrintLevels() (void)041 /* do nothing */42 # define psTraceSetDestination(fp) (void)043 /* do nothing */44 # else31 #if defined(PS_NO_TRACE) 32 # define psTrace(facil, level, ...) (void)0 33 /* do nothing */ 34 # define p_psTrace(facil, level, ...) (void)0 35 /* do nothing */ 36 # define psTraceSetLevel(facil,level) 0 37 # define psTraceGetLevel(facil) 0 38 # define psTraceReset() (void)0 /* do nothing */ 39 # define psTraceFree() (void)0 /* do nothing */ 40 # define psTracePrintLevels() (void)0 41 /* do nothing */ 42 # define psTraceSetDestination(fp) (void)0 43 /* do nothing */ 44 # else 45 45 46 /** Basic structure for the component tree. A component is a string of the47 form aaa.bbb.ccc, and may itself contain further subcomponents. The48 Component structure doesn't in fact contain it's full name, but only the49 last part. */50 typedef struct p_psComponent51 {52 const char *name; // last part of name of component53 int level; // trace level for this component54 int n; // number of subcomponents55 struct p_psComponent* *subcomp; // next level of subcomponents56 }46 /** Basic structure for the component tree. A component is a string of the 47 form aaa.bbb.ccc, and may itself contain further subcomponents. The 48 Component structure doesn't in fact contain it's full name, but only the 49 last part. */ 50 typedef struct p_psComponent 51 { 52 const char *name; // last part of name of component 53 int level; // trace level for this component 54 int n; // number of subcomponents 55 struct p_psComponent* *subcomp; // next level of subcomponents 56 } 57 57 p_psComponent; 58 58 59 # ifndef DOXYGEN59 #ifndef DOXYGEN 60 60 /// Send a trace message 61 61 void p_psTrace(const char *facil, ///< facilty of interest … … 63 63 ...) ///< trace message arguments 64 64 ; 65 # endif65 #endif 66 66 67 67 /// Set trace level … … 88 88 /* \} */// End of SystemGroup Functions 89 89 90 # define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__)91 # endif90 #define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__) 91 #endif 92 92 93 93 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
