proj home

Files   Classes   Functions   Hierarchy  

main.cpp File Reference

#include <iostream>
#include <commandline.h>
#include <vistest.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 9 of file main.cpp.

References vistest::doc, commandline::mapvar(), vistest::test01(), vistest::test02(), and vistest::test03().

00010 {
00011   commandline cmd(argc,argv);
00012   uint prog(0);
00013   cmd.mapvar(prog,"prog");
00014 
00015   switch (prog)
00016   {
00017     case 0:
00018       cout << "Visual Tool - geometric investigation tool" << endl;
00019       cout << "$./main prog=1   " << vistest::doc[1] << endl;
00020       cout << "$./main prog=2   " << vistest::doc[2] << endl;
00021       cout << "$./main prog=3   " << vistest::doc[3] << endl;
00022 
00023       cout << endl;
00024       break;
00025 
00026     case 1: return vistest::test01(argc,argv); break;
00027     case 2: return vistest::test02(argc,argv); break;
00028     case 3: return vistest::test03(argc,argv); break;
00029 
00030     default: cout << "error:  No case handled." << endl; return 1;
00031   }
00032 
00033   return 0;
00034 }


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