Zero  0.1.0
Public Member Functions | Public Attributes | List of all members
tracer Struct Reference

#include <trace.h>

Public Member Functions

 tracer (char const *file, int line, char const *function)
 
void operator() (unsigned int type, char const *format,...) ATTRIBUTE(format(printf
 Convert the specified message into a single string and process it. More...
 

Public Attributes

char const * _file
 
int _line
 
char const * _function
 

Constructor & Destructor Documentation

§ tracer()

tracer::tracer ( char const *  file,
int  line,
char const *  function 
)
inline

Member Function Documentation

§ operator()()

void tracer::operator() ( unsigned int  trace_type,
char const *  format,
  ... 
)

Convert the specified message into a single string and process it.

Parameters
trace_typeThe message type. This determines how we will process it. For example, TRACE_TYPE_DEBUG could mean that we print the message to the console.
filenameThe name of the file where the message is coming from.
line_numThe line number in the file where the message is coming from.
function_nameThe name of the function where the message is coming from.
formatThe format string for this message. printf() syntax.
...Optional arguments referenced by the format string.

Member Data Documentation

§ _file

char const* tracer::_file

§ _function

char const* tracer::_function

§ _line

int tracer::_line

The documentation for this struct was generated from the following files: