Back to index

salome-smesh  6.5.0
SMESH_MEDFamily_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
00024 //  File   : SMESH_MEDFamily_i.hxx
00025 //  Module : SMESH
00026 //
00027 #ifndef SMESH_MED_FAMILY_I_HXX_
00028 #define SMESH_MED_FAMILY_I_HXX_
00029 
00030 #include "SMESH.hxx"
00031 
00032 #include "SMESH_MEDSupport_i.hxx"
00033 
00034 #include<string>
00035 
00036 class SMESH_I_EXPORT SMESH_MEDFamily_i:
00037   public virtual POA_SALOME_MED::FAMILY,
00038   public virtual SMESH_MEDSupport_i
00039 {
00040 protected :
00041   SMESH_MEDFamily_i();
00042   ~SMESH_MEDFamily_i();
00043   
00044   ::SMESH_subMesh_i*      _subMesh_i;
00045   
00046   // Values
00047   int       _identifier;
00048   int       _numberOfAttribute;
00049   int    *  _attributeIdentifier;
00050   int    *  _attributeValue;
00051   std::string *  _attributeDescription;
00052   int       _numberOfGroup ;
00053   std::string *  _groupName ;
00054   
00055 
00056 public :
00057   
00058   // Constructors and associated internal methods
00059   SMESH_MEDFamily_i(int identifier, SMESH_subMesh_i* sm,
00060                     std::string name, std::string description, SALOME_MED::medEntityMesh entity );
00061   SMESH_MEDFamily_i(const SMESH_MEDFamily_i & f);
00062   
00063   // IDL Methods
00064   void setProtocol(SALOME::TypeOfCommunication typ) {}
00065   void release() {}
00066   SALOME::SenderInt_ptr getSenderForNumber(SALOME_MED::medGeometryElement) {return SALOME::SenderInt::_nil();}
00067   SALOME::SenderInt_ptr getSenderForNumberIndex() {return SALOME::SenderInt::_nil();}
00068   
00069   CORBA::Long            getIdentifier()      
00070     throw (SALOME::SALOME_Exception);
00071   CORBA::Long            getNumberOfAttributes() 
00072     throw (SALOME::SALOME_Exception);
00073   SALOME_TYPES::ListOfLong*   getAttributesIdentifiers() 
00074     throw (SALOME::SALOME_Exception);
00075   CORBA::Long            getAttributeIdentifier(CORBA::Long i) 
00076     throw (SALOME::SALOME_Exception);
00077   SALOME_TYPES::ListOfLong*   getAttributesValues() 
00078     throw (SALOME::SALOME_Exception);
00079   CORBA::Long            getAttributeValue(CORBA::Long i) 
00080     throw (SALOME::SALOME_Exception);
00081   SALOME_TYPES::ListOfString* getAttributesDescriptions() 
00082     throw (SALOME::SALOME_Exception);
00083   char*                  getAttributeDescription( CORBA::Long i) 
00084     throw (SALOME::SALOME_Exception);
00085   CORBA::Long               getNumberOfGroups()
00086     throw (SALOME::SALOME_Exception);
00087   char *                    getGroupName( CORBA::Long i)
00088     throw (SALOME::SALOME_Exception);
00089   SALOME_TYPES::ListOfString* getGroupsNames()
00090     throw (SALOME::SALOME_Exception);  
00091 };
00092 #endif /* MED_FAMILY_I_HXX_ */