From 1d41cbf76117786454ae19a9b92ddb2c5cf60a1c Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 11 Apr 2006 05:45:14 +0000 Subject: [PATCH] add to GenericHypothesisCreator_i a method returning it's IDL module name to be used for importing it in the script by PythonDump --- src/NETGENPlugin/NETGENPlugin_i.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.39.2