18 ers::Stream *create_stream(
const std::string &protocol,
const std::string &uri) {
38 ers_stream.
send(issue_ptr) ;
41 }
catch (std::exception &ex) {
42 std::string msg =
"error while building message " + std::string(ex.what()) ;
55 return m_out_stream.str();
76 m_out_stream <<
"issue: " << message_str <<
"(" << severity_str <<
")[" ;
78 for(string_map_type::const_iterator pos = table->begin();pos!=table->end();++pos) {
79 const std::string &
key = pos->first ;
80 const std::string &value = pos->second ;
84 m_out_stream <<
", " ;
86 m_out_stream <<
key <<
"=\"" << value <<
'\"';
89 }
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
Single line, human readable format stream.
virtual void send(const Issue *ptr)
Sends an issue into the stream.
static const char *const KEY
virtual void print_to(std::ostream &stream) const
static std::string to_string(const Issue *issue)
const std::string & get_value(const std::string &key, const std::string &def) const
Reads the property list.
static const char *const MESSAGE_KEY
key for human readable
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
bool register_factory(const std::string &name, create_stream_callback callback)
register a factory method
static StreamFactory * instance()
return the singleton
ers header and documentation file
std::map< std::string, std::string > string_map_type