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