Elements
5.10
A C++ base framework for the Euclid Software.
|
Abstract class for all Elements programs. More...
#include <Program.h>
Public Member Functions | |
Program ()=default | |
Constructor. More... | |
virtual | ~Program () |
Destructor. More... | |
virtual boost::program_options::options_description | defineSpecificProgramOptions () |
This methods must be used to define specific program options. More... | |
virtual std::pair < boost::program_options::options_description, boost::program_options::positional_options_description > | defineProgramArguments () |
This methods must be used to the program arguments. More... | |
virtual ExitCode | mainMethod (std::map< std::string, boost::program_options::variable_value > &args)=0 |
This is the "main" method of all Elements programs. More... | |
Abstract class for all Elements programs.
This abstract class defines the three interfaces that should be implemented by all Elements programs.
|
default |
Constructor.
|
virtualdefault |
Destructor.
|
virtual |
This methods must be used to the program arguments.
This is the second method that must be implemented by all Elements programs
Reimplemented in Elements::Examples::ProgramExampleWithArguments.
Definition at line 38 of file Program.cpp.
References std::make_pair().
|
virtual |
This methods must be used to define specific program options.
This is the first method that must be implemented by all Elements programs
Reimplemented in Elements::Examples::ProgramExample.
Definition at line 33 of file Program.cpp.
|
pure virtual |
This is the "main" method of all Elements programs.
This is the second method that must be implemented by all Elements programs. It represents the entry point.
args | A map containing the values given by the user for the program options defined by the defineSpecificProgramOptions() method |