libpsynth 0.2.1
Classes | Namespaces | Defines | Functions
/home/raskolnikov/dev/psynth/trunk/src/psynth/base/throw.hpp File Reference

Time-stamp: <2011-06-08 12:10:34 raskolnikov> More...

#include <psynth/base/logger.hpp>
#include <psynth/base/exception.hpp>
Include dependency graph for throw.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  psynth::base::detail::exception_wrapper< Base, IsPsynth >
class  psynth::base::detail::exception_wrapper< Base, false >
class  psynth::base::throw_with< Exception >

Namespaces

namespace  psynth
namespace  psynth::base
namespace  psynth::base::detail

Defines

#define PSYNTH_THROW(exception)   ::psynth::base::throw_with<exception> (PSYNTH_MODULE_NAME)

Functions

template<class E , typename T >
throw_with< E > psynth::base::operator<< (throw_with< E > ts, const T &what)

Detailed Description

Time-stamp: <2011-06-08 12:10:34 raskolnikov>

Author:
Juan Pedro BolĂ­var Puente <raskolnikov@es.gnu.org>
Date:
Tue Jun 7 16:11:03 2011

Throwing interface that better suits the logging system.

Todo:
Some things here are not nice. There are performance issues in forwarding the ostringstream in the log stream adapter. Take a look at boost::exception and maybe integrate it.

Define Documentation

#define PSYNTH_THROW (   exception)    ::psynth::base::throw_with<exception> (PSYNTH_MODULE_NAME)