10 #include "runFairMQDevice.h"
12 namespace bpo = boost::program_options;
18 (
"in-channel", bpo::value<std::string>()->default_value(
"data2"),
"Name of the input channel")
19 (
"ack-channel", bpo::value<std::string>()->default_value(
"ack"),
"Name of the acknowledgement channel")
20 (
"data-format", bpo::value<std::string>()->default_value(
"binary"),
"Data format (binary|boost|flatbuffers|msgpack|protobuf|tmessage)");
24 FairMQDevicePtr
getDevice(
const FairMQProgOptions& config)
26 std::string dataFormat = config.GetValue<std::string>(
"data-format");
28 if (dataFormat ==
"binary") {
30 }
else if (dataFormat ==
"boost") {
32 void(boost::archive::binary_iarchive&,
33 const unsigned int)>::value
35 LOG(error) <<
"Boost serialization for Input Payload requested, but the input type does not support it. "
36 "Check the TIn parameter. Aborting.";
40 }
else if (dataFormat ==
"tmessage") {
44 else if (dataFormat ==
"flatbuffers") {
49 else if (dataFormat ==
"msgpack") {
54 else if (dataFormat ==
"protobuf") {
60 <<
"No valid data format provided. (--data-format binary|boost|flatbuffers|msgpack|protobuf|tmessage). ";
void addCustomOptions(bpo::options_description &options)
FairMQDevicePtr getDevice(const FairMQProgOptions &config)