Elements
6.2
A C++ base framework for the Euclid Software.
|
Go to the documentation of this file.
28 #include <boost/program_options.hpp>
37 using boost::program_options::value;
69 log.info(
"This Works");
74 cout <<
"This Works too!" << endl;
76 if (args.count(
"input-files") > 0) {
78 for (
string file : files) {
79 cout <<
"Input file " << file << endl;
87 auto add = desc.add_options();
92 pos_desc.add(
"input-files", -1);
Example of an Elements program.
options_description OptionsDescription
ExitCode
Strongly typed exit numbers.
positional_options_description PositionalOptionsDescription
Simple example of an Elements program.
std::pair< OptionsDescription, PositionalOptionsDescription > defineProgramArguments() override
This methods must be used to the program arguments.
static Logging getLogger(const std::string &name="")
#define MAIN_FOR(ELEMENTS_PROGRAM_NAME)
Macro to silence unused variables warnings from the compiler.
ExitCode mainMethod(ELEMENTS_UNUSED map< string, VariableValue > &args) override
The "main" method.