FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
15 #include "ParameterMQServer.h"
16 #include "runFairMQDevice.h"
17 
18 #include <string>
19 
20 namespace bpo = boost::program_options;
21 
22 void addCustomOptions(bpo::options_description& options)
23 {
24  // clang-format off
25  options.add_options()
26  ("first-input-name", bpo::value<std::string>()->default_value(""), "First input file name")
27  ("first-input-type", bpo::value<std::string>()->default_value("ROOT"), "First input file type (ROOT/ASCII)")
28  ("second-input-name", bpo::value<std::string>()->default_value(""), "Second input file name")
29  ("second-input-type", bpo::value<std::string>()->default_value("ROOT"), "Second input file type (ROOT/ASCII)")
30  ("output-name", bpo::value<std::string>()->default_value(""), "Output file name")
31  ("output-type", bpo::value<std::string>()->default_value("ROOT"), "Output file type")
32  ("channel-name", bpo::value<std::string>()->default_value(""), "Output channel name")
33  ("update-channel-name", bpo::value<std::string>()->default_value(""), "Update channel name");
34  // clang-format on
35 }
36 
37 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new ParameterMQServer(); }
void addCustomOptions(bpo::options_description &options)
FairMQDevicePtr getDevice(const FairMQProgOptions &config)