]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
add to GenericHypothesisCreator_i a method returning it's IDL module name to be used...
authoreap <eap@opencascade.com>
Tue, 11 Apr 2006 05:58:59 +0000 (05:58 +0000)
committereap <eap@opencascade.com>
Tue, 11 Apr 2006 05:58:59 +0000 (05:58 +0000)
src/GHS3DPlugin_i.cxx

index 6c47d5e12b918fa82092ed7d0c619a942ab0ccdc..4e2c9e67a7b9e41f818d975d1a0a81efb93fffc1 100644 (file)
@@ -33,6 +33,12 @@ using namespace std;
 
 #include "GHS3DPlugin_GHS3D_i.hxx"
 
+template <class T> class GHS3DPlugin_Creator_i:public HypothesisCreator_i<T>
+{
+  // 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<GHS3DPlugin_GHS3D_i>;
+      aCreator = new GHS3DPlugin_Creator_i<GHS3DPlugin_GHS3D_i>;
     else ;
 
     return aCreator;