Class xlifepp::Trace#

class Trace#

Collaboration diagram for xlifepp::Trace:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="xlifepp::Collection< string_t >" tooltip="xlifepp::Collection< string_t >"] "4" [label="std::vector< T >" tooltip="std::vector< T >"] "6" [label="std::vector< T >" tooltip="std::vector< T >"] "3" [label="std::vector< string_t >" tooltip="std::vector< string_t >"] "5" [label="xlifepp::Collection< T >" tooltip="xlifepp::Collection< T >"] "1" [label="xlifepp::Trace" tooltip="xlifepp::Trace" fillcolor="#BFBFBF"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "2" -> "5" [dir=forward tooltip="template-instance"] "3" -> "4" [dir=forward tooltip="template-instance"] "5" -> "6" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="usage"] }

Trace object allows to keep trace of runtime, as a string list, of the hierarchy of functions used up to now.

Public Functions

inline Trace()#

constructor

inline ~Trace()#

destructor

string_t current()#

returns last input string of a Trace object list

string_t current(const number_t)#

returns string of last l to current inputs of a Trace object list

current returns string of last l to current inputs of a Trace object list

void indent()#

function indent prints context-depending indentation to log file

number_t length() const#

function length returns the number of items of f_list

string_t list()#

returns function list of a Trace object list

void noSuchFunction(const string_t&)#

function not yet implemented

void pop()#

“pops” current input out of a Trace function list member

pop “pops” current input out of a Trace function list member

void print()#

print prints function list to default print file

void print(std::ofstream&)#

prints function list to opened ofstream or to default print file

print prints function list to opened ofstream

void push(const string_t&)#

“pushes” name into Trace function list member

push adds name into Trace function list member

Public Static Functions

static inline bool isLogged()#

returns true if log activated

static inline void logOff()#

deactivates log

static inline void logOn()#

activates log

Public Static Attributes

static bool disablePushPop = false#

push pop engine off

static bool traceMemory = false#

activate printing of large memory allocation

static bool trackingMode = false#

activate printing in push, pop functions

Friends

friend Trace &operator<<(Trace&, const string_t &s)#

print operator