DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
JSonOpMonFacility.hpp
Go to the documentation of this file.
1
9#ifndef OPMONLIB_INCLUDE_OPMONLIB_JSONOPMONFACILITY_HPP_
10#define OPMONLIB_INCLUDE_OPMONLIB_JSONOPMONFACILITY_HPP_
11
13#include <google/protobuf/util/json_util.h>
14
15
16namespace dunedaq::opmonlib {
17
19{
20public:
21 explicit JSonOpMonFacility(std::string uri)
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
36} // namespace dunedaq::opmonlib
37
38#endif //OPMONLIB_INCLUDE_OPMONLIB_JSONOPMONFACILITY_HPP_
39
google::protobuf::util::JsonPrintOptions m_opt
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility uri
Definition Issues.hpp:77