From: eap Date: Tue, 11 Apr 2006 05:45:14 +0000 (+0000) Subject: add to GenericHypothesisCreator_i a method returning it's IDL module name to be used... X-Git-Tag: T3_2_0b1_pre1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d41cbf76117786454ae19a9b92ddb2c5cf60a1c;p=plugins%2Fnetgenplugin.git add to GenericHypothesisCreator_i a method returning it's IDL module name to be used for importing it in the script by PythonDump --- diff --git a/src/NETGENPlugin/NETGENPlugin_i.cxx b/src/NETGENPlugin/NETGENPlugin_i.cxx index a08f1be..75c1df3 100644 --- a/src/NETGENPlugin/NETGENPlugin_i.cxx +++ b/src/NETGENPlugin/NETGENPlugin_i.cxx @@ -31,6 +31,12 @@ using namespace std; #include "NETGENPlugin_NETGEN_3D_i.hxx" +template class NETGENPlugin_Creator_i:public HypothesisCreator_i +{ + // 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; + aCreator = new NETGENPlugin_Creator_i; else ; return aCreator;