Files Classes Functions Hierarchy
00001 #include <gobj.h> 00002 00003 // NOTE: commenting in/out this code turns on and off the debug code. 00004 //#include <gobjdebug01.h> 00005 #include <gobjdebug01test.h> 00006 #include <gobjdebug01macrofunctions.h> 00007 #include <print.h> 00008 00009 00010 string gobjdebug01test::doc[] = 00011 { 00012 "", 00013 "Run some debug code which may or may not be turned on depending on the source code being commented in or out.", 00014 "Run some debug code which may or may not be turned on depending on the source code being commented in or out.", 00015 "" 00016 }; 00017 00018 00019 00020 00021 void gobjdebug01test::test01() 00022 { 00023 gobjContainer vg; 00024 00025 vg.push(new gobjdebug01test_C()); 00026 vg.push(new gobjdebug01test_A()); 00027 vg.push(new gobjdebug01test_B()); 00028 00029 vg.draw(); 00030 00031 #ifdef GOBJDEBUG01_H 00032 vector<string> & vs(gobjdebug01list::global_list); 00033 cout << SHOW(vs.size()) << endl; 00034 00035 for (uint i=0; i<vs.size(); ++i) 00036 cout << "*" << vs[i] << "*" << endl; 00037 #endif 00038 } 00039 00040 void gobjdebug01test_A::draw() 00041 { 00042 GOBJDEBUGCODE 00043 } 00044 00045 void gobjdebug01test_B::draw() 00046 { 00047 GOBJDEBUGCODE 00048 } 00049 00050 void gobjdebug01test::test02() 00051 { 00052 gobjContainer vg; 00053 00054 vg.push(new gobjglColor3d(1.0,0.0,1.0)); 00055 vg.push(new gobjdebug01test_C()); 00056 vg.push(new gobjdebug01test_A()); 00057 vg.push(new gobjdebug01test_B()); 00058 00059 vg.draw(); 00060 00061 #ifdef GOBJDEBUG01_H 00062 vector<string> & vs(gobjdebug01list::global_list); 00063 //cout << SHOW(vs.size()) << endl; 00064 00065 for (uint i=0; i<vs.size(); ++i) 00066 cout << "*" << vs[i] << "*" << endl; 00067 #endif 00068 00069 } 00070 00071 00072 void gobjdebug01test::test03() 00073 { 00074 gobjContainer vg; 00075 00076 vg.push(new gobjglColor3d(1.0,0.0,1.0)); 00077 vg.push(new gobjdebug01test_C()); 00078 vg.push(new gobjdebug01test_A()); 00079 vg.push(new gobjdebug01test_B()); 00080 00081 { 00082 #ifdef GOBJDEBUG01_H 00083 gobjlog log; 00084 #endif 00085 vg.draw(); 00086 } 00087 00088 { 00089 gobjlog_log 00090 vg.draw(); 00091 } 00092 00093 gobjlog_draw(vg) 00094 00095 } 00096 00097 00098
1.5.8