37 #define EXCEPTIONTEST_VERSION \ 38 "EXCEPTIONTEST V1.0 test exception classes" 41 #include <tfxx/commandline.h> 42 #include <tfxx/error.h> 54 __FILE__, __LINE__, 5);
64 A(
const bool& throwbase):
Mtb(throwbase) { }
88 int main(
int iargc,
char* argv[])
95 "usage: exceptiontest [-b] [-nr] [-roc]" "\n" 96 " or: exceptiontest --help|-h" "\n" 104 "-b throw base class\n" 105 "-nr do not resume\n" 106 "-roc report on construct\n" 129 cerr << usage_text << endl;
139 cerr << usage_text << endl;
140 cerr << help_text << endl;
187 cout <<
"caught exception" << endl;
195 cout <<
"again" << endl;
201 cout <<
"caught exception" << endl;
209 cout <<
"survived" << endl;
#define EXCEPTIONTEST_VERSION
exception class for file system utilities
bool optset(const int &iopt) const
true if option # iopt was set on commandline
static void restore_report_state()
Restore previous report state.
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
Namespace containing all components of module commandline. ,.
Evaluates commandline by calling long_getopt. ,You may instantiate a Commandline object by passing th...
static void report_on_construct()
Issue a screen report on construction of exception.
int main(int iargc, char *argv[])
struct to define options ,This struct is used to define a list of options. An example is: ...
void setflag(const bool &tb)
Base class for exceptions.
virtual void report() const
Screen report.
#define TFXX_abort(M)
Abort and give a message.