This is an example of how to use the SimpleProgram class.
#include <iostream>
namespace Examples {
class AnotherSimpleProgram : public SimpleProgram {
public:
throw Exception("This is an example exception.");
}
};
}
}
defines the base Elements exception class
define a list of standard exit codes for executables
Example of an Elements program.
void defineOptions() override
ExitCode main() override
The "main" method.
Elements::ExitCode ExitCode
#define MAIN(ELEMENTS_PROGRAM)