Salome HOME
Update to match the new implementation of SMDS
[modules/smesh.git] / src / SMESH_I / SMESH_MEDFamily_i.hxx
1 //  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : SMESH_MEDFamily_i.hxx
25 //  Module : SMESH
26
27 #ifndef SMESH_MED_FAMILY_I_HXX_
28 #define SMESH_MED_FAMILY_I_HXX_
29
30 #include "SMESH_MEDSupport_i.hxx"
31
32 #include<string>
33
34 class SMESH_MEDFamily_i:
35   public POA_SALOME_MED::FAMILY,
36   public SMESH_MEDSupport_i
37 {
38 protected :
39   SMESH_MEDFamily_i();
40   ~SMESH_MEDFamily_i();
41   
42   ::SMESH_subMesh_i*      _subMesh_i;
43   
44   // Values
45   int       _identifier;
46   int       _numberOfAttribute;
47   int    *  _attributeIdentifier;
48   int    *  _attributeValue;
49   string *  _attributeDescription;
50   int       _numberOfGroup ;
51   string *  _groupName ;
52   
53
54 public :
55   
56   // Constructors and associated internal methods
57   SMESH_MEDFamily_i(int identifier, SMESH_subMesh_i* sm,
58                     string name, string description, SALOME_MED::medEntityMesh entity );
59   SMESH_MEDFamily_i(const SMESH_MEDFamily_i & f);
60   
61   CORBA::Long            getIdentifier()      
62     throw (SALOME::SALOME_Exception);
63   CORBA::Long            getNumberOfAttributes() 
64     throw (SALOME::SALOME_Exception);
65   Engines::long_array*   getAttributesIdentifiers() 
66     throw (SALOME::SALOME_Exception);
67   CORBA::Long            getAttributeIdentifier(CORBA::Long i) 
68     throw (SALOME::SALOME_Exception);
69   Engines::long_array*   getAttributesValues() 
70     throw (SALOME::SALOME_Exception);
71   CORBA::Long            getAttributeValue(CORBA::Long i) 
72     throw (SALOME::SALOME_Exception);
73   Engines::string_array* getAttributesDescriptions() 
74     throw (SALOME::SALOME_Exception);
75   char*                  getAttributeDescription( CORBA::Long i) 
76     throw (SALOME::SALOME_Exception);
77   
78 };
79 #endif /* MED_FAMILY_I_HXX_ */