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;
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!!!";
44 for (
unsigned int ielem = 0 ; ielem < classname.size() ; ielem++ ) {
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";
void SetProperty(const int key, const std::string &value)
int main(int argc, char **argv)
std
void AddOutputBranch(std::string classString, std::string branchString)