Files Classes Functions Hierarchy
#include <cassert>#include <iostream>#include <commandline.h>#include <simtemplatedvirtualfunc.h>
Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 10 of file main.cpp.
References simtemplatedvirtualfunc::doc, commandline::mapvar(), simtemplatedvirtualfunc::test01(), and simtemplatedvirtualfunc::test02().
00011 { 00012 commandline cmd(argc,argv); 00013 uint prog(0); 00014 cmd.mapvar(prog,"prog"); 00015 00016 switch (prog) 00017 { 00018 case 0: 00019 cout << "$./main prog=1 - " << simtemplatedvirtualfunc::doc[1] << endl; 00020 cout << "$./main prog=2 - " << simtemplatedvirtualfunc::doc[2] << endl; 00021 break; 00022 00023 case 1: simtemplatedvirtualfunc::test01(); break; 00024 case 2: simtemplatedvirtualfunc::test02(); break; 00025 00026 default: cout << "error: No case handled." << endl; return 1; 00027 } 00028 00029 return 0; 00030 }
1.5.8