Files Classes Functions Hierarchy
00001 #ifndef GOBJDEBUG01_H 00002 #define GOBJDEBUG01_H 00003 00004 #include <string> 00005 #include <vector> 00006 using namespace std; 00007 00008 #include <typedefs.h> 00009 00010 class gobj; 00011 class gobjdebug01; 00012 00019 class gobjdebug01 00020 { 00021 public: 00022 00023 static gobjdebug01* global; 00024 00026 void set() 00027 { global = this; } 00028 00029 virtual void eval(gobj* x) {}; 00030 virtual ~gobjdebug01() {} 00031 00032 }; 00033 00034 class gobjdebug01list; 00035 00048 class gobjdebug01list : public gobjdebug01 00049 { 00050 public: 00051 00052 static vector<string> global_list; 00053 static gobjdebug01list mylist; 00054 00056 static stringc global_list_get(); 00057 00058 void eval(gobj* x); 00059 }; 00060 00061 #undef GOBJDEBUGCODE 00062 #define GOBJDEBUGCODE assert(gobjdebug01::global);\ 00063 gobjdebug01::global->eval(this); 00064 00065 #include <message.h> 00066 00067 00079 class gobjlog 00080 { 00081 public: 00082 00084 gobjlog(); 00085 00087 ~gobjlog(); 00088 00089 }; 00090 00091 00092 00093 00094 #endif 00095 00096
1.5.8