63 void write(
const char * text,
const unsigned int &levels)
const;
70 void write(
const std::string &text,
const unsigned int &levels)
const;
77 void write(
const std::ostream &text,
const unsigned int &levels)
const;
84 void writeNoticeably(
const char * text,
const unsigned int &levels)
const;
91 void writeNoticeably(
const std::string &text,
const unsigned int &levels)
const;
98 void writeNoticeably(
const std::ostream &text,
const unsigned int &levels)
const;
127 static int parseLevels(
const std::vector<std::string> &levels);
134 static void addToString(std::string& s,
const std::string& add);
142 bool checkLevel(
const unsigned int &levels)
const;
static void addToString(std::string &s, const std::string &add)
adds a string to a given string s. Puts a comma between them if the string s has a size bigger than 0...
static boost::shared_ptr< DebugHelper > instancePtr
bool checkLevel(const unsigned int &levels) const
checks whether the given level is allowed
std::string getDebugLevelString(const unsigned int &levels) const
returns the name of the given DebugLevel
unsigned int getLevel() const
returns the debug level that is set
void setLevels()
sets the allowed debug levels
static boost::shared_ptr< DebugHelper > getInstance()
static int parseLevels(const std::vector< std::string > &levels)
parses the level list to the corresponding integer
void write(const char *text, const unsigned int &levels) const
writes the text to the console if it has a level that allows it
boost::shared_ptr< DebugHelper > DebugHelperPtr
The DebugHelper class is responsible for debug output.
static void resetInstance()
void writeNoticeably(const char *text, const unsigned int &levels) const
writes the text noticeably to the console if it has a level that allows it
std::string getLevelString() const
returns the debug levels that are set as string