|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Namespaces | |
| namespace | format |
Classes | |
| struct | AbortStream |
| Aborts the current application. More... | |
| class | AnyIssue |
| class | Configuration |
| Manager of ERS streams configuration. More... | |
| class | Context |
| An abstract interface to access an Issue context. More... | |
| struct | erstraceStream |
| struct | ExitStream |
| Terminates the current application. More... | |
| class | FilterStream |
| Filtering stream implementation. More... | |
| struct | FormattedStandardStream |
| struct | GlobalLockStream |
| Lock for ERS streams. More... | |
| class | InputStream |
| ERS Issue input stream interface. More... | |
| class | Issue |
| Base class for any user define issue. More... | |
| class | IssueCatcherHandler |
| Implements issue catcher lifetime management. More... | |
| class | IssueFactory |
| Implements factory pattern for user defined Issues. More... | |
| class | IssueReceiver |
| ERS Issue receiver interface. More... | |
| class | IssueRegistrator |
| class | LocalContext |
| struct | LocalProcessContext |
| struct | LockStream |
| Lock implementation for an ERS stream. More... | |
| struct | NullStream |
| Null stream. More... | |
| class | OutputStream |
| ERS abstract output stream interface. More... | |
| class | PluginException |
| class | PluginManager |
| class | PyContext |
| class | PyIssue |
| class | RemoteContext |
| struct | RemoteProcessContext |
| class | RFilterStream |
| Filtering stream implementation. More... | |
| struct | Severity |
| class | SingletonCreator |
| struct | StandardStream |
| Single line, human readable format stream. More... | |
| struct | StandardStreamOutput |
| class | StreamInitializer |
| class | StreamManager |
| This class manages and provides access to ERS streams. More... | |
| class | ThrottleStream |
| Throws issues as exceptions. More... | |
| struct | ThrowStream |
| Throws issues as exceptions. More... | |
Typedefs | |
| typedef Issue | Exception |
| typedef std::map< std::string, std::string > | string_map |
| using | inheritance_type = std::list<std::string> |
Enumerations | |
| enum | severity { Debug , Log , Information , Warning , Error , Fatal } |
Functions | |
| std::ostream & | operator<< (std::ostream &, const ers::Configuration &) |
| IssueCatcherHandler * | set_issue_catcher (const std::function< void(const ers::Issue &)> &catcher) |
| int | debug_level () |
| void | debug (const Issue &issue, int level=debug_level()) |
| void | error (const Issue &issue) |
| void | fatal (const Issue &issue) |
| void | info (const Issue &issue) |
| void | log (const Issue &issue) |
| int | verbosity_level () |
| void | warning (const Issue &issue) |
| int | enable_core_dump () |
| void | tokenize (const std::string &text, const std::string &separators, std::vector< std::string > &tokens) |
| int | read_from_environment (const char *name, int default_value) |
| const char * | read_from_environment (const char *name, const char *default_value) |
| std::ostream & | operator<< (std::ostream &, const ers::Issue &) |
| std::ostream & | operator<< (std::ostream &, const IssueFactory &factory) |
| streaming operator | |
| dunedaq::ersschema::Context | to_schema (const Context &c) |
| dunedaq::ersschema::SimpleIssue | to_schema (const Issue &i) |
| dunedaq::ersschema::IssueChain | to_schema_chain (const Issue &i) |
| void | to_schema (const Context &c, dunedaq::ersschema::Context &out) |
| void | to_schema (const Issue &i, dunedaq::ersschema::SimpleIssue &out) |
| void | to_schema (const Issue &i, dunedaq::ersschema::IssueChain &out) |
| severity | parse (const std::string &s, severity &) |
| Severity | parse (const std::string &s, Severity &) |
| std::string | to_string (severity s) |
| std::string | to_string (Severity s) |
| Transforms a severity type into the corresponding string. | |
| std::ostream & | operator<< (std::ostream &out, ers::severity severityseverity) |
| std::ostream & | operator<< (std::ostream &out, const ers::Severity &severityseverity) |
| std::istream & | operator>> (std::istream &in, ers::severity &severityseverity) |
| std::istream & | operator>> (std::istream &in, ers::Severity &severityseverity) |
| std::ostream & | operator<< (std::ostream &, const ers::StreamManager &) |
| message (message) | |
| pydebug (msg, lvl) | |
| pylog (msg) | |
| pyinfo (msg) | |
| pywarning (issue) | |
| pyerror (issue) | |
| pyfatal (issue) | |
Variables | |
| template<class T> | |
| std::mutex | SingletonCreator< T >::s_mutex |
| template<class T> | |
| T * | SingletonCreator< T >::s_instance |
This is a wrapping namespace for all ERS classes and global functions.
| typedef Issue ers::Exception |
| using ers::inheritance_type = std::list<std::string> |
| typedef std::map<std::string, std::string> ers::string_map |
| enum ers::severity |
| Enumerator | |
|---|---|
| Debug | |
| Log | |
| Information | |
| Warning | |
| Error | |
| Fatal | |
Definition at line 36 of file Severity.hpp.
|
inline |
This function sends the issue to the ERS DEBUG stream which corresponds to the given debug level.
| issue | the issue to be reported \level debug level which will be associated with the reported issue |
Definition at line 91 of file ers.hpp.
|
inline |
This function returns the current debug level for ERS.
Definition at line 80 of file ers.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
This function sends the issue to the ERS INFO stream.
| issue | the issue to be reported |
Definition at line 121 of file ers.hpp.
|
inline |
This function sends the issue to the ERS LOG stream.
| issue | the issue to be reported |
Definition at line 131 of file ers.hpp.
| message | ( | message | ) |
Definition at line 84 of file __init__.py.
| std::ostream & ers::operator<< | ( | std::ostream & | out, |
| const ers::Configuration & | conf ) |
Definition at line 59 of file Configuration.cpp.
| std::ostream & ers::operator<< | ( | std::ostream & | out, |
| const ers::Issue & | issue ) |
Standard streaming operator - puts the issue in human readable format into the standard out stream.
| out | the destination out stream |
| issue | the Issue to be printed |
Definition at line 217 of file Issue.cpp.
| std::ostream & ers::operator<< | ( | std::ostream & | out, |
| const ers::StreamManager & | ) |
Definition at line 356 of file StreamManager.cpp.
| std::ostream & ers::operator<< | ( | std::ostream & | , |
| const IssueFactory & | factory ) |
streaming operator
|
inline |
Definition at line 77 of file Severity.hpp.
|
inline |
Definition at line 70 of file Severity.hpp.
|
inline |
Definition at line 94 of file Severity.hpp.
|
inline |
Definition at line 85 of file Severity.hpp.
| ers::Severity ers::parse | ( | const std::string & | string, |
| ers::Severity & | s ) |
Parses a string and extracts a severity
| s | the string to parse |
Definition at line 75 of file Severity.cpp.
| ers::severity ers::parse | ( | const std::string & | string, |
| ers::severity & | s ) |
Parses a string and extracts a severity
| s | the string to parse |
Definition at line 60 of file Severity.cpp.
| pydebug | ( | msg, | |
| lvl ) |
Definition at line 98 of file __init__.py.
| pyerror | ( | issue | ) |
Definition at line 121 of file __init__.py.
| pyfatal | ( | issue | ) |
Definition at line 127 of file __init__.py.
| pyinfo | ( | msg | ) |
Definition at line 106 of file __init__.py.
| pylog | ( | msg | ) |
Definition at line 102 of file __init__.py.
| pywarning | ( | issue | ) |
Definition at line 115 of file __init__.py.
| const char * ers::read_from_environment | ( | const char * | name, |
| const char * | default_value ) |
| int ers::read_from_environment | ( | const char * | name, |
| int | default_value ) |
Definition at line 33 of file Util.cpp.
|
inline |
This function sets up the local issue handler function. This function will be executed in the context
of dedicated thread which will be created as a result of this call. All the issues which are reported
via the ers::error, ers::fatal and ers::warning functions will be forwarded to this thread.
\param issue the issue to be reported
\return pointer to the handler object, which allows to remove the catcher by just destroying this object.
If an applications ignores this return value there will no way of de installing the issue
catcher.
| ers::IssueCatcherAlreadySet | for safety reasons local issue handler can be set only once |
Definition at line 71 of file ers.hpp.
| dunedaq::ersschema::Context ers::to_schema | ( | const Context & | c | ) |
Definition at line 5 of file Schema.cpp.
| void ers::to_schema | ( | const Context & | c, |
| dunedaq::ersschema::Context & | out ) |
Definition at line 32 of file Schema.cpp.
| dunedaq::ersschema::SimpleIssue ers::to_schema | ( | const Issue & | i | ) |
Definition at line 14 of file Schema.cpp.
| void ers::to_schema | ( | const Issue & | i, |
| dunedaq::ersschema::IssueChain & | out ) |
Definition at line 76 of file Schema.cpp.
| void ers::to_schema | ( | const Issue & | i, |
| dunedaq::ersschema::SimpleIssue & | out ) |
Definition at line 50 of file Schema.cpp.
| dunedaq::ersschema::IssueChain ers::to_schema_chain | ( | const Issue & | i | ) |
Definition at line 23 of file Schema.cpp.
| std::string ers::to_string | ( | ers::Severity | severity | ) |
Transforms a severity type into the corresponding string.
| s | severity |
Definition at line 43 of file Severity.cpp.
| std::string ers::to_string | ( | severity | s | ) |
| void ers::tokenize | ( | const std::string & | text, |
| const std::string & | separators, | ||
| std::vector< std::string > & | tokens ) |
Definition at line 18 of file Util.cpp.
|
inline |
This function returns the current verbosity level for ERS.
|
inline |
| T* ers::SingletonCreator< T >::s_instance |
Definition at line 58 of file SingletonCreator.hpp.
| std::mutex ers::SingletonCreator< T >::s_mutex |
Definition at line 55 of file SingletonCreator.hpp.