Salome HOME
updated copyright message
[plugins/hexablockplugin.git] / src / HEXABLOCKPlugin / HEXABLOCKPlugin_Hypothesis.hxx
old mode 100755 (executable)
new mode 100644 (file)
index 27407b6..507861a
@@ -1,9 +1,9 @@
-// Copyright (C) 2009-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2009-2023  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
 #include <stdexcept>
 #include <cstdio>
 
-class HEXABLOCKPLUGIN_EXPORT HEXABLOCKPlugin_Hypothesis: public SMESH_Hypothesis
+class HEXABLOCKPLUGINENGINE_EXPORT HEXABLOCKPlugin_Hypothesis: public SMESH_Hypothesis
 {
 public:
 
-  HEXABLOCKPlugin_Hypothesis(int hypId, int studyId, SMESH_Gen * gen);
+  HEXABLOCKPlugin_Hypothesis(int hypId, SMESH_Gen * gen);
 
   /*!
    * Define the document to be meshed, mandatory
    */
-  void SetDocument(HEXA_NS::Document* doc);
   HEXA_NS::Document* GetDocument() const;
 
+  // void SetDocument(HEXA_NS::Document* doc); .. replaced by :
+  void  SetDocument (cpchar name);
+  void  SetXmlFlow  (cpchar xml);
+  cpchar GetXmlFlow  () const;
+
   /*!
    * To define the hight dimension to generated: 3 = hexas, 2 = quads, 1 = segments, 0 = nodes
    */
@@ -57,8 +61,8 @@ public:
   // Persistence
   virtual std::ostream & SaveTo(std::ostream & save);
   virtual std::istream & LoadFrom(std::istream & load);
-  friend HEXABLOCKPLUGIN_EXPORT std::ostream & operator <<(std::ostream & save, HEXABLOCKPlugin_Hypothesis & hyp);
-  friend HEXABLOCKPLUGIN_EXPORT std::istream & operator >>(std::istream & load, HEXABLOCKPlugin_Hypothesis & hyp);
+  friend HEXABLOCKPLUGINENGINE_EXPORT std::ostream & operator <<(std::ostream & save, HEXABLOCKPlugin_Hypothesis & hyp);
+  friend HEXABLOCKPLUGINENGINE_EXPORT std::istream & operator >>(std::istream & load, HEXABLOCKPlugin_Hypothesis & hyp);
 
   /*!
    * \brief Does nothing
@@ -71,8 +75,9 @@ public:
   virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0);
 
 private:
-  HEXA_NS::Document* _document;
-  int _dimension;
+  HEXA_NS::Hex*      hexa_root;
+  HEXA_NS::Document* hyp_document;
+  int                hyp_dimension;
 };