7 #include "FairMQLogger.h"
8 #include "runSimpleMQStateMachine.h"
15 int main(
int argc,
char** argv)
20 std::vector<std::string> classname;
21 std::vector<std::string> branchname;
23 namespace po = boost::program_options;
24 po::options_description fileSink_options(
"FileSink options");
25 fileSink_options.add_options()
26 (
"file-name", po::value<std::string> (&
filename) ,
"Path to the output file")
27 (
"class-name", po::value<std::vector<std::string>>(&classname) ,
"class name")
28 (
"branch-name", po::value<std::vector<std::string>>(&branchname),
"branch name");
31 FairMQProgOptions config;
32 config.AddToCmdLineOptions(fileSink_options);
34 config.ParseAll(argc, argv);
39 if ( classname.size() != branchname.size() ) {
40 LOG(ERROR) <<
"The classname size (" << classname.size() <<
") and branchname size (" << branchname.size() <<
") MISMATCH!!!";
48 runStateMachine(fileSink, config);
52 catch (std::exception& e)
54 LOG(ERROR) <<
"Unhandled Exception reached the top of main: "
55 << e.what() <<
", application will now exit";
int main(int argc, char **argv)