10 #include "runFairMQDevice.h"
15 namespace bpo = boost::program_options;
21 (
"task-name", bpo::value<std::string>()->required(),
"Name of task to run")
22 (
"keep-data", bpo::value<std::string>(),
"Name of data to keep in stream")
23 (
"in-channel", bpo::value<std::string>()->default_value(
"data-in"),
"input channel name")
24 (
"out-channel", bpo::value<std::string>()->default_value(
"data-out"),
"output channel name")
25 (
"par-channel", bpo::value<std::string>()->default_value(
"param"),
"param channel name");
29 FairMQDevicePtr
getDevice(
const FairMQProgOptions& config)
31 std::string taskname = config.GetValue<std::string>(
"task-name");
33 std::cout <<
"get device with setting!" << std::endl;
35 if (taskname ==
"PixelAltFindHits") {
39 LOG(info) <<
"TASK \"" << taskname <<
"\" UNKNOWN!!!";
void addCustomOptions(bpo::options_description &options)
FairMQDevicePtr getDevice(const FairMQProgOptions &config)