X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHEXABLOCK%2FHexGroup.hxx;h=9172c26c6c8d100f8846d5c7c97c2154ab201419;hb=76a04c833d6dbc5affe2455f372fb625050f5746;hp=c55067af4f3fc5c3b187a90ca0f35bd8a89071e4;hpb=ab53385205fe062af0e87d4e14296b1492fe3611;p=modules%2Fhexablock.git diff --git a/src/HEXABLOCK/HexGroup.hxx b/src/HEXABLOCK/HexGroup.hxx old mode 100755 new mode 100644 index c55067a..9172c26 --- a/src/HEXABLOCK/HexGroup.hxx +++ b/src/HEXABLOCK/HexGroup.hxx @@ -1,12 +1,12 @@ // Class : Implementation des groupes -// Copyright (C) 2009-2013 CEA/DEN, EDF R&D +// Copyright (C) 2009-2019 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 @@ -27,32 +27,34 @@ BEGIN_NAMESPACE_HEXA -class Group : public EltBase +class HexaExport Group : public EltBase { public : - Group (Document* dad, cpchar nom, EnumGroup grp); - ~Group () {} - - EnumGroup getKind () { return grp_kind ; } int addElement (EltBase* elt); - int removeElement (EltBase* elt); - int findElement (EltBase* elt); - int removeElement (int nro); - EltBase* getElement (int nro) { return grp_table [nro] ; } int countElement () { return grp_table.size () ; } + EnumGroup getKind () { return grp_kind ; } + int removeElement (int nro); void clearElement () { grp_table.clear () ; } + int removeElement (EltBase* elt); + EltBase* getElement (int nro) { return grp_table [nro] ; } + Group (Document* dad, cpchar nom, EnumGroup grp); +#ifndef SWIG +public : + int findElement (EltBase* elt); + ~Group () {} void saveXml (XmlWriter* xml); EnumElt getTypeElt () { return grp_typelt ; } static EnumGroup getKind (cpchar kind); - static EnumGroup getKind (const string& k) { return getKind (k.c_str());} + static EnumGroup getKind (const std::string& k) { return getKind (k.c_str());} private : int grp_id; EnumGroup grp_kind; EnumElt grp_typelt; std::vector grp_table; +#endif }; END_NAMESPACE_HEXA