Files Classes Functions Hierarchy
#include <commandline.h>#include <vrmltest.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 7 of file main.cpp.
References commandline::mapvar(), vrmltest::test01(), vrmltest::test02(), and vrmltest::test03().
00008 { 00009 commandline cmd(argc,argv); 00010 uint prog(0); 00011 cmd.mapvar(prog,"prog"); 00012 00013 switch (prog) 00014 { 00015 case 0: 00016 cout << "$./main prog=1 Parse head.wrl" << endl; 00017 cout << "$./main prog=2 filename=head.wrl Display a vrml file." << endl; 00018 cout << "$./main prog=3 Prompt user for vrml file, parse and print shapes." << endl; 00019 break; 00020 00021 case 1: vrmltest::test01(argc,argv); break; 00022 case 2: vrmltest::test02(argc,argv); break; 00023 case 3: vrmltest::test03(argc,argv); break; 00024 00025 default: cout << "error: No case handled." << endl; return 1; 00026 } 00027 00028 return 0; 00029 }
1.5.8