Files Classes Functions Hierarchy
00001 #include <iostream> 00002 using namespace std; 00003 00004 #include <commandline.h> 00005 #include <vistest.h> 00006 00007 00008 00009 int main(int argc, char ** argv ) 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 } 00035 00036
1.5.8