DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
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
13namespace dunedaq::cmdlib {
14
15typedef nlohmann::json cmdobj_t;
16
21{
22public:
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__
Interface needed by commanded objects in the DAQ.
virtual ~CommandedObject()=default
virtual void execute(const cmdobj_t &command)=0
Pure virtual execute member.