Files Classes Functions Hierarchy
#include <cassert>#include <iostream>#include <commandline.h>#include <helixtest.h>#include <typedefs.h>
Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 12 of file main.cpp.
References commandline::mapvar(), test01(), test02(), and test03().
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 }
1.5.8