Trace 3.3

C:/Users/thomas.sterren/Desktop/PTR_XF_Release/03-release/work/src/mdw/trace/trace.h
1#ifndef TRACE_H
2#define TRACE_H
3
4#include <stddef.h>
5#include <stdint.h>
6#include <config/trace-config.h> // angle brackets important here!
7
8#ifdef __cplusplus
9 extern "C" {
10#endif
11
12 void trace_initialize();
13 void trace_out(const char * const format , ...);
14
15#ifdef __cplusplus
16} // extern "C"
17#endif
18
19#ifdef __cplusplus
20
21#include <string>
22
23 using namespace std;
24
66 class Trace
67{
68 public:
69
75 static void initialize();
76
83 static void out(string str);
84
95 static void out(const char * format, ...);
96
97 public:
98 static void lock();
99 static void unlock();
100
101 protected:
102 Trace() {}
103};
104#endif // __cplusplus
105#endif // TRACE_H
Trace
Definition: trace.h:67
Trace::lock
static void lock()
Locks trace for other threads.
Trace::out
static void out(const char *format,...)
Trace::out
static void out(string str)
Trace::initialize
static void initialize()
Initializes trace functionality.
Trace::unlock
static void unlock()
Unlocks trace so other threads can access trace.