version 1.14, 2004/06/03 15:04:54
|
version 1.15, 2004/06/22 22:06:23
|
|
|
// | // |
// Modified By: Jenny Yu, Hewlett-Packard Company (jenny_yu@hp.com) | // Modified By: Jenny Yu, Hewlett-Packard Company (jenny_yu@hp.com) |
// Amit K Arora, IBM (amita@in.ibm.com) for PEP#101 | // Amit K Arora, IBM (amita@in.ibm.com) for PEP#101 |
|
// Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
} | } |
| |
static void setTraceComponents( | static void setTraceComponents( |
const String traceComponents) |
const String& traceComponents) |
{ | { |
// empty function | // empty function |
} | } |
|
|
components should be separated by ',' | components should be separated by ',' |
*/ | */ |
static void setTraceComponents( | static void setTraceComponents( |
const String traceComponents); |
const String& traceComponents); |
| |
#endif | #endif |
| |
|
|
@return 1 if the components are valid | @return 1 if the components are valid |
0 if one or more components are invalid | 0 if one or more components are invalid |
*/ | */ |
static Boolean isValidComponents(const String traceComponents); |
static Boolean isValidComponents(const String& traceComponents); |
| |
/** Validates the trace components | /** Validates the trace components |
@param traceComponents comma separated list of trace components | @param traceComponents comma separated list of trace components |
|
|
0 if one or more components are invalid | 0 if one or more components are invalid |
*/ | */ |
static Boolean isValidComponents( | static Boolean isValidComponents( |
const String traceComponents, |
const String& traceComponents, |
String& invalidComponents); | String& invalidComponents); |
| |
|
/** Specify the name of the module being traced. If non-empty, this |
|
value is used as an extension to the name of the trace file. |
|
@param moduleName Name of the module being traced. |
|
*/ |
|
static void setModuleName(const String& moduleName); |
|
|
private: | private: |
| |
static const char _COMPONENT_SEPARATOR; | static const char _COMPONENT_SEPARATOR; |
|
|
static const Uint32 _STRLEN_MAX_PID_TID; | static const Uint32 _STRLEN_MAX_PID_TID; |
static const Boolean _SUCCESS; | static const Boolean _SUCCESS; |
static const Boolean _FAILURE; | static const Boolean _FAILURE; |
AutoArrayPtr<Boolean> _traceComponentMask; //PEP101 |
AutoArrayPtr<Boolean> _traceComponentMask; |
Uint32 _traceLevelMask; | Uint32 _traceLevelMask; |
AutoPtr<TraceFileHandler> _traceHandler; //PEP101 |
AutoPtr<TraceFileHandler> _traceHandler; |
|
String _moduleName; |
static Tracer* _tracerInstance; | static Tracer* _tracerInstance; |
| |
// Message Strings for function Entry and Exit | // Message Strings for function Entry and Exit |