proj home

Files   Classes   Functions   Hierarchy  

gobjdebug01.cpp

Go to the documentation of this file.
00001 #include <typeinfo>
00002 using namespace std;
00003 
00004 #include <gobj.h>
00005 #include <gobjdebug01.h>
00006 
00007 vector<string> gobjdebug01list::global_list;
00008 gobjdebug01list gobjdebug01list::mylist;
00009 
00010 gobjdebug01* gobjdebug01::global = &gobjdebug01list::mylist; 
00011 
00012 void gobjdebug01list::eval(gobj* x)
00013 {
00014   assert(gobjdebug01::global);
00015 
00016   global_list.push_back(typeid(*x).name());
00017 };
00018 
00019 
00020 stringc gobjdebug01list::global_list_get()
00021 {
00022   if (gobjdebug01list::global_list.empty())
00023     return "";
00024 
00025   string s; 
00026   for (uint i=0; i<gobjdebug01list::global_list.size(); ++i)
00027     s += (gobjdebug01list::global_list[i]+"\n");
00028 
00029   return s;
00030 }
00031 
00032 
00033 gobjlog::gobjlog()
00034 {
00035   gobjdebug01list::global_list.clear();
00036 
00037 }
00038 
00039 gobjlog::~gobjlog()
00040 {
00041   messagefile("gobjlog.txt")() << gobjdebug01list::global_list_get(); 
00042 }
00043 
00044 
00045 
00046 

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