From 56b605c509f2caba4965e3d3006f876d4529fe47 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 11 Apr 2006 05:58:59 +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/GHS3DPlugin_i.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.39.2