ErrorMessage Class Reference
[Exceptions]

#include <lemon/error.h>

List of all members.


Detailed Description

Helper class which provides a convenient ostream-like (operator << based) interface to create a string message. Mostly useful in exception classes (therefore the name).


Public Member Functions

 ErrorMessage () throw ()
 
 ErrorMessage (const char *message) throw ()
 
 ErrorMessage (const std::string &message) throw ()
 
template<typename T>
ErrorMessageoperator<< (const T &t) throw ()
 
const char * message () throw ()
 

Protected Member Functions

bool init () throw ()
 

Protected Attributes

std::auto_ptr< std::ostringstream > buf
 


Member Data Documentation

std::auto_ptr<std::ostringstream> buf [mutable, protected]
 

Todo:
The good solution is boost::shared_ptr...


The documentation for this class was generated from the following file:
Generated on Fri Feb 3 18:41:12 2006 for LEMON by  doxygen 1.4.6