add to GenericHypothesisCreator_i a method returning it's IDL module name to be used for importing it in the script by PythonDump

This commit is contained in:
eap 2006-04-11 05:45:14 +00:00
parent 4db490766d
commit 1d41cbf761

View File

@ -31,6 +31,12 @@ using namespace std;
#include "NETGENPlugin_NETGEN_3D_i.hxx" #include "NETGENPlugin_NETGEN_3D_i.hxx"
template <class T> class NETGENPlugin_Creator_i:public HypothesisCreator_i<T>
{
// as we have 'module NETGENPlugin' in NETGENPlugin_Algorithm.idl
virtual std::string GetModuleName() { return "NETGENPlugin"; }
};
//============================================================================= //=============================================================================
/*! /*!
* *
@ -49,7 +55,7 @@ extern "C"
// Algorithms // Algorithms
if (strcmp(aHypName, "NETGEN_3D") == 0) if (strcmp(aHypName, "NETGEN_3D") == 0)
aCreator = new HypothesisCreator_i<NETGENPlugin_NETGEN_3D_i>; aCreator = new NETGENPlugin_Creator_i<NETGENPlugin_NETGEN_3D_i>;
else ; else ;
return aCreator; return aCreator;