cheshirekow  v0.1.0
mpblocks::utility::ExceptionStream< Exception_t > Class Template Reference

used to simplify the process of generating an exception message More...

#include <mpblocks/util/exception_stream.hpp>

Inheritance diagram for mpblocks::utility::ExceptionStream< Exception_t >:

Public Member Functions

std::ostream & operator() ()
 
 ~ExceptionStream ()
 

Detailed Description

template<typename Exception_t>
class mpblocks::utility::ExceptionStream< Exception_t >

used to simplify the process of generating an exception message

Derives from stringstream so provides an ostream interface, but throws an exception with the contents of the string when the object is destroyed

Template Parameters
Exception_tmust be an exception type which accepts a const char* in it's constructor

Definition at line 20 of file exception_stream.hpp.

Constructor & Destructor Documentation

template<typename Exception_t >
mpblocks::utility::ExceptionStream< Exception_t >::~ExceptionStream ( )
inline

Definition at line 22 of file exception_stream.hpp.

Member Function Documentation

template<typename Exception_t >
std::ostream& mpblocks::utility::ExceptionStream< Exception_t >::operator() ( )
inline

Definition at line 24 of file exception_stream.hpp.


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