11#include "ers/DefaultStream.h"
12#include "ers/StreamFactory.h"
13#include "ers/InvalidReferenceIssue.h"
20 ers::Stream *create_stream(
const std::string &protocol,
const std::string &uri) {
54 std::ostream & out = issue_ptr->
severity() <
warning ? std::cout : std::cerr;
56 out << severity_str <<
" at " << position_str <<
" (" << date_str <<
"): " << message_str << std::endl ;
58 out <<
"-----------" << std::endl ;
59 for(string_map_type::const_iterator pos = table->begin();pos!=table->end();++pos) {
60 const std::string &
key = pos->first ;
61 const std::string &value = pos->second ;
62 out <<
key <<
"=\t\"" << value <<
'\"' << std::endl ;
64 out <<
"-----------" << std::endl ;
66 }
catch (std::ios_base::failure &ex) {
#define ERS_PRE_CHECK_PTR(p)
*************DOUBLE PRECISION m_pi *DOUBLE PRECISION m_HvecTau2 DOUBLE PRECISION m_HvClone2 DOUBLE PRECISION m_gamma1 DOUBLE PRECISION m_gamma2 DOUBLE PRECISION m_thet1 DOUBLE PRECISION m_thet2 INTEGER m_IFPHOT *COMMON c_Taupair $ !Spin Polarimeter vector first Tau $ !Spin Polarimeter vector second Tau $ !Clone Spin Polarimeter vector first Tau $ !Clone Spin Polarimeter vector second Tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !phi of HvecTau1 $ !theta of HvecTau1 $ !phi of HvecTau2 $ !theta of HvecTau2 $ !super key
void send(const Issue *ptr)
static const char *const KEY
static const char *const VERBOSE_KEY
DefaultStream(bool verbose=false)
const std::string & get_value(const std::string &key, const std::string &def) const
Reads the property list.
severity_t severity() const
severity_t of the issue
static const char *const TIME_KEY
key for the time of the issue (text)
static const char *const SEVERITY_KEY
key for the severity_t of the issue
const string_map_type * get_value_table() const
extract value table
static const char *const SOURCE_POSITION_KEY
key for position in the source code
static const char *const MESSAGE_KEY
key for human readable
bool register_factory(const std::string &name, create_stream_callback callback)
register a factory method
static StreamFactory * instance()
return the singleton
std::map< std::string, std::string > string_map_type