Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/smesh.git] / src / SMESH_I / SMESH_MEDFamily_i.hxx
1 // Copyright (C) 2007-2012  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 //  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
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.hxx"
31
32 #include "SMESH_MEDSupport_i.hxx"
33
34 #include<string>
35
36 class SMESH_I_EXPORT SMESH_MEDFamily_i:
37   public virtual POA_SALOME_MED::FAMILY,
38   public virtual SMESH_MEDSupport_i
39 {
40 protected :
41   SMESH_MEDFamily_i();
42   ~SMESH_MEDFamily_i();
43   
44   ::SMESH_subMesh_i*      _subMesh_i;
45   
46   // Values
47   int       _identifier;
48   int       _numberOfAttribute;
49   int    *  _attributeIdentifier;
50   int    *  _attributeValue;
51   std::string *  _attributeDescription;
52   int       _numberOfGroup ;
53   std::string *  _groupName ;
54   
55
56 public :
57   
58   // Constructors and associated internal methods
59   SMESH_MEDFamily_i(int identifier, SMESH_subMesh_i* sm,
60                     std::string name, std::string description, SALOME_MED::medEntityMesh entity );
61   SMESH_MEDFamily_i(const SMESH_MEDFamily_i & f);
62   
63   // IDL Methods
64   void setProtocol(SALOME::TypeOfCommunication typ) {}
65   void release() {}
66   SALOME::SenderInt_ptr getSenderForNumber(SALOME_MED::medGeometryElement) {return SALOME::SenderInt::_nil();}
67   SALOME::SenderInt_ptr getSenderForNumberIndex() {return SALOME::SenderInt::_nil();}
68   
69   CORBA::Long            getIdentifier()      
70     throw (SALOME::SALOME_Exception);
71   CORBA::Long            getNumberOfAttributes() 
72     throw (SALOME::SALOME_Exception);
73   SALOME_TYPES::ListOfLong*   getAttributesIdentifiers() 
74     throw (SALOME::SALOME_Exception);
75   CORBA::Long            getAttributeIdentifier(CORBA::Long i) 
76     throw (SALOME::SALOME_Exception);
77   SALOME_TYPES::ListOfLong*   getAttributesValues() 
78     throw (SALOME::SALOME_Exception);
79   CORBA::Long            getAttributeValue(CORBA::Long i) 
80     throw (SALOME::SALOME_Exception);
81   SALOME_TYPES::ListOfString* getAttributesDescriptions() 
82     throw (SALOME::SALOME_Exception);
83   char*                  getAttributeDescription( CORBA::Long i) 
84     throw (SALOME::SALOME_Exception);
85   CORBA::Long               getNumberOfGroups()
86     throw (SALOME::SALOME_Exception);
87   char *                    getGroupName( CORBA::Long i)
88     throw (SALOME::SALOME_Exception);
89   SALOME_TYPES::ListOfString* getGroupsNames()
90     throw (SALOME::SALOME_Exception);  
91 };
92 #endif /* MED_FAMILY_I_HXX_ */