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:
parent
4db490766d
commit
1d41cbf761
@ -31,6 +31,12 @@ using namespace std;
|
||||
|
||||
#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
|
||||
if (strcmp(aHypName, "NETGEN_3D") == 0)
|
||||
aCreator = new HypothesisCreator_i<NETGENPlugin_NETGEN_3D_i>;
|
||||
aCreator = new NETGENPlugin_Creator_i<NETGENPlugin_NETGEN_3D_i>;
|
||||
else ;
|
||||
|
||||
return aCreator;
|
||||
|
Loading…
Reference in New Issue
Block a user