Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef MED_FIELD_I_HXX_
00031 #define MED_FIELD_I_HXX_
00032
00033 #include <MEDMEM_I.hxx>
00034
00035 #include <map>
00036 #include <string>
00037 #include <sstream>
00038
00039 #include "Utils_CorbaException.hxx"
00040 #include <SALOMEconfig.h>
00041
00042 # include "Utils_ORB_INIT.hxx"
00043 # include "Utils_SINGLETON.hxx"
00044
00045 #include CORBA_SERVER_HEADER(MED)
00046 #include CORBA_SERVER_HEADER(SALOMEDS)
00047 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
00048
00049 #include "MEDMEM_Support_i.hxx"
00050 #include "MEDMEM_convert.hxx"
00051 #include "MEDMEM_Support.hxx"
00052 #include "MEDMEM_Field.hxx"
00053
00054 namespace MEDMEM {
00055 class MEDMEM_I_EXPORT FIELD_i: public virtual POA_SALOME_MED::FIELD,
00056 public SALOME::GenericObj_i
00057 {
00058 public :
00059 static map < int, ::MEDMEM::FIELD_ * > fieldMap ;
00060 protected :
00061 static int fieldIndex ;
00062 bool _ownCppPtr;
00063 protected :
00064
00065
00066
00067 ::MEDMEM::FIELD_ * const _fieldTptr;
00068 const int _corbaIndex;
00069 string _FieldId;
00070 FIELD_i();
00071 FIELD_i(MEDMEM::FIELD_ * const field, bool ownCppPtr);
00072 FIELD_i(FIELD_i & f);
00073
00074 public :
00075
00076 ~FIELD_i();
00077
00078 char * getName() throw (SALOME::SALOME_Exception);
00079 void setName(const char* theName)
00080 throw (SALOME::SALOME_Exception);
00081
00082 char * getDescription() throw (SALOME::SALOME_Exception);
00083 SALOME_MED::SUPPORT_ptr getSupport() throw (SALOME::SALOME_Exception);
00084 CORBA::Long getNumberOfComponents()
00085 throw (SALOME::SALOME_Exception);
00086 char * getComponentName(CORBA::Long i)
00087 throw (SALOME::SALOME_Exception);
00088 char * getComponentUnit(CORBA::Long i)
00089 throw (SALOME::SALOME_Exception);
00090 char * getComponentDescription(CORBA::Long i)
00091 throw (SALOME::SALOME_Exception);
00092 CORBA::Long getIterationNumber()
00093 throw (SALOME::SALOME_Exception);
00094 CORBA::Long getOrderNumber() throw (SALOME::SALOME_Exception);
00095 CORBA::Boolean getGaussPresence();
00096 CORBA::Double getTime() throw (SALOME::SALOME_Exception);
00097 CORBA::Long getCorbaIndex() throw (SALOME::SALOME_Exception);
00098
00099 SALOME_TYPES::ListOfString * getComponentsNames() throw (SALOME::SALOME_Exception);
00100 SALOME_TYPES::ListOfString * getComponentsUnits() throw (SALOME::SALOME_Exception);
00101 SALOME_TYPES::ListOfString * getComponentsDescriptions() throw (SALOME::SALOME_Exception);
00102
00103 void addInStudy(SALOMEDS::Study_ptr myStudy,
00104 SALOME_MED::FIELD_ptr myIor)
00105 throw (SALOME::SALOME_Exception,
00106 SALOMEDS::StudyBuilder::LockProtection);
00107
00108 void addInStudyToComponent(SALOMEDS::SComponent_ptr myComponent,
00109 SALOME_MED::FIELD_ptr myIor)
00110 throw (SALOME::SALOME_Exception,
00111 SALOMEDS::StudyBuilder::LockProtection);
00112
00113 CORBA::Long addDriver (SALOME_MED::medDriverTypes driverType,
00114 const char* fileName, const char* fieldName)
00115 throw (SALOME::SALOME_Exception);
00116 void rmDriver (CORBA::Long i) throw (SALOME::SALOME_Exception);
00117 void read (CORBA::Long i) throw (SALOME::SALOME_Exception);
00118 void write (CORBA::Long i, const char* driverFieldName)
00119 throw (SALOME::SALOME_Exception);
00120
00121 MEDMEM::FIELD_ * constructConstField() const;
00122
00123
00124 SALOMEDS::SComponent_ptr PublishMedComponent(SALOMEDS::Study_ptr theStudy);
00125
00126
00127 std::string getEntryPath ();
00128
00129 };
00130 }
00131
00132
00133
00134 #endif