CbmRoot
runParameterMQServer.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
15 #include "ParameterMQServer.h"
16 #include "runFairMQDevice.h"
17 
18 namespace bpo = boost::program_options;
19 
20 void addCustomOptions(bpo::options_description& options) {
21  options.add_options()(
22  "first-input-name",
23  bpo::value<std::string>()->default_value("first_input.root"),
24  "First input file name")("first-input-type",
25  bpo::value<std::string>()->default_value("ROOT"),
26  "First input file type (ROOT/ASCII)")(
27  "second-input-name",
28  bpo::value<std::string>()->default_value(""),
29  "Second input file name")("second-input-type",
30  bpo::value<std::string>()->default_value("ROOT"),
31  "Second input file type (ROOT/ASCII)")(
32  "libs-to-load",
33  bpo::value<std::string>()->default_value(""),
34  "List of libraries to load")("output-name",
35  bpo::value<std::string>()->default_value(""),
36  "Output file name")(
37  "output-type",
38  bpo::value<std::string>()->default_value("ROOT"),
39  "Output file type")("channel-name",
40  bpo::value<std::string>()->default_value("data"),
41  "Output channel name");
42 }
43 
44 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
45  return new ParameterMQServer();
46 }
ParameterMQServer
Definition: ParameterMQServer.h:24
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runParameterMQServer.cxx:44
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runParameterMQServer.cxx:20
ParameterMQServer.h