30 #if defined(Trace_RECURSES)
31 #error Recursive header files inclusion detected in Trace.h
34 #define Trace_RECURSES
47 #include "DGtal/base/Config.h"
48 #include "DGtal/base/Clock.h"
49 #include "DGtal/base/TraceWriter.h"
50 #include "DGtal/base/TraceWriterTerm.h"
79 #define TRACE_PATTERN " "
80 #define PROGRESSBARWIDTH 60
155 const double maximalValue);
241 #include "DGtal/base/Assert.h"
245 #include "DGtal/base/Trace.ih"
252 #undef Trace_RECURSES
Virtual Class to implement trace writers.
implementation of basic methods to trace out messages with indentation levels.
std::stack< Clock * > myClockStack
A stack to store the block clocks.
Trace(TraceWriter &writer)
Trace & operator=(const Trace &other)
void selfDisplay(std::ostream &out) const
void beginBlock(const std::string &keyword="")
int myProgressBarCurrent
Progress bar current position.
Trace(const Trace &other)
std::string myCurrentPrefix
The indentation prefix string.
unsigned int myCurrentLevel
The indentation level.
std::stack< std::string > myKeywordStack
A stack to store the block keywords.
bool myStyle
True if the style has changed.
unsigned int myProgressBarRotation
Progress bar rotation position.
void progressBar(const double currentValue, const double maximalValue)
TraceWriter & myWriter
A reference to the output writer.
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)