-// 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; }
int setLaw (Law* loi);
public:
- Propagation ();
+ Propagation (Document* doc);
void saveXml (XmlWriter* xml);
void addEdge (Edge* arete);
void majLaw ();
bool prop_way;
};
// =========================================================== Constructeur
-inline Propagation::Propagation ()
+inline Propagation::Propagation (Document* doc)
+ : EltBase (doc, EL_PROPAGATION)
{
prop_law = NULL;
prop_way = true;
{
prop_law = loi;
majLaw ();
+
+ DumpStart ("setLaw", loi);
+ DumpEnd;
return HOK;
}
// =========================================================== majLaw