|
Elements
5.10
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 boost::filesystem::path & | getProgramPath () const |
| ELEMENTS_API const boost::filesystem::path & | 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 | |
| boost::filesystem::path | m_program_name |
| boost::filesystem::path | m_program_path |
Definition at line 41 of file SimpleProgram.h.
|
protecteddefault |
|
protectedvirtual |
Definition at line 35 of file SimpleProgram.cpp.
|
protectedpure virtual |
Implemented in Elements::Examples::AnotherSimpleProgramExample.
Referenced by setup().
| const path & Elements::SimpleProgram::getProgramName | ( | ) | const |
Definition at line 75 of file SimpleProgram.cpp.
References m_program_name.
Referenced by Elements::Examples::AnotherSimpleProgramExample::main().
| const path & Elements::SimpleProgram::getProgramPath | ( | ) | const |
Definition at line 71 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 37 of file SimpleProgram.cpp.
References Elements::Units::e, std::endl(), main(), Elements::NOT_OK, Elements::OK, and std::exception::what().
|
private |
Definition at line 60 of file SimpleProgram.cpp.
References defineOptions(), m_program_name, and m_program_path.
|
private |
Definition at line 64 of file SimpleProgram.h.
Referenced by getProgramName(), and setup().
|
private |
Definition at line 65 of file SimpleProgram.h.
Referenced by getProgramPath(), and setup().
1.8.5