Elements
6.0.1
A C++ base framework for the Euclid Software.
|
#include <SimpleProgram.h>
Public Member Functions | |
ELEMENTS_API ExitCode | run (int argc, char **argv) noexcept |
ELEMENTS_API const Path::Item & | getProgramPath () const |
ELEMENTS_API const Path::Item & | getProgramName () const |
Protected Member Functions | |
SimpleProgram ()=default | |
virtual | ~SimpleProgram () |
virtual ExitCode | main ()=0 |
virtual void | defineOptions ()=0 |
Private Member Functions | |
void | setup (int argc, char **argv) |
Private Attributes | |
Path::Item | m_program_name |
Path::Item | m_program_path |
Definition at line 40 of file SimpleProgram.h.
|
protecteddefault |
|
protectedvirtual |
Definition at line 32 of file SimpleProgram.cpp.
|
protectedpure virtual |
Implemented in Elements::Examples::AnotherSimpleProgramExample.
Referenced by setup().
const Path::Item & Elements::SimpleProgram::getProgramName | ( | ) | const |
Definition at line 70 of file SimpleProgram.cpp.
References m_program_name.
Referenced by Elements::Examples::AnotherSimpleProgramExample::main().
const Path::Item & Elements::SimpleProgram::getProgramPath | ( | ) | const |
Definition at line 66 of file SimpleProgram.cpp.
References m_program_path.
Referenced by Elements::Examples::AnotherSimpleProgramExample::main().
|
protectedpure virtual |
Implemented in Elements::Examples::AnotherSimpleProgramExample.
|
noexcept |
Definition at line 34 of file SimpleProgram.cpp.
References Elements::Kernel::Units::e, std::endl(), main(), Elements::NOT_OK, Elements::OK, and std::exception::what().
|
private |
Definition at line 56 of file SimpleProgram.cpp.
References defineOptions(), m_program_name, and m_program_path.
|
private |
Definition at line 58 of file SimpleProgram.h.
Referenced by getProgramName(), and setup().
|
private |
Definition at line 59 of file SimpleProgram.h.
Referenced by getProgramPath(), and setup().