From: eap Date: Tue, 11 Apr 2006 05:58:59 +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~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=56b605c509f2caba4965e3d3006f876d4529fe47;p=plugins%2Fhybridplugin.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/GHS3DPlugin_i.cxx b/src/GHS3DPlugin_i.cxx index 6c47d5e..4e2c9e6 100644 --- a/src/GHS3DPlugin_i.cxx +++ b/src/GHS3DPlugin_i.cxx @@ -33,6 +33,12 @@ using namespace std; #include "GHS3DPlugin_GHS3D_i.hxx" +template class GHS3DPlugin_Creator_i:public HypothesisCreator_i +{ + // as we have 'module GHS3DPlugin' in GHS3DPlugin_Algorithm.idl + virtual std::string GetModuleName() { return "GHS3DPlugin"; } +}; + //============================================================================= /*! * @@ -51,7 +57,7 @@ extern "C" // Algorithms if (strcmp(aHypName, "GHS3D_3D") == 0) - aCreator = new HypothesisCreator_i; + aCreator = new GHS3DPlugin_Creator_i; else ; return aCreator;