Files Classes Functions Hierarchy
#include <cassert>#include <iostream>#include <commandline.h>#include <tetrahedrontest.h>#include <triangletest.h>#include <zero.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 14 of file main.cpp.
References commandline::mapvar().
00015 { 00016 commandline cmd(argc,argv); 00017 uint prog(0); 00018 cmd.mapvar(prog,"prog"); 00019 00020 switch (prog) 00021 { 00022 case 0: 00023 cout << "./main prog=1 Display the triangles properties." << endl; 00024 cout << "./main prog=2 Display the triangles centers as points." << endl; 00025 cout << "./main prog=3 Test triangle3D displaying triangle properties." << endl; 00026 cout << "./main prog=11 Experimental tetrahedron center display." << endl; 00027 cout << "./main prog=12 Experimental tetrahedron center display." << endl; 00028 break; 00029 00030 case 1: triangletest().test01(argc,argv); break; 00031 case 2: triangletest().test02(argc,argv); break; 00032 case 3: triangletest().test03(argc,argv); break; 00033 case 11: tetrahedrontest().test01(argc,argv); break; 00034 case 12: tetrahedrontest().test02(argc,argv); break; 00035 00036 default: cout << "error: No case handled." << endl; return 1; 00037 } 00038 00039 00040 return 0; 00041 }
1.5.8