16 #include "Reflector.h"
18 Reflector::Reflector()
23 Reflector::~Reflector()
27 void Reflector::cleanUp()
29 for (
int var=0;var<(int)objectT.size();var++)
31 if(objectT.at(var)==
"string" || objectT.at(var)==
"int" || objectT.at(var)==
"long"
32 || objectT.at(var)==
"double" || objectT.at(var)==
"float" || objectT.at(var)==
"bool"
33 || objectT.at(var)==
"char")
34 delete objects.at(var);
37 destroy(objects.at(var),objectT.at(var));
42 ClassInfo Reflector::getClassInfo(
string className)
45 string libName = Constants::INTER_LIB_FILE;
46 void *dlib = dlopen(libName.c_str(), RTLD_NOW);
49 cerr << dlerror() << endl;
52 string methodname =
"getReflectionCIFor"+className;
53 void *mkr = dlsym(dlib, methodname.c_str());