Elements
6.0.1
A C++ base framework for the Euclid Software.
|
Example of an Elements program. More...
Public Member Functions | |
void | defineOptions () override |
ExitCode | main () override |
The "main" method. More... | |
![]() | |
ELEMENTS_API ExitCode | run (int argc, char **argv) noexcept |
ELEMENTS_API const Path::Item & | getProgramPath () const |
ELEMENTS_API const Path::Item & | getProgramName () const |
Additional Inherited Members | |
![]() | |
SimpleProgram ()=default | |
virtual | ~SimpleProgram () |
Example of an Elements program.
This class is an example of a program based on the SimpleProgram class. It can be copied/pasted conveniently to write a new program.
Definition at line 39 of file AnotherSimpleProgramExample.cpp.
|
inlineoverridevirtual |
Implements Elements::SimpleProgram.
Definition at line 42 of file AnotherSimpleProgramExample.cpp.
|
inlineoverridevirtual |
The "main" method.
This method is the entry point to the program. In this sense, it is similar to a main (and it is why it is called main()). The code below provides only example stuff which should be replaced by real code in any program.
See the SimpleProgram documentation for more details.
Implements Elements::SimpleProgram.
Definition at line 55 of file AnotherSimpleProgramExample.cpp.
References std::endl(), Elements::SimpleProgram::getProgramName(), Elements::SimpleProgram::getProgramPath(), and Elements::OK.