Back to index

salome-med  6.5.0
MEDMEM_Support_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 //=============================================================================
00024 // File      : MEDMEM_Support_i.hxx
00025 // Project   : SALOME
00026 // Author    : EDF 
00027 // $Header: /export/home/PAL/MED/src/MEDMEM_I/MEDMEM_Support_i.hxx
00028 //=============================================================================
00029 //
00030 #ifndef _MED_SUPPORT_I_HXX_
00031 #define _MED_SUPPORT_I_HXX_
00032 
00033 #include "MEDMEM_I.hxx"
00034 
00035 #include <map>
00036 #include <string>
00037 
00038 #include <SALOMEconfig.h>
00039 
00040 #include "SALOMEMultiComm.hxx"
00041 #include "SALOME_GenericObj_i.hh"
00042 #include CORBA_SERVER_HEADER(MED)
00043 #include CORBA_SERVER_HEADER(SALOME_Comm)
00044 
00045 namespace MEDMEM {
00046 class SUPPORT;
00047 
00048 class MEDMEM_I_EXPORT SUPPORT_i: virtual public POA_SALOME_MED::SUPPORT,
00049                    virtual public SALOMEMultiComm,
00050                    virtual public SALOME::GenericObj_i
00051 {
00052 public :
00053     static std::map < int,::MEDMEM::SUPPORT *> supportMap;
00054 private :
00055     static int supportIndex;
00056 
00057 protected :
00058 
00059      // C++ object containing values
00060      const ::MEDMEM::SUPPORT * const _support;
00061      const int   _corbaIndex ;
00062      std::string      _supportId ;
00063 
00064 public:
00065 
00066     SUPPORT_i();
00067     ~SUPPORT_i();
00068 
00069     // Constructors and associated internal methods
00070     SUPPORT_i(const ::MEDMEM::SUPPORT * const s);
00071     SUPPORT_i(const SUPPORT_i & s);
00072 
00073     // IDL Methods
00074     char *               getName()         throw (SALOME::SALOME_Exception);
00075     char *               getDescription()  throw (SALOME::SALOME_Exception);
00076     SALOME_MED::GMESH_ptr getMesh()         throw (SALOME::SALOME_Exception);
00077     CORBA::Boolean       isOnAllElements() throw (SALOME::SALOME_Exception);
00078     SALOME_MED::medEntityMesh getEntity()  throw (SALOME::SALOME_Exception);
00079     CORBA::Long          getNumberOfElements(SALOME_MED::medGeometryElement geomElement) 
00080                                            throw (SALOME::SALOME_Exception);
00081     CORBA::Long          getNumberOfTypes()
00082                                            throw (SALOME::SALOME_Exception);
00083     SALOME_TYPES::ListOfLong* getNumber(SALOME_MED::medGeometryElement geomElement) 
00084                                            throw (SALOME::SALOME_Exception);
00085 
00086     SALOME_TYPES::ListOfLong* getNumberFromFile(SALOME_MED::medGeometryElement geomElement) 
00087                                            throw (SALOME::SALOME_Exception);
00088 
00089     SALOME::SenderInt_ptr getSenderForNumber(SALOME_MED::medGeometryElement geomElement) 
00090                                            throw (SALOME::SALOME_Exception);
00091     SALOME_TYPES::ListOfLong* getNumberIndex() 
00092                                            throw (SALOME::SALOME_Exception);
00093     SALOME::SenderInt_ptr getSenderForNumberIndex() 
00094                                            throw (SALOME::SALOME_Exception);
00095     CORBA::Long          getNumberOfGaussPoint(SALOME_MED::medGeometryElement geomElement) 
00096                                            throw (SALOME::SALOME_Exception);
00097     SALOME_TYPES::ListOfLong* getNumbersOfGaussPoint()
00098                                            throw (SALOME::SALOME_Exception);
00099 
00100     SALOME_MED::medGeometryElement_array* getTypes() 
00101                                            throw (SALOME::SALOME_Exception);
00102 
00103     void getBoundaryElements()             throw (SALOME::SALOME_Exception);
00104 
00105 
00106   // Others
00107   void           addInStudy (SALOMEDS::Study_ptr myStudy, 
00108                           SALOME_MED::SUPPORT_ptr myIor)
00109     throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection);
00110 
00111   static std::string getEntryPath (const MEDMEM::SUPPORT * aSupport);
00112 
00113   void release();
00114   //                                    Cuisine interne
00115   CORBA::Long    getCorbaIndex()   throw (SALOME::SALOME_Exception);
00116   SALOME_MED::SUPPORT::supportInfos * getSupportGlobal()   throw (SALOME::SALOME_Exception);
00117 };
00118 }
00119 
00120 #endif /* _MED_SUPPORT_I_HXX_ */