Salome HOME
updated copyright message
[modules/hexablock.git] / src / HEXABLOCK / HexPropagation.hxx
old mode 100755 (executable)
new mode 100644 (file)
index 926a7ef..b037861
@@ -1,9 +1,9 @@
-// Copyright (C) 2009-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2009-2023  CEA, EDF
 //
 // 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
 #ifndef __PROPAGATION_H
 #define __PROPAGATION_H
 
+#include "HexEltBase.hxx"
+
 #include "HexDocument.hxx"
 #include "HexEdge.hxx"
 #include "HexXmlWriter.hxx"
 #include "HexLaw.hxx"
+#include "HexGlobale.hxx"
 
 BEGIN_NAMESPACE_HEXA
 
-class Propagation 
+class HexaExport Propagation : public EltBase 
 {
 public:
    const Edges& getEdges ()        { return prop_edges; }
@@ -40,7 +43,7 @@ public:
    int   setLaw (Law* loi);
 
 public:
-    Propagation  ();
+    Propagation  (Document*  doc);
     void saveXml (XmlWriter* xml);
     void addEdge (Edge* arete);
     void majLaw  ();
@@ -51,7 +54,8 @@ private:
     bool  prop_way;
 };
 // =========================================================== Constructeur
-inline Propagation::Propagation ()
+inline Propagation::Propagation (Document* doc)
+                  : EltBase (doc, EL_PROPAGATION)
 {
     prop_law = NULL;
     prop_way = true;
@@ -76,6 +80,9 @@ inline int Propagation::setLaw (Law* loi)
 {
    prop_law = loi; 
    majLaw ();
+
+   DumpStart  ("setLaw", loi);
+   DumpEnd;
    return HOK;
 }
 // =========================================================== majLaw