proj home

Files   Classes   Functions   Hierarchy  

main.cpp File Reference

#include <iostream>
#include <vector>
#include <commandline.h>
#include <desystest.h>

Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 8 of file main.cpp.

References desystest::doc, commandline::mapvar(), desystest::test01(), desystest::test02(), desystest::test03(), desystest::test04(), and desystest::test05().

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 }


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