Files Classes Functions Hierarchy
00001 00002 #include <cassert> 00003 #include <iostream> 00004 using namespace std; 00005 00006 #include <commandline.h> 00007 #include <helixtest.h> 00008 #include <typedefs.h> 00009 00010 using namespace helixtestscope; 00011 00012 int main(int argc, char ** argv) 00013 { 00014 commandline c(argc,argv); 00015 00016 uint prog(0); 00017 c.mapvar(prog,"prog"); 00018 00019 switch (prog) 00020 { 00021 case 0: 00022 cout << "./main prog=1 - helix test." << endl; 00023 cout << "./main prog=2 - 3 spring 2 mass static geometry test." << endl; 00024 cout << "./main prog=3 - 3 spring 2 mass animated, several options." << endl; 00025 break; 00026 00027 case 1: helixtest::test01(argc,argv); break; 00028 case 2: helixtest::test02(argc,argv); break; 00029 case 3: helixtest::test03(argc,argv); break; 00030 00031 default: cout << "error: No case handled." << endl; return 1; 00032 } 00033 00034 return 0; 00035 } 00036 00037
1.5.8