1 #include "GeoModelKernel/GeoGeometryPluginLoader.h" 2 #include "GeoModelKernel/GeoVGeometryPlugin.h" 8 GeoGeometryPluginLoader::GeoGeometryPluginLoader () {
11 GeoGeometryPluginLoader::~GeoGeometryPluginLoader () {
16 std::string bNameString=basename ((
char *) pString.c_str());
17 bNameString=bNameString.substr(3);
18 bNameString=bNameString.substr(0,bNameString.find(
"."));
20 std::string createFunctionName = std::string(
"create")+bNameString;
25 void *handle = dlopen(pString.c_str(),RTLD_NOW);
27 std::cerr << dlerror() << std::endl;
34 void *f = dlsym(handle,createFunctionName.c_str());
36 std::cerr << dlerror() << std::endl;
40 typedef void * (*CreationMethod) ();
41 CreationMethod F = (CreationMethod) f;
Abstact Base Class for a geometry plugin. The geometry plugin builds the raw geometry.