4 #include <SALOMEconfig.h>
5 #include CORBA_SERVER_HEADER(ADAPT_Gen)
6 #include CORBA_SERVER_HEADER(MG_ADAPT)
8 #include "SALOME_Component_i.hxx"
9 #include "SALOME_NamingService.hxx"
10 #include "Utils_CorbaException.hxx"
14 struct MgAdaptHypothesisData;
18 public virtual Engines_Component_i,
19 public virtual POA_ADAPT::MG_ADAPT,
20 public virtual PortableServer::ServantBase
23 MG_ADAPT_i( CORBA::ORB_ptr orb, ADAPT::ADAPT_Gen_var gen_i );
25 virtual ~MG_ADAPT_i();
26 void setData( MgAdaptHypothesisData*);
28 void setMedFileIn(char* str);
31 void setMedFileOut(char* str);
32 char* getMedFileOut();
34 void setMeshName(char* str);
37 void setMeshNameOut(char* str);
38 char* getMeshNameOut();
40 void setMeshOutMed(bool mybool);
43 void setPublish(bool mybool);
46 void setFieldName(char* str);
49 void setTimeStep(CORBA::Long t);
50 CORBA::Long getTimeStep() const;
52 void setRankTimeStep(CORBA::Long t, CORBA::Long r );
53 CORBA::Long getRank();
55 void setLogFile(char* str);
58 void setVerbosityLevel(CORBA::Long v);
59 CORBA::Long getVerbosityLevel();
61 void setRemoveOnSuccess(bool mybool);
62 bool getRemoveOnSuccess();
64 MgAdaptHypothesisData* getData() const;
66 void setUseLocalMap(bool mybool);
67 bool getUseLocalMap();
69 void setUseBackgroundMap(bool mybool);
70 bool getUseBackgroundMap();
72 void setUseConstantValue(bool mybool);
73 bool getUseConstantValue();
75 void setConstantValue(double value);
76 double getConstantValue() const;
78 void setSizeMapFile(char* str);
79 char* getSizeMapFile();
81 void setFromMedFile(bool mybool);
84 void setKeepWorkingFiles(bool mybool);
85 bool getKeepWorkingFiles();
87 //~void setPrCORBA::LongLogInFile(bool);
88 //~bool getPrCORBA::LongLogInFile();
90 void setWorkingDir(char* str);
91 char* getWorkingDir() const;
95 char* getCommandToRun() ;
96 CORBA::Long compute(char* errStr);
97 char* getFileName() const;
99 void copyMgAdaptHypothesisData( MgAdaptHypothesisData* data ) ;
101 void checkDirPath(std::string& str);
105 bool hasOptionDefined( const char* optionName ) const;
106 void setOptionValue(const char* optionName,
107 const char* optionValue) throw (std::invalid_argument);
108 std::string getOptionValue(const char* optionName,
109 bool* isDefault=0) const throw (std::invalid_argument);
110 std::vector <std::string> getCustomOptionValuesStrVec() const;
111 std::vector <std::string> getOptionValuesStrVec() const;
114 //~TOptionValues getOptionValues() const;
115 //~const TOptionValues& getCustomOptionValues() const ;
120 ADAPT::ADAPT_Gen_var _gen_i;
123 #endif // MG_ADAPT_I_HXX