4 #include "MG_ADAPT.hxx"
6 #include <SALOMEconfig.h>
7 //~#include CORBA_SERVER_HEADER(ADAPT_Gen)
8 #include CORBA_SERVER_HEADER(MG_ADAPT)
10 #include "SALOME_GenericObj_i.hh"
11 #include "SALOME_Component_i.hxx"
12 #include "SALOME_NamingService.hxx"
13 #include "Utils_CorbaException.hxx"
17 //~struct MgAdaptHypothesisData;
18 //~static void copyHypothesisDataToImpl(SMESH::MgAdaptHypothesisData& from, MG_ADAPT::MgAdaptHypothesisData* to);
19 //~static void copyHypothesisDataFromImpl(MG_ADAPT::MgAdaptHypothesisData* from, SMESH::MgAdaptHypothesisData& to);
23 class SMESH_I_EXPORT MG_ADAPT_i :
24 public virtual SALOME::GenericObj_i,
25 public virtual POA_SMESH::MG_ADAPT
28 //~MG_ADAPT_i( CORBA::ORB_ptr orb, ADAPT::ADAPT_Gen_var gen_i );
29 //~static SMESH::MG_ADAPT_ptr CreateMG_ADAPT();
30 //~MG_ADAPT_i(PortableServer::POA_var poa);
32 virtual ~MG_ADAPT_i();
33 //~void setData( SMESH::MgAdaptHypothesisData* data);
34 void setData( SMESH::MgAdaptHypothesisData& data);
36 void setMedFileIn(const char* str);
39 void setMedFileOut(const char* str);
40 char* getMedFileOut();
42 void setMeshName(const char* str);
45 void setMeshNameOut(const char* str);
46 char* getMeshNameOut();
48 void setMeshOutMed(bool mybool);
51 void setPublish(bool mybool);
54 void setFieldName(const char* str);
57 void setTimeStep(CORBA::Long t);
58 CORBA::Long getTimeStep() ;
60 void setRankTimeStep(CORBA::Long t, CORBA::Long r );
61 CORBA::Long getRank();
63 void setTimeStepRankLast();
66 void setLogFile(const char* str);
69 void setVerbosityLevel(CORBA::Long v);
70 CORBA::Long getVerbosityLevel();
72 void setRemoveOnSuccess(bool mybool);
73 bool getRemoveOnSuccess();
75 SMESH::MgAdaptHypothesisData* getData() ;
77 void setUseLocalMap(bool mybool);
78 bool getUseLocalMap();
80 void setUseBackgroundMap(bool mybool);
81 bool getUseBackgroundMap();
83 void setUseConstantValue(bool mybool);
84 bool getUseConstantValue();
86 void setConstantValue(double value);
87 double getConstantValue();
89 void setSizeMapFile(const char* str);
90 char* getSizeMapFile();
92 void setFromMedFile(bool mybool);
95 void setKeepWorkingFiles(bool mybool);
96 bool getKeepWorkingFiles();
98 //~void setPrCORBA::LongLogInFile(bool);
99 //~bool getPrCORBA::LongLogInFile();
101 void setWorkingDir(const char* str);
102 char* getWorkingDir() ;
104 void setPrintLogInFile(bool mybool);
105 bool getPrintLogInFile();
108 char* getCommandToRun() ;
109 //~CORBA::Long compute(::CORBA::String_out errStr);
110 CORBA::Long compute();
113 void copyMgAdaptHypothesisData( const SMESH::MgAdaptHypothesisData& data ) ;
114 //~void copyMgAdaptHypothesisData( const SMESH::MgAdaptHypothesisData& data ) {
115 //~copyMgAdaptHypothesisData(&data);
118 //~void checkDirPath(char*& str);
120 bool hasOptionDefined( const char* optionName ) ;
121 void setOptionValue(const char* optionName,
122 const char* optionValue) throw (std::invalid_argument);
123 char* getOptionValue(const char* optionName,
124 bool& isDefault) throw (std::invalid_argument);
125 str_array* getCustomOptionValuesStrVec() ;
126 str_array* getOptionValuesStrVec() ;
127 void copyHypothesisDataFromImpl(const ::MG_ADAPT::MgAdaptHypothesisData* from, SMESH::MgAdaptHypothesisData* to) const;
128 void copyHypothesisDataToImpl(const SMESH::MgAdaptHypothesisData& from, ::MG_ADAPT::MgAdaptHypothesisData* to) const;
129 //~TOptionValues getOptionValues() const;
130 //~const TOptionValues& getCustomOptionValues() const ;
133 ::MG_ADAPT::MgAdapt* myMgAdapt;
135 //~CORBA::ORB_ptr _orb;
136 //~ADAPT::ADAPT_Gen_var _gen_i;
140 #endif // MG_ADAPT_I_HXX