1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#define XERR "."
#include "main.ih"
// update Options::alter, Options::inspect and
// Options::Options if g_longOpts is modified
Arg::LongOption g_longOpts[] =
{
Arg::LongOption{"base", 'B'},
Arg::LongOption{"cancer", 'c' }, // breast (def.),
// male, or female (implies LC)
Arg::LongOption{"config", 'C'},
Arg::LongOption{"cum-death", 'd'},
Arg::LongOption{"data", 'D'},
Arg::LongOption{"death-age", 'a'},
Arg::LongOption{"err", 'e'},
Arg::LongOption{"help", 'h'},
Arg::LongOption{"last-case", 'l'},
Arg::LongOption{"log", Arg::Required},
Arg::LongOption{"one-analysis", 'o'},
Arg::LongOption{"parameters", 'P'},
Arg::LongOption{"rounds", 'R'},
Arg::LongOption{"spread", 's'},
Arg::LongOption{"tnm", 'T'},
Arg::LongOption{"tumor-age", 't'},
Arg::LongOption{"verbose", 'V'},
Arg::LongOption{"version", 'v'},
};
//FBB Arg::LongOption{"sensitivity", 'S'},
//FBB Arg const &arg = Arg::initialize("a:B:c:C:d:D:el:hoP:R:S:s:t:TvV",
auto const *g_longEnd = g_longOpts + size(g_longOpts);
//main
int main(int argc, char **argv)
try
{
Arg const &arg = Arg::initialize("a:B:c:C:d:D:el:hoP:R:s:t:TvV",
g_longOpts, g_longEnd, argc, argv);
arg.versionHelp(usage, Icmake::version, arg.option('o') ? 0 : 1);
Options::instance(); // construct the Options object
Simulator simulator; // construct the simulator
simulator.run(); // and run it.
}
//=
catch (...)
{
return handleException();
}
|