X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHEXABLOCK%2FHexPropagation.hxx;h=ecfd0036b2edeefedbc2d114106e222e579664d6;hb=b871c3e20e331915e4534dcaffc1f0eab8f809d5;hp=926a7efe2358261b42516ae4a914a584d0148324;hpb=8681e72f844274a0c2fc2cd64bbf2451bd8db77b;p=modules%2Fhexablock.git diff --git a/src/HEXABLOCK/HexPropagation.hxx b/src/HEXABLOCK/HexPropagation.hxx index 926a7ef..ecfd003 100755 --- a/src/HEXABLOCK/HexPropagation.hxx +++ b/src/HEXABLOCK/HexPropagation.hxx @@ -1,9 +1,9 @@ -// Copyright (C) 2009-2012 CEA/DEN, EDF R&D +// Copyright (C) 2009-2016 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 @@ -22,14 +22,17 @@ #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