23 #ifndef _GAZEBO_CONSOLE_HH_
24 #define _GAZEBO_CONSOLE_HH_
40 #define gzmsg (gazebo::common::Console::Instance()->ColorMsg("Msg", 32))
43 #define gzdbg (gazebo::common::Console::Instance()->ColorMsg("Dbg", 36))
46 #define gzwarn (gazebo::common::Console::Instance()->ColorErr("Warning", \
47 __FILE__, __LINE__, 33))
50 #define gzerr (gazebo::common::Console::Instance()->ColorErr("Error", \
51 __FILE__, __LINE__, 31))
54 #define gzclr_start(clr) "\033[1;33m"
56 #define gzclr_end "\033[0m"
88 public: std::ostream &
ColorMsg(
const std::string &_lbl,
int _color);
96 public: std::ostream &
ColorErr(
const std::string &_lbl,
97 const std::string &_file,
unsigned int _line,
int _color);
101 private:
class NullStream :
public std::ostream
108 private: NullStream nullStream;
111 private: std::ostream *msgStream;
114 private: std::ostream *errStream;
117 private:
static Console *myself;