proj home

Files   Classes   Functions   Hierarchy  

main.cpp

Go to the documentation of this file.
00001 #include <cassert>
00002 #include <iostream>
00003 using namespace std;
00004 
00005 #include <buckettest.h>
00006 #include <commandline.h>
00007 #include <hashtabletest.h>
00008 #include <typedefs.h>
00009 
00010 
00011 int main(int argc, char** argv)
00012 {
00013 
00014   commandline cmd(argc,argv);
00015   uint prog(0);
00016   cmd.mapvar(prog,"prog");
00017 
00018   switch (prog)
00019   {
00020     case 0:
00021       cout << "./main prog=1  " << hashtabletest::doc[1] << endl;
00022       cout << "./main prog=2  " << hashtabletest::doc[2] << endl;
00023       cout << "./main prog=3  " << hashtabletest::doc[3] << endl;
00024       cout << "./main prog=4  " << hashtabletest::doc[4] << endl;
00025       cout << "./main prog=5  " << hashtabletest::doc[5] << endl;
00026       cout << "./main prog=6  " << hashtabletest::doc[6] << endl;
00027       cout << "./main prog=7  " << hashtabletest::doc[7] << endl;
00028       cout << "./main prog=8  " << hashtabletest::doc[8] << endl;
00029 
00030       cout << "./main prog=11  " << buckettest::doc[1] << endl;
00031       cout << "./main prog=12  " << buckettest::doc[2] << endl;
00032       cout << "./main prog=13  " << buckettest::doc[3] << endl;
00033       cout << "./main prog=14  " << buckettest::doc[4] << endl;
00034 
00035       break;
00036 
00037 
00038     case 1: hashtabletest::test01(); break;
00039     case 2: return hashtabletest::test02unit(); 
00040     case 3: return hashtabletest::test03unit(); 
00041     case 4: return hashtabletest::test04unit(); 
00042     case 5: hashtabletest::test05(); break;
00043     case 6: hashtabletest::test06(); break;
00044     case 7: hashtabletest::test07(); break;
00045     case 8: hashtabletest::test08(); break;
00046     case 11: buckettest::test01(); break;
00047     case 12: buckettest::test02(); break;
00048     case 13: buckettest::test03(); break;
00049     case 14: buckettest::test04(); break;
00050 
00051     default: cout << "error:  No case handled." << endl; return 1;
00052   }
00053 
00054   return 0;
00055 }
00056 
00057 

Generated on Fri Mar 4 00:49:25 2011 for Chelton Evans Source by  doxygen 1.5.8