proj home

Files   Classes   Functions   Hierarchy  

main.cpp

Go to the documentation of this file.
00001 #include <iostream>
00002 #include <vector>
00003 using namespace std;
00004 
00005 #include <commandline.h>
00006 #include <desystest.h>
00007 
00008 int main(int argc, char** argv)
00009 {
00010   commandline cmd(argc,argv);
00011 
00012   uint prog(0);
00013   cmd.mapvar(prog,"prog");
00014 
00015   switch (prog)
00016   {
00017     case 0:
00018       cout << "./main prog=1 " << desystest::doc[1] << endl;
00019       cout << "./main prog=2 " << desystest::doc[2] << endl;
00020       cout << "./main prog=3 " << desystest::doc[3] << endl;
00021       cout << "./main prog=4 " << desystest::doc[4] << endl;
00022       cout << "./main prog=5 " << desystest::doc[5] << endl;
00023       cout << "  options examples:  h=0.1 xmax=5.3 k0=.3 Dw1=1.2 filename=fred.txt" << endl;
00024       cout << "  view output: gnuplot: plot 'myfile.txt' using 1:2" << endl;
00025       break;
00026 
00027     case 1: desystest::test01(argc,argv); break;
00028     case 2: desystest::test02(); break;
00029     case 3: return desystest::test03(argc,argv); 
00030     case 4: return desystest::test04(argc,argv); 
00031     case 5: desystest::test05(argc,argv); break;
00032 
00033     default: cout << "error:  No case handled." << endl; return 1;
00034   }
00035 
00036   return 0;
00037 }
00038 
00039 
00040 
00041 

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