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]};
Macro to silence unused variables warnings from the compiler.
ELEMENTS_API ExitCode run(int argc, char **argv) noexcept
constexpr double e
The base of the natural logarithm .
boost::filesystem::path m_program_name
void setup(int argc, char **argv)
ELEMENTS_API const boost::filesystem::path & getProgramPath() const
boost::filesystem::path path
ExitCode
Strongly typed exit numbers.
define a list of standard exit codes for executables
boost::filesystem::path m_program_path
ELEMENTS_API const boost::filesystem::path & getProgramName() const
virtual void defineOptions()=0