Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

dmn::Msg Class Reference

Error/Warning/Info messages management. More...

#include <msg.h>

List of all members.

Static Public Member Functions

void error (int exit_status, const std::string &str)
 Shows a error and exit.

void error (int exit_status, char *fmt,...)
 Shows a error and exit.

void warning (const std::string &str)
 Shows a warning and continues.

void warning (char *fmt,...)
 Shows a warning and continues.

void info (const std::string &str)
 Shows a message and continues.

void info (char *fmt,...)
 Shows a message and continues.


Detailed Description

Error/Warning/Info messages management.


Member Function Documentation

void dmn::Msg::error int  exit_status,
char *  fmt,
... 
[static]
 

Shows a error and exit.

This function is usefull for using with gettext() and get more readable strings

Parameters:
exit_status a error code to return
fmt message to show (printf style)

void dmn::Msg::error int  exit_status,
const std::string &  str
[static]
 

Shows a error and exit.

Parameters:
exit_status a error code to return
str message to show

void dmn::Msg::info char *  fmt,
... 
[static]
 

Shows a message and continues.

This function is usefull for using with gettext() and get more readable strings

Parameters:
fmt message to show (printf style)

void dmn::Msg::info const std::string &  str  )  [static]
 

Shows a message and continues.

Parameters:
str message to show

void dmn::Msg::warning char *  fmt,
... 
[static]
 

Shows a warning and continues.

This function is usefull for using with gettext() and get more readable strings

Parameters:
fmt message to show (printf style)

void dmn::Msg::warning const std::string &  str  )  [static]
 

Shows a warning and continues.

Parameters:
str message to show


The documentation for this class was generated from the following file:
Generated on Fri Dec 26 22:56:01 2003 for dmn by doxygen 1.3.4