29 #define TGERROR(MESSAGE) \
31 std::ostringstream o; \
33 GetLogger().TexGenError(__FILE__, __LINE__, o.str()); \
36 #define TGLOG(MESSAGE) \
38 std::ostringstream o; \
40 GetLogger().TexGenLog(__FILE__, __LINE__, o.str()); \
55 #define TGLOGINCREASEINDENT() \
57 GetLogger().IncreaseIndent(); \
60 #define TGLOGDECREASEINDENT() \
62 GetLogger().DecreaseIndent(); \
65 #define TGLOGAUTOINDENT() CLogIndent AutoLogIndentVariable;
68 #define TGLOGINDENT(MESSAGE) TGLOG(MESSAGE) TGLOGAUTOINDENT()
91 virtual void TexGenError(std::string FileName,
int iLineNumber, std::string Message) = 0;
92 virtual void TexGenLog(std::string FileName,
int iLineNumber, std::string Message) = 0;
105 void TexGenError(std::string FileName,
int iLineNumber, std::string Message);
106 void TexGenLog(std::string FileName,
int iLineNumber, std::string Message);
116 void TexGenError(std::string FileName,
int iLineNumber, std::string Message) {;}
117 void TexGenLog(std::string FileName,
int iLineNumber, std::string Message) {;}
Class to handle log indenting.
Abstract base class to act as an interface between texgen and the logger.
virtual CLogger * Copy() const =0
virtual void TexGenLog(std::string FileName, int iLineNumber, std::string Message)=0
virtual void TexGenError(std::string FileName, int iLineNumber, std::string Message)=0
Logger used to send all log and error messages into a black hole.
void TexGenError(std::string FileName, int iLineNumber, std::string Message)
void TexGenLog(std::string FileName, int iLineNumber, std::string Message)
Logger used to print all log and error messages to the screen.
Namespace containing a series of customised math operations not found in the standard c++ library.