DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <messenger.hpp>
Public Types | |
typedef std::string | t_str |
![]() | |
typedef std::string | t_str |
typedef std::vector< t_str > | t_levels |
Static Public Member Functions | |
static HAS_POST post_ret_type | post (t_str const &, t_str const &) |
static std::unique_ptr< batch_guard > | batchmode () |
Private Types | |
typedef std::unordered_multiset< t_str > | t_message_bucket |
typedef std::array< t_message_bucket, static_cast< int >(messages::sizeme) > | t_batches |
Private Member Functions | |
qt ()=delete | |
qt (qt const &)=delete | |
qt | operator= (qt const &)=delete |
Static Private Member Functions | |
static post_ret_type | direct_post (t_str const &m, t_str const &l) |
static post_ret_type | merge_post (t_str const &m, t_str const &l) |
static void | purge () |
Static Private Attributes | |
static std::mutex | m_block |
static std::atomic< bool > | m_batch_mode |
static t_batches | m_batches |
Friends | |
class | batch_guard |
Additional Inherited Members | |
![]() | |
static t_str const | debug = "DEBUG" |
static t_str const | info = "INFO" |
static t_str const | note = "NOTE" |
static t_str const | warn = "WARN" |
static t_str const | error = "ERROR" |
static t_str const | fail = "FAIL" |
static t_levels const | all_levels = {debug, info, note, warn, error, fail} |
Messenger handles posting of messages and delegates them to the main window according to their level to be displayed as needed
Definition at line 174 of file messenger.hpp.
|
private |
Definition at line 218 of file messenger.hpp.
|
private |
Definition at line 217 of file messenger.hpp.
std::string dbe::interface::messenger::qt::t_str |
Definition at line 179 of file messenger.hpp.
|
privatedelete |
|
privatedelete |
|
static |
Set returns a batch_guard object that sets m_batch_mode, which resets it batch object when it is destroyed.
Definition at line 157 of file messenger.cpp.
|
staticprivate |
Definition at line 87 of file messenger.cpp.
|
staticprivate |
Definition at line 123 of file messenger.cpp.
This method provides posting facilities for messages
the | level of the message to be treated |
A | string message to be treatead |
Definition at line 71 of file messenger.cpp.
|
staticprivate |
Takes all messages and forms a message for each groups, that is then resent for direct_post
Definition at line 132 of file messenger.cpp.
|
friend |
Definition at line 177 of file messenger.hpp.
|
staticprivate |
Definition at line 215 of file messenger.hpp.
|
staticprivate |
Definition at line 219 of file messenger.hpp.
|
staticprivate |
Definition at line 214 of file messenger.hpp.