Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ErrorModule Class Reference

An easy way to define a new error-source. More...

#include <Err.h>

Inheritance diagram for rs::err::ErrorModule:

Inheritance graph
[legend]
Collaboration diagram for ErrorModule:

Collaboration graph
[legend]
List of all members.

Public Methods

 ErrorModule (const std::string &new_module_name, bool appendTo=true)
 ~ErrorModule ()

Private Attributes

std::string old_module_name

Detailed Description

An easy way to define a new error-source.

Definition at line 112 of file Err.h.


Constructor & Destructor Documentation

ErrorModule const std::string &    new_module_name,
bool    appendTo = true
[inline, explicit]
 

Changes the module name used by Error.

Define one instance of ErrorModule in the main block of your module.

If you are using ProgramInfo then you should be aware, that it uses set_module_name too. It is intended that you call ProgramInfo::init before you call ErrorModule.

Parameters:
new_module_name  name of module
appendTo  if true then append to existing module_name (default)
See also:
Error::set_module_name , ProgramInfo::init

Definition at line 130 of file Err.h.

~ErrorModule   [inline]
 

Definition at line 136 of file Err.h.


Member Data Documentation

std::string old_module_name [private]
 

Definition at line 114 of file Err.h.


The documentation for this class was generated from the following file:
Contact me in case of errors or questions.
This documentation is powered by Doxygen.
(C) 2000-2002 Doxygen