1 //=============================================================================
2 // File : MEDMEM_Field_i.hxx
5 // Copyright : EDF 2002
6 // $Header: /export/home/PAL/MED_SRC/src/MEDMEM_I/MEDMEM_Field_i.hxx
7 //=============================================================================
10 #ifndef MED_FIELD_I_HXX_
11 #define MED_FIELD_I_HXX_
17 #include "Utils_CorbaException.hxx"
18 #include <SALOMEconfig.h>
20 # include "Utils_ORB_INIT.hxx"
21 # include "Utils_SINGLETON.hxx"
23 #include CORBA_SERVER_HEADER(MED)
24 #include CORBA_SERVER_HEADER(SALOMEDS)
25 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
27 #include "MEDMEM_Support_i.hxx"
28 #include "MEDMEM_convert.hxx"
29 #include "MEDMEM_Support.hxx"
30 #include "MEDMEM_Field.hxx"
33 class FIELD_i: public virtual POA_SALOME_MED::FIELD,
34 public SALOME::GenericObj_i
37 static map < int, ::MEDMEM::FIELD_ * > fieldMap ;
39 static int fieldIndex ;
42 // C++ object containing values and Constructor
43 // are protected because it is not supposed to be instancied
45 ::MEDMEM::FIELD_ * const _fieldTptr;
46 const int _corbaIndex;
49 FIELD_i(MEDMEM::FIELD_ * const field, bool ownCppPtr);
53 // Associated internal methods
56 char * getName() throw (SALOME::SALOME_Exception);
57 char * getDescription() throw (SALOME::SALOME_Exception);
58 SALOME_MED::SUPPORT_ptr getSupport() throw (SALOME::SALOME_Exception);
59 CORBA::Long getNumberOfComponents()
60 throw (SALOME::SALOME_Exception);
61 char * getComponentName(CORBA::Long i)
62 throw (SALOME::SALOME_Exception);
63 char * getComponentUnit(CORBA::Long i)
64 throw (SALOME::SALOME_Exception);
65 char * getComponentDescription(CORBA::Long i)
66 throw (SALOME::SALOME_Exception);
67 CORBA::Long getIterationNumber()
68 throw (SALOME::SALOME_Exception);
69 CORBA::Long getOrderNumber() throw (SALOME::SALOME_Exception);
70 CORBA::Double getTime() throw (SALOME::SALOME_Exception);
71 CORBA::Long getCorbaIndex() throw (SALOME::SALOME_Exception);
73 SALOME_MED::string_array * getComponentsNames() throw (SALOME::SALOME_Exception);
74 SALOME_MED::string_array * getComponentsUnits() throw (SALOME::SALOME_Exception);
75 SALOME_MED::string_array * getComponentsDescriptions() throw (SALOME::SALOME_Exception);
76 void addInStudy(SALOMEDS::Study_ptr myStudy,
77 SALOME_MED::FIELD_ptr myIor)
78 throw (SALOME::SALOME_Exception,
79 SALOMEDS::StudyBuilder::LockProtection);
81 CORBA::Long addDriver (SALOME_MED::medDriverTypes driverType,
82 const char* fileName, const char* fieldName)
83 throw (SALOME::SALOME_Exception);
84 void rmDriver (CORBA::Long i) throw (SALOME::SALOME_Exception);
85 void read (CORBA::Long i) throw (SALOME::SALOME_Exception);
86 void write (CORBA::Long i, const char* driverFieldName)
87 throw (SALOME::SALOME_Exception);
89 MEDMEM::FIELD_ * constructConstField() const;
94 //using namespace MEDMEM;
96 #endif /* MED_FIELD_I_HXX_ */