1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #include "FAMILYClient.hxx"
24 #include "MESHClient.hxx"
25 #include "UtilClient.hxx"
26 using namespace MEDMEM;
27 //=============================================================================
31 //=============================================================================
32 FAMILYClient::FAMILYClient(const SALOME_MED::FAMILY_ptr S,
34 : SUPPORTClient(S, M),
36 IOR_Family(SALOME_MED::FAMILY::_duplicate(S))
43 //=============================================================================
45 * Remplit les informations générales
47 //=============================================================================
48 void FAMILYClient::blankCopy(bool blankSupport)
51 SUPPORTClient::blankCopy();
53 setIdentifier(IOR_Family->getIdentifier());
59 nAttr = IOR_Family->getNumberOfAttributes();
60 setNumberOfAttributes(nAttr);
62 SALOME_TYPES::ListOfLong* attrId= IOR_Family->getAttributesIdentifiers();
63 convertCorbaArray(i, n, attrId);
66 setAttributesIdentifiers(i);
68 attrId=IOR_Family->getAttributesValues();
70 convertCorbaArray(i, n, attrId);
72 ASSERT(n == _numberOfAttribute);
73 setAttributesValues(i);
75 SALOME_TYPES::ListOfString * attrDesc=IOR_Family->getAttributesDescriptions();
76 convertCorbaArray(s, n, attrDesc);
78 ASSERT(n == _numberOfAttribute);
79 setAttributesDescriptions(s);
81 nGr = IOR_Family->getNumberOfGroups();
82 setNumberOfGroups(nGr);
84 attrDesc=IOR_Family->getGroupsNames();
86 convertCorbaArray(s, n, attrDesc);
88 ASSERT(n == _numberOfGroup);
89 setGroupsNames(s,true);
94 //=============================================================================
96 * Remplit les informations générales
98 //=============================================================================
99 void FAMILYClient::fillCopy(bool fillSupport)
104 SUPPORTClient::fillCopy();
106 // Get other FAMILY attributes
112 //=============================================================================
116 //=============================================================================
118 FAMILYClient::~FAMILYClient()