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
9extern "C" {
10#endif
11
12void trace_initialize();
13void trace_out(const char * const format , ...);
14
15#ifdef __cplusplus
16} // extern "C"
17#endif
18
19#ifdef __cplusplus
20
21#include <string>
22
23using namespace std;
24
66class Trace
67{
68public:
69
75 static void initialize();
76
83 static void out(string str);
84
95 static void out(const char * format, ...);
96
97public:
98 static void lock();
99 static void unlock();
100
101protected:
102 Trace() {}
103};
104#endif // __cplusplus
105#endif // TRACE_H
Definition: trace.h:67
static void lock()
Locks trace for other threads.
static void out(const char *format,...)
static void out(string str)
static void initialize()
Initializes trace functionality.
static void unlock()
Unlocks trace so other threads can access trace.