DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::appfwk::cmd Namespace Reference

Classes

struct  AddressedCmd
 
struct  CmdObj
 

Typedefs

using Match = std::string
 
using AddressedCmds = std::vector<dunedaq::appfwk::cmd::AddressedCmd>
 

Functions

void to_json (data_t &j, const AddressedCmd &obj)
 
void from_json (const data_t &j, AddressedCmd &obj)
 
void to_json (data_t &j, const CmdObj &obj)
 
void from_json (const data_t &j, CmdObj &obj)
 

Typedef Documentation

◆ AddressedCmds

◆ Match

using dunedaq::appfwk::cmd::Match = std::string

Definition at line 19 of file Structs.hpp.

Function Documentation

◆ from_json() [1/2]

void dunedaq::appfwk::cmd::from_json ( const data_t & j,
AddressedCmd & obj )
inline

Definition at line 27 of file Nljs.hpp.

27 {
28 if (j.contains("match"))
29 j.at("match").get_to(obj.match);
30 if (j.contains("data"))
31 j.at("data").get_to(obj.data);
32 }

◆ from_json() [2/2]

void dunedaq::appfwk::cmd::from_json ( const data_t & j,
CmdObj & obj )
inline

Definition at line 38 of file Nljs.hpp.

38 {
39 if (j.contains("modules"))
40 j.at("modules").get_to(obj.modules);
41 }

◆ to_json() [1/2]

void dunedaq::appfwk::cmd::to_json ( data_t & j,
const AddressedCmd & obj )
inline

Definition at line 22 of file Nljs.hpp.

22 {
23 j["match"] = obj.match;
24 j["data"] = obj.data;
25 }

◆ to_json() [2/2]

void dunedaq::appfwk::cmd::to_json ( data_t & j,
const CmdObj & obj )
inline

Definition at line 34 of file Nljs.hpp.

34 {
35 j["modules"] = obj.modules;
36 }