1 #include "artdaq/Application/Commandable.hh"
2 #include "artdaq-core/Utilities/configureMessageFacility.hh"
3 #include "artdaq/DAQdata/Globals.hh"
4 #include "artdaq/ExternalComms/MakeCommanderPlugin.hh"
5 #include "artdaq/Application/LoadParameterSet.hh"
7 #include <boost/program_options.hpp>
8 #include <boost/lexical_cast.hpp>
12 int main(
int argc,
char* argv[])
14 artdaq::configureMessageFacility(
"commandable");
17 fhicl::ParameterSet config = LoadParameterSet<artdaq::CommanderInterface::Config>(argc, argv,
"stateResponder",
"This simple application sets up a CommanderInterface plugin and reports any received commands.");
20 artdaq::setMsgFacAppName(
"Commandable", config.get<
int>(
"id"));
26 commander->run_server();
Commandable is the base class for all artdaq components which implement the artdaq state machine...
std::unique_ptr< artdaq::CommanderInterface > MakeCommanderPlugin(const fhicl::ParameterSet &commander_pset, artdaq::Commandable &commandable)
Load a CommanderInterface plugin.