Salome HOME
Merge from BR_V5_DEV 16Feb09
[modules/med.git] / src / MEDMEM_I / MEDMEM_Group_i.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //=============================================================================
23 // File      : MEDMEM_Group_i.hxx
24 // Project   : SALOME
25 // Author    : EDF
26 // $Header: /export/home/PAL/MED_SRC/src/MEDMEM_I/MEDMEM_Group_i.hxx
27 //=============================================================================
28 //
29 #ifndef MED_GROUP_I_HXX_
30 #define MED_GROUP_I_HXX_
31
32 #include "MEDMEM_I.hxx"
33
34 #include "MEDMEM_Support_i.hxx"
35
36 namespace MEDMEM {
37 class FAMILY_i;
38 class GROUP;
39
40 class MEDMEM_I_EXPORT GROUP_i:
41                 virtual public POA_SALOME_MED::GROUP,
42                 virtual public SUPPORT_i
43 {
44 protected :
45     GROUP_i();
46     ~GROUP_i();
47
48     // C++ object containing values
49     const ::MEDMEM::GROUP * const  _group;
50
51 public :
52     // Constructors and associated internal methods
53     GROUP_i(const ::MEDMEM::GROUP * const g);
54     GROUP_i(const GROUP_i & g);
55
56     CORBA::Long               getNumberOfFamilies() 
57                                         throw (SALOME::SALOME_Exception);
58     SALOME_MED::Family_array* getFamilies()              
59                                         throw (SALOME::SALOME_Exception);
60     SALOME_MED::FAMILY_ptr    getFamily(CORBA::Long i) 
61                                         throw (SALOME::SALOME_Exception);
62 };
63 }
64
65 #endif /* MED_GROUP_I_HXX_ */