46 cerr <<
"Exception has been thrown : " << e.what() << endl;
49 cerr <<
"An unknown exception has been thrown" << endl;
58 Path::Item prog_path{argv[0]};
define a list of standard exit codes for executables
provide functions to retrieve resources pointed by environment variables
Macro to silence unused variables warnings from the compiler.
Path::Item m_program_path
void setup(int argc, char **argv)
ELEMENTS_API const Path::Item & getProgramPath() const
ELEMENTS_API ExitCode run(int argc, char **argv) noexcept
virtual void defineOptions()=0
Path::Item m_program_name
ELEMENTS_API const Path::Item & getProgramName() const
int main(int argc, char *argv[])
ExitCode
Strongly typed exit numbers.
@ NOT_OK
Generic unknown failure.