DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
cmdlib
include
cmdlib
CommandedObject.hpp
Go to the documentation of this file.
1
8
#ifndef CMDLIB_INCLUDE_CMDLIB_COMMANDEDOBJECT_HPP_
9
#define CMDLIB_INCLUDE_CMDLIB_COMMANDEDOBJECT_HPP_
10
11
#include <nlohmann/json.hpp>
12
13
namespace
dunedaq::cmdlib
{
14
15
typedef
nlohmann::json
cmdobj_t
;
16
20
class
CommandedObject
21
{
22
public
:
24
virtual
void
execute
(
const
cmdobj_t
& command) = 0;
25
26
// virtual destructor
27
virtual
~CommandedObject
() =
default
;
28
};
29
30
}
// namespace dunedaq::cmdlib
31
32
#endif
// CMDLIB_INCLUDE_CMDLIB_COMMANDEDOBJECT_HPP__
dunedaq::cmdlib::CommandedObject
Interface needed by commanded objects in the DAQ.
Definition
CommandedObject.hpp:21
dunedaq::cmdlib::CommandedObject::~CommandedObject
virtual ~CommandedObject()=default
dunedaq::cmdlib::CommandedObject::execute
virtual void execute(const cmdobj_t &command)=0
Pure virtual execute member.
dunedaq::cmdlib
Definition
CommandedObject.hpp:13
dunedaq::cmdlib::cmdobj_t
nlohmann::json cmdobj_t
Definition
CommandedObject.hpp:15
Generated on Tue Feb 17 2026 for DUNE-DAQ by
1.12.0