ErrorMessage Class Reference
[Exceptions]


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). #include <lemon/error.h>

List of all members.

Public Member Functions

 ErrorMessage () throw ()
 
 ErrorMessage (const char *msg) throw ()
 
 ErrorMessage (const std::string &msg) 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...


Generated on Thu Jun 4 04:04:04 2009 for LEMON by  doxygen 1.5.9