Elements  6.2
A C++ base framework for the Euclid Software.
Public Member Functions | List of all members
Elements::Examples::Program Class Reference

Simple example of an Elements program. More...

Inheritance diagram for Elements::Examples::Program:
Inheritance graph
[legend]
Collaboration diagram for Elements::Examples::Program:
Collaboration graph
[legend]

Public Member Functions

OptionsDescription defineSpecificProgramOptions () override
 Allows to define the (command line and configuration file) options specific to this program. More...
 
ExitCode mainMethod (map< string, VariableValue > &args) override
 The "main" method. More...
 
- Public Member Functions inherited from Elements::Program
 Program ()=default
 Constructor. More...
 
virtual ~Program ()
 Destructor. More...
 
virtual std::pair< OptionsDescription, PositionalOptionsDescriptiondefineProgramArguments ()
 This methods must be used to the program arguments. More...
 

Additional Inherited Members

- Public Types inherited from Elements::Program
using options_description = boost::program_options::options_description
 
using positional_options_description = boost::program_options::positional_options_description
 
using variable_value = boost::program_options::variable_value
 
using variables_map = boost::program_options::variables_map
 
using OptionsDescription = options_description
 
using PositionalOptionsDescription = positional_options_description
 
using VariableValue = variable_value
 
using VariablesMap = variables_map
 
using ExitCode = Elements::ExitCode
 
using Logging = Elements::Logging
 

Detailed Description

Simple example of an Elements program.

All C++ executable must extend the Elements::Program base class

Examples
ElementsExamples/src/program/Program.cpp, and ElementsExamples/src/program/SimpleProgram.cpp.

Definition at line 79 of file Program.cpp.

Member Function Documentation

◆ defineSpecificProgramOptions()

OptionsDescription Elements::Examples::Program::defineSpecificProgramOptions ( )
inlineoverridevirtual

Allows to define the (command line and configuration file) options specific to this program.

See the ElementsProgram documentation for more details.

Returns
A BOOST program options_description

Reimplemented from Elements::Program.

Examples
ElementsExamples/src/program/Program.cpp, and ElementsExamples/src/program/SimpleProgram.cpp.

Definition at line 91 of file Program.cpp.

◆ mainMethod()

ExitCode Elements::Examples::Program::mainMethod ( map< string, VariableValue > &  args)
inlineoverridevirtual

The documentation for this class was generated from the following file: