Elements
5.10
A C++ base framework for the Euclid Software.
|
Go to the documentation of this file.
26 #include <boost/filesystem/path.hpp>
49 cerr <<
"Exception has been thrown : " <<
e.what() << endl;
52 cerr <<
"An unknown exception has been thrown"<< endl;
62 path prog_path {argv[0]};
ELEMENTS_API const boost::filesystem::path & getProgramName() const
int main(int argc, char *argv[])
define a list of standard exit codes for executables
boost::filesystem::path path
ExitCode
Strongly typed exit numbers.
@ NOT_OK
Generic unknown failure.
virtual void defineOptions()=0
ELEMENTS_API ExitCode run(int argc, char **argv) noexcept
void setup(int argc, char **argv)
boost::filesystem::path m_program_path
constexpr double e
The base of the natural logarithm .
ELEMENTS_API const boost::filesystem::path & getProgramPath() const
Macro to silence unused variables warnings from the compiler.
boost::filesystem::path m_program_name