DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
tmp.hpp File Reference

Go to the source code of this file.

Classes

class  dunedaq::logging::Logging::InternalMessage
 

Namespaces

namespace  dunedaq
 Including Qt Headers.
 
namespace  dunedaq::logging
 

Functions

static TraceStreamer & operator<< (TraceStreamer &x, const dunedaq::logging::Logging::InternalMessage &r)
 

Function Documentation

◆ operator<<()

static TraceStreamer & operator<< ( TraceStreamer & x,
const dunedaq::logging::Logging::InternalMessage & r )
inlinestatic

Definition at line 1 of file tmp.hpp.

1{ class Logging::InternalMessage : public ers::Issue { template <class> friend class ers::IssueRegistrator; protected: public: static const char * get_uid() { return "dunedaq::logging::Logging::InternalMessage"; } Logging::InternalMessage( const ers::Context & context ); Logging::InternalMessage( const ers::Context & context, const std::string & msg ); Logging::InternalMessage( const ers::Context & context, const std::string & msg , const std::exception & cause ); Logging::InternalMessage( const ers::Context & context , const std::exception & cause ); void raise() const { throw Logging::InternalMessage(*this); } const char * get_class_name() const { return get_uid(); } ers::Issue * clone() const { return new dunedaq::logging::Logging::InternalMessage( *this ); } }; } namespace dunedaq::logging { inline Logging::InternalMessage::Logging::InternalMessage( const ers::Context & context ) : ers::Issue( context ) { } inline Logging::InternalMessage::Logging::InternalMessage( const ers::Context & context, const std::string & msg ) : ers::Issue( context, msg ) { } inline Logging::InternalMessage::Logging::InternalMessage( const ers::Context & context, const std::string & msg , const std::exception & cause ) : ers::Issue( context, msg , cause ) { } inline Logging::InternalMessage::Logging::InternalMessage( const ers::Context & context , const std::exception & cause ) : ers::Issue( context , cause ) { } } namespace { ers::IssueRegistrator<dunedaq::logging::Logging::InternalMessage> dunedaq::logging_Logging::InternalMessage_instance; } static inline TraceStreamer& operator<<(TraceStreamer& x, const dunedaq::logging::Logging::InternalMessage &r) {if (x.do_m) { x.line_=r.context().line_number(); x.msg_append( r.message().c_str() ); } if (x.do_s) { if (x.lvl_==TLVL_INFO) ers::info( r ); else if (x.lvl_==TLVL_LOG) ers::log( r ); else ers::debug( r, x.lvl_-TLVL_DEBUG ); x.do_s = 0; } return x; }
An abstract interface to access an Issue context.
Definition Context.hpp:30
Base class for any user define issue.
Definition Issue.hpp:69
virtual const char * get_class_name() const =0
Get key for class (used for serialisation)
virtual Issue * clone() const =0
virtual void raise() const =0
throws a copy of this issue preserving the real issue type
CTB Buffer Issue
void info(const Issue &issue)
Definition ers.hpp:95
void log(const Issue &issue)
Definition ers.hpp:102
void debug(const Issue &issue, int level=debug_level())
Definition ers.hpp:74
static TraceStreamer & operator<<(TraceStreamer &x, const dunedaq::logging::Logging::InternalMessage &r)
Definition tmp.hpp:1