Salome HOME
Copyright update 2020
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPlugin_i.cxx
index 101e1e0b21f754d4af7247af9b948213c3452dc6..9a0db043bf446ed584fa987419e5380e5dd0758b 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -32,7 +32,7 @@
 template <class T> class HexoticPlugin_Creator_i:public HypothesisCreator_i<T>
 {
   // as we have 'module HexoticPlugin' in HexoticPlugin_Algorithm.idl
-  virtual std::string GetModuleName() { return "HexoticPlugin"; }
+  virtual std::string GetModuleName() { return "HexoticPLUGIN"; }
 };
 
 //=============================================================================
@@ -51,10 +51,12 @@ extern "C"
     GenericHypothesisCreator_i* aCreator = 0;
 
     // Algorithms
-    if (strcmp(aHypName, "Hexotic_3D") == 0)
+    if (strcmp(aHypName, "Hexotic_3D") == 0 ||
+        strcmp(aHypName, "MG-Hexa") == 0)
       aCreator = new HexoticPlugin_Creator_i<HexoticPlugin_Hexotic_i>;
     // Hypotheses
-    else if (strcmp(aHypName, "Hexotic_Parameters") == 0)
+    else if (strcmp(aHypName, "Hexotic_Parameters") == 0 ||
+             strcmp(aHypName, "MG-Hexa Parameters") == 0)
       aCreator = new HexoticPlugin_Creator_i<HexoticPlugin_Hypothesis_i>;
     else ;