DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
BackendOpMonFacility.hpp
Go to the documentation of this file.
1#ifndef OPMONLIB_INCLUDE_OPMONLIB_BACKENDOPMONFACILITY_HPP_
2#define OPMONLIB_INCLUDE_OPMONLIB_BACKENDOPMONFACILITY_HPP_
3
5#include "opmonlib/Utils.hpp"
6
7#include <list>
8#include <mutex>
9#include <regex>
10
12
14{
15
17 using data_t = std::list<entry_t>;
18
19public:
21 : OpMonFacility("backend://")
22 {
23 ;
24 }
25
26 void publish(entry_t&& e) const override;
27
28 data_t get_entries(std::regex measurement_filter = std::regex(".*"));
29
30private:
31 mutable data_t m_list;
32 mutable std::mutex m_mutex;
33};
34}
35
36#endif // OPMONLIB_INCLUDE_OPMONLIB_BACKENDOPMONFACILITY_HPP_
void publish(entry_t &&e) const override
data_t get_entries(std::regex measurement_filter=std::regex(".*"))