proj home

Files   Classes   Functions   Hierarchy  

main.cpp

Go to the documentation of this file.
00001 
00002 #include <cassert>
00003 #include <iostream>
00004 using namespace std;
00005 
00006 #include <commandline.h>
00007 #include <simtemplatedvirtualfunc.h>
00008 
00009 
00010 int main(int argc, char** argv)
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 }
00031 
00032 

Generated on Fri Mar 4 00:49:25 2011 for Chelton Evans Source by  doxygen 1.5.8