00001 #include "artdaq/Application/Commandable.hh"
00002 #include "artdaq-core/Utilities/configureMessageFacility.hh"
00003 #include "artdaq/DAQdata/Globals.hh"
00004 #include "artdaq/ExternalComms/MakeCommanderPlugin.hh"
00005 #include "artdaq/Application/LoadParameterSet.hh"
00006
00007 #include <boost/program_options.hpp>
00008 #include <boost/lexical_cast.hpp>
00009
00010 #include <iostream>
00011
00012 int main(int argc, char* argv[])
00013 {
00014 artdaq::configureMessageFacility("commandable");
00015
00016
00017 fhicl::ParameterSet config = LoadParameterSet(argc, argv);
00018
00019
00020 artdaq::setMsgFacAppName("Commandable", config.get<int>("id"));
00021
00022
00023 artdaq::Commandable commandable;
00024
00025 auto commander = artdaq::MakeCommanderPlugin(config, commandable);
00026 commander->run_server();
00027 }