C:/Users/thomas.sterren/Desktop/PTR_XF_Release/03-release/work/src/mdw/trace/trace.h
#ifndef TRACE_H
#define TRACE_H
#include <stddef.h>
#include <stdint.h>
#include <config/trace-config.h> // angle brackets important here!
#ifdef __cplusplus
extern "C" {
#endif
void trace_initialize();
void trace_out(const char * const format , ...);
#ifdef __cplusplus
} // extern "C"
#endif
#ifdef __cplusplus
#include <string>
using namespace std;
class Trace
{
public:
static void initialize();
static void out(string str);
static void out(const char * format, ...);
public:
static void lock();
static void unlock();
protected:
Trace() {}
};
#endif // __cplusplus
#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.