1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 //=============================================================================
24 // File : MEDMEM_Support_i.hxx
27 // $Header: /export/home/PAL/MED/src/MEDMEM_I/MEDMEM_Support_i.hxx
28 //=============================================================================
30 #ifndef _MED_SUPPORT_I_HXX_
31 #define _MED_SUPPORT_I_HXX_
33 #include "MEDMEM_I.hxx"
38 #include <SALOMEconfig.h>
40 #include "SALOMEMultiComm.hxx"
41 #include "SALOME_GenericObj_i.hh"
42 #include CORBA_SERVER_HEADER(MED)
43 #include CORBA_SERVER_HEADER(SALOME_Comm)
48 class MEDMEM_I_EXPORT SUPPORT_i: virtual public POA_SALOME_MED::SUPPORT,
49 virtual public SALOMEMultiComm,
50 virtual public SALOME::GenericObj_i
53 static std::map < int,::MEDMEM::SUPPORT *> supportMap;
55 static int supportIndex;
59 // C++ object containing values
60 const ::MEDMEM::SUPPORT * const _support;
61 const int _corbaIndex ;
62 std::string _supportId ;
69 // Constructors and associated internal methods
70 SUPPORT_i(const ::MEDMEM::SUPPORT * const s);
71 SUPPORT_i(const SUPPORT_i & s);
74 char * getName() throw (SALOME::SALOME_Exception);
75 char * getDescription() throw (SALOME::SALOME_Exception);
76 SALOME_MED::GMESH_ptr getMesh() throw (SALOME::SALOME_Exception);
77 CORBA::Boolean isOnAllElements() throw (SALOME::SALOME_Exception);
78 SALOME_MED::medEntityMesh getEntity() throw (SALOME::SALOME_Exception);
79 CORBA::Long getNumberOfElements(SALOME_MED::medGeometryElement geomElement)
80 throw (SALOME::SALOME_Exception);
81 CORBA::Long getNumberOfTypes()
82 throw (SALOME::SALOME_Exception);
83 SALOME_TYPES::ListOfLong* getNumber(SALOME_MED::medGeometryElement geomElement)
84 throw (SALOME::SALOME_Exception);
86 SALOME_TYPES::ListOfLong* getNumberFromFile(SALOME_MED::medGeometryElement geomElement)
87 throw (SALOME::SALOME_Exception);
89 SALOME::SenderInt_ptr getSenderForNumber(SALOME_MED::medGeometryElement geomElement)
90 throw (SALOME::SALOME_Exception);
91 SALOME_TYPES::ListOfLong* getNumberIndex()
92 throw (SALOME::SALOME_Exception);
93 SALOME::SenderInt_ptr getSenderForNumberIndex()
94 throw (SALOME::SALOME_Exception);
95 CORBA::Long getNumberOfGaussPoint(SALOME_MED::medGeometryElement geomElement)
96 throw (SALOME::SALOME_Exception);
97 SALOME_TYPES::ListOfLong* getNumbersOfGaussPoint()
98 throw (SALOME::SALOME_Exception);
100 SALOME_MED::medGeometryElement_array* getTypes()
101 throw (SALOME::SALOME_Exception);
103 void getBoundaryElements() throw (SALOME::SALOME_Exception);
107 void addInStudy (SALOMEDS::Study_ptr myStudy,
108 SALOME_MED::SUPPORT_ptr myIor)
109 throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection);
111 static std::string getEntryPath (const MEDMEM::SUPPORT * aSupport);
115 CORBA::Long getCorbaIndex() throw (SALOME::SALOME_Exception);
116 SALOME_MED::SUPPORT::supportInfos * getSupportGlobal() throw (SALOME::SALOME_Exception);
120 #endif /* _MED_SUPPORT_I_HXX_ */