]> SALOME platform Git repositories - plugins/netgenplugin.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:45:14 +0000 (05:45 +0000)
committereap <eap@opencascade.com>
Tue, 11 Apr 2006 05:45:14 +0000 (05:45 +0000)
src/NETGENPlugin/NETGENPlugin_i.cxx

index a08f1bee6b945bcbdd2b26d8b7097dc57577360e..75c1df3ee87c65b8a11075d00d82229ba1981c04 100644 (file)
@@ -31,6 +31,12 @@ using namespace std;
 
 #include "NETGENPlugin_NETGEN_3D_i.hxx"
 
+template <class T> class NETGENPlugin_Creator_i:public HypothesisCreator_i<T>
+{
+  // 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<NETGENPlugin_NETGEN_3D_i>;
+      aCreator = new NETGENPlugin_Creator_i<NETGENPlugin_NETGEN_3D_i>;
     else ;
 
     return aCreator;