DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
JSonOpMonFacility.hpp
Go to the documentation of this file.
1
8
9#ifndef OPMONLIB_INCLUDE_OPMONLIB_JSONOPMONFACILITY_HPP_
10#define OPMONLIB_INCLUDE_OPMONLIB_JSONOPMONFACILITY_HPP_
11
13#include <google/protobuf/util/json_util.h>
14
15namespace dunedaq::opmonlib {
16
18{
19public:
20 explicit JSonOpMonFacility(std::string uri)
22 {
23
24 m_opt.add_whitespace = true;
25 m_opt.preserve_proto_field_names = true;
26 }
27
28protected:
29 const auto& get_json_options() const { return m_opt; }
30
31private:
32 google::protobuf::util::JsonPrintOptions m_opt;
33};
34
35} // namespace dunedaq::opmonlib
36
37#endif // OPMONLIB_INCLUDE_OPMONLIB_JSONOPMONFACILITY_HPP_
google::protobuf::util::JsonPrintOptions m_opt
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility uri
Definition Issues.hpp:71