Gazebo

GazeboMessage Class Reference
[Server]

#include <GazeboMessage.hh>

List of all members.


Detailed Description

Use gzmsg(level) as an ostream to output messages, where level is an integer priority level.

Example:

   gzmsg(0) << "This is an important message";
   gzmsg(2) << "This is a less important message";
   


Public Member Functions

 GazeboMessage ()
 Default constructor.
virtual ~GazeboMessage ()
 Destructor.
void Load (XMLConfigNode *node)
 Load the message parameters.
void Save (XMLConfigNode *node)
 Saves the message parameters.
void SetVerbose (int level)
 Set the verbosity.
std::ostream & Msg (int level=0)
 Use this to output a message to the terminal.
std::ostream & Err (int level=0)
 Use this to output an error to the terminal.
std::ofstream & Log ()
 Use this to output a message to a log file.

Static Public Member Functions

static GazeboMessageInstance ()
 Return an instance to this class.


Member Function Documentation

void SetVerbose ( int  level  ) 

Set the verbosity.

Parameters:
level Level of the verbosity

std::ostream& Msg ( int  level = 0  ) 

Use this to output a message to the terminal.

Parameters:
level Level of the message

std::ostream& Err ( int  level = 0  ) 

Use this to output an error to the terminal.

Parameters:
level Level of the message


The documentation for this class was generated from the following file:

Last updated Aug 04 2007