DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
CommandLineInterpreter parses the command-line options given to the application and stores the results as validated data members. More...
#include <CommandLineInterpreter.hpp>
Static Public Member Functions | |
static CommandLineInterpreter | parse (int argc, char **argv) |
Parse the command line and return a CommandLineInterpreter struct. | |
Public Attributes | |
bool | help_requested { false } |
std::string | app_name { "" } |
std::string | session_name { "" } |
std::string | configuration_id { "" } |
std::string | command_facility_plugin_name { "" } |
std::string | conf_service_plugin_name { "" } |
std::vector< std::string > | other_options {} |
Any other options which were passed and not recognized. | |
CommandLineInterpreter parses the command-line options given to the application and stores the results as validated data members.
Please note that contrary to the rest of the framework this class is not supposed to use ERS because the ERS cannot be instantiated until the command line is parsed
Definition at line 31 of file CommandLineInterpreter.hpp.
|
inlinestatic |
Parse the command line and return a CommandLineInterpreter struct.
argc | Number of arguments |
argv | Command-line arguments |
Definition at line 40 of file CommandLineInterpreter.hpp.
std::string dunedaq::appfwk::CommandLineInterpreter::app_name { "" } |
Definition at line 80 of file CommandLineInterpreter.hpp.
std::string dunedaq::appfwk::CommandLineInterpreter::command_facility_plugin_name { "" } |
Definition at line 83 of file CommandLineInterpreter.hpp.
std::string dunedaq::appfwk::CommandLineInterpreter::conf_service_plugin_name { "" } |
Definition at line 84 of file CommandLineInterpreter.hpp.
std::string dunedaq::appfwk::CommandLineInterpreter::configuration_id { "" } |
Definition at line 82 of file CommandLineInterpreter.hpp.
bool dunedaq::appfwk::CommandLineInterpreter::help_requested { false } |
Definition at line 78 of file CommandLineInterpreter.hpp.
std::vector<std::string> dunedaq::appfwk::CommandLineInterpreter::other_options {} |
Any other options which were passed and not recognized.
Definition at line 86 of file CommandLineInterpreter.hpp.
std::string dunedaq::appfwk::CommandLineInterpreter::session_name { "" } |
Definition at line 81 of file CommandLineInterpreter.hpp.