DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::logging::Logging::InternalMessage Class Reference

#include <tmp.hpp>

Inheritance diagram for dunedaq::logging::Logging::InternalMessage:
[legend]
Collaboration diagram for dunedaq::logging::Logging::InternalMessage:
[legend]

Public Member Functions

 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
 throws a copy of this issue preserving the real issue type
const char * get_class_name () const
 Get key for class (used for serialisation).
ers::Issue * clone () const
Public Member Functions inherited from ers::Issue
 Issue (const Context &context, const std::string &message=std::string())
 Issue (const Context &context, const std::exception &cause)
 Issue (const Context &context, const std::string &message, const std::exception &cause)
 Issue (const Issue &other)
virtual ~Issue () noexcept
virtual inheritance_type get_class_inheritance () const =0
 Get inheritance chain.
void add_qualifier (const std::string &qualif)
 adds a qualifier to the issue
const Issue * cause () const
 return the cause Issue of this Issue
const Context & context () const
 Context of the issue.
const std::string & message () const
 General cause of the issue.
const std::vector< std::string > & qualifiers () const
 return array of qualifiers
const string_map & parameters () const
 return array of parameters
ers::Severity severity () const
 severity of the issue
template<class Precision = std::chrono::seconds>
std::string time (const std::string &format="%Y-%b-%d %H:%M:%S", bool isUTC=false) const
 string representation of local time of the issue
template<class Precision>
std::string localtime (const std::string &format="%Y-%b-%d %H:%M:%S") const
 string representation of UTC time of the issue
template<class Precision>
std::string gmtime (const std::string &format="%Y-%b-%d %H:%M:%S") const
std::time_t time_t () const
 seconds since 1 Jan 1970
const system_clock::time_point & ptime () const
 original time point of the issue
const char * what () const noexcept
 General cause of the issue.
ers::Severity set_severity (ers::Severity severityseverity) const
void wrap_message (const std::string &begin, const std::string &end)

Static Public Member Functions

static const char * get_uid ()

Friends

template<class>
class ers::IssueRegistrator

Additional Inherited Members

Protected Member Functions inherited from ers::Issue
 Issue (Severity severityseverity, const system_clock::time_point &time, const ers::Context &context, const std::string &message, const std::vector< std::string > &qualifiers, const std::map< std::string, std::string > &parameters, const ers::Issue *cause=0)
 Gets a value of any type that has an input operator for the standard stream defined.
template<typename T>
void get_value (const std::string &key, T &value) const
void get_value (const std::string &key, const char *&value) const
void get_value (const std::string &key, std::string &value) const
 Sets a value of any type that has an output operator for the standard stream defined.
template<typename T>
void set_value (const std::string &key, T value)
void set_message (const std::string &message)
void prepend_message (const std::string &message)
Static Protected Member Functions inherited from ers::Issue
static auto _get_inheritance ()

Detailed Description

Definition at line 2 of file tmp.hpp.

Member Function Documentation

◆ clone()

ers::Issue * dunedaq::logging::Logging::InternalMessage::clone ( ) const
inlinevirtual

Implements ers::Issue.

Definition at line 16 of file tmp.hpp.

16{ return new dunedaq::logging::Logging::InternalMessage(*this); }

◆ get_class_name()

const char * dunedaq::logging::Logging::InternalMessage::get_class_name ( ) const
inlinevirtual

Get key for class (used for serialisation).

Implements ers::Issue.

Definition at line 15 of file tmp.hpp.

15{ return get_uid(); }
static const char * get_uid()
Definition tmp.hpp:9

◆ get_uid()

const char * dunedaq::logging::Logging::InternalMessage::get_uid ( )
inlinestatic

Definition at line 9 of file tmp.hpp.

9{ return "dunedaq::logging::Logging::InternalMessage"; }

◆ Logging::InternalMessage() [1/4]

dunedaq::logging::Logging::InternalMessage::Logging::InternalMessage ( const ers::Context & context)

◆ Logging::InternalMessage() [2/4]

dunedaq::logging::Logging::InternalMessage::Logging::InternalMessage ( const ers::Context & context,
const std::exception & cause )

◆ Logging::InternalMessage() [3/4]

dunedaq::logging::Logging::InternalMessage::Logging::InternalMessage ( const ers::Context & context,
const std::string & msg )

◆ Logging::InternalMessage() [4/4]

dunedaq::logging::Logging::InternalMessage::Logging::InternalMessage ( const ers::Context & context,
const std::string & msg,
const std::exception & cause )

◆ raise()

void dunedaq::logging::Logging::InternalMessage::raise ( ) const
inlinevirtual

throws a copy of this issue preserving the real issue type

Implements ers::Issue.

Definition at line 14 of file tmp.hpp.

14{ throw Logging::InternalMessage(*this); }
Logging::InternalMessage(const ers::Context &context)

◆ ers::IssueRegistrator

template<class>
friend class ers::IssueRegistrator
friend

Definition at line 5 of file tmp.hpp.


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