Salome HOME
bos #24228 [CEA 24217][Windows] cannot compile SMESH: additional fix.
[modules/smesh.git] / idl / MG_ADAPT.idl
index 8cad0d628e858836adeacfa5fa1436d6a42b9165..d6da9656567d60ea93ce2b625f4e776539743d29 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2020-2021  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
-//
-// File   : MG_ADAPT.hxx
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 #ifndef MG_ADAPT_IDL
 #define MG_ADAPT_IDL
 
-
 #include "SALOME_Component.idl"
 #include "SALOME_Exception.idl"
 #include "SALOME_GenericObj.idl"
 #include "SALOMEDS.idl"
 #include "SMESH_Mesh.idl"
 
-module SMESH{
-       
-    typedef sequence<string> str_array ;
-       struct MgAdaptHypothesisData
-       {
-               string myFileInDir, myMeshFileIn, myInMeshName, myMeshFileBackground, myOutMeshName,
-                       myMeshFileOut,  myFileOutDir, myFileSizeMapDir, myFieldName;
-               boolean    fromMedFile;
-               boolean    myPublish, myMeshOutMed;
-               boolean    myUseLocalMap, myUseBackgroundMap, myUseConstantValue;
-               double  myConstantValue;
-               long     myRank, myTimeStep;
-               boolean    myUseNoTimeStep, myUseLastTimeStep, myUseChosenTimeStep;
-               string myWorkingDir, myLogFile;
-               boolean    myPrintLogInFile, myKeepFiles, myRemoveLogOnSuccess;
-               long   myVerboseLevel;
-
-       };
+module SMESH
+{
+  struct MgAdaptHypothesisData
+  {
+    string  myFileInDir, myMeshFileIn, myInMeshName, myMeshFileBackground, myOutMeshName,
+            myMeshFileOut, myFileOutDir, myFileSizeMapDir, myFieldName;
+    boolean fromMedFile;
+    boolean myPublish, myMeshOutMed;
+    boolean myUseLocalMap, myUseBackgroundMap, myUseConstantValue;
+    double  myConstantValue;
+    long    myRank, myTimeStep;
+    boolean myUseNoTimeStep, myUseLastTimeStep, myUseChosenTimeStep;
+    string  myWorkingDir, myLogFile;
+    boolean myPrintLogInFile, myKeepFiles, myRemoveLogOnSuccess;
+    long    myVerboseLevel;
+  };
 
-       
-    interface MG_ADAPT : SALOME::GenericObj
-    {
-               //MG_ADAPT CreateMG_ADAPT(in PortableServer::POA_var poa);
-               void setData( inout MgAdaptHypothesisData data);
+  interface MG_ADAPT : SALOME::GenericObj
+  {
+    void setData(inout MgAdaptHypothesisData data);
 
-               void setMedFileIn(in string MedFileIn );
-               string getMedFileIn();
+    void setMedFileIn(in string MedFileIn);
+    string getMedFileIn();
 
-               void setMedFileOut(in string MedFileOut);
-               string getMedFileOut();
+    void setMedFileOut(in string MedFileOut);
+    string getMedFileOut();
 
-               void setMeshName(in string s);
-               string getMeshName();
+    void setMeshName(in string s);
+    string getMeshName();
 
-               void setMeshNameOut(in string s);
-               string getMeshNameOut();
+    void setMeshNameOut(in string s);
+    string getMeshNameOut();
 
-               void setMeshOutMed(in boolean b);
-               boolean getMeshOutMed();
+    void setMeshOutMed(in boolean b);
+    boolean getMeshOutMed();
 
-               void setPublish(in boolean b);
-               boolean getPublish();
+    void setPublish(in boolean b);
+    boolean getPublish();
 
-               void setFieldName(in string s);
-               string getFieldName();
+    void setSizeMapFieldName(in string s);
+    string getSizeMapFieldName();
 
-               void setTimeStep(in long s);
-               long getTimeStep() ;
+    void setTimeStep(in long s);
+    long getTimeStep();
 
-               void setRankTimeStep(in long s, in long f);
-               long getRank();
-               
-               void setTimeStepRankLast();
-               void setNoTimeStep();
+    void setTimeStepRank(in long s, in long f);
+    long getRank();
 
-               void setLogFile(in string f);
-               string getLogFile();
+    void setTimeStepRankLast();
+    void setNoTimeStep();
 
-               void setVerbosityLevel(in long f);
-               long getVerbosityLevel();
+    void setLogFile(in string f);
+    string getLogFile();
 
-               void setRemoveOnSuccess(in boolean f);
-               boolean getRemoveOnSuccess();
+    void setVerbosityLevel(in long f);
+    long getVerbosityLevel();
 
-               MgAdaptHypothesisData getData();
+    void setRemoveOnSuccess(in boolean f);
+    boolean getRemoveOnSuccess();
 
-               void setUseLocalMap(in boolean f);
-               boolean getUseLocalMap();
+    MgAdaptHypothesisData getData();
 
-               void setUseBackgroundMap(in boolean f);
-               boolean getUseBackgroundMap();
+    void setUseLocalMap(in boolean f);
+    boolean getUseLocalMap();
 
-               void setUseConstantValue(in boolean f);
-               boolean getUseConstantValue();
+    void setUseBackgroundMap(in boolean f);
+    boolean getUseBackgroundMap();
 
-               void setConstantValue(in double f);
-               double getConstantValue() ;
+    void setUseConstantValue(in boolean f);
+    boolean getUseConstantValue();
 
-               void setSizeMapFile(in string f);
-               string getSizeMapFile();
+    void setConstantSize(in double f);
+    double getConstantSize();
 
-               void setFromMedFile(in boolean f);
-               boolean isFromMedFile();
+    void setSizeMapFile(in string f);
+    string getSizeMapFile();
 
-               void setKeepWorkingFiles(in boolean f);
-               boolean getKeepWorkingFiles();
+    void setFromMedFile(in boolean f);
+    boolean isFromMedFile();
 
-               void setPrintLogInFile(in boolean f);
-               boolean getPrintLogInFile();
+    void setKeepWorkingFiles(in boolean f);
+    boolean getKeepWorkingFiles();
 
-               void setWorkingDir(in string f);
-               string getWorkingDir() ;
+    void setPrintLogInFile(in boolean f);
+    boolean getPrintLogInFile();
 
+    void setWorkingDir(in string f);
+    string getWorkingDir();
 
-               boolean setAll();
-               string getCommandToRun() ;
-               //long compute(out string errStr);
-               long compute();
-               string getErrMsg();
-               string getFileName() ;
-               string getExeName();
-               void copyMgAdaptHypothesisData(in  MgAdaptHypothesisData f ) ;
+    void setSizeMapType(in string f);
+    boolean setAll();
+    string getCommandToRun();
+    void compute() raises(SALOME::SALOME_Exception);
+    string getErrMsg();
+    string getFileName();
+    string getExeName();
+    void copyMgAdaptHypothesisData(in MgAdaptHypothesisData f);
 
-               //void checkDirPath(inout string  f);
+    //void checkDirPath(inout string f);
 
+    boolean hasOptionDefined(in string optionName);
+    void setOptionValue(in string optionName, in string optionValue) raises (SALOME::SALOME_Exception);
+    string getOptionValue(in string optionName, inout boolean isDefault) raises (SALOME::SALOME_Exception);
+    SMESH::string_array getCustomOptionValuesStrVec();
+    SMESH::string_array getOptionValuesStrVec();
+  };
 
-
-               boolean hasOptionDefined( in string optionName ) ;
-               void setOptionValue(in  string optionName,
-                                                       in  string optionValue) raises (SALOME::SALOME_Exception);
-               string getOptionValue(in  string optionName,
-                                                                  inout boolean  isDefault) raises (SALOME::SALOME_Exception);
-               str_array getCustomOptionValuesStrVec() ;
-               str_array getOptionValuesStrVec() ; 
-    };
-
-       
+  typedef MG_ADAPT MG_ADAPT_HYPOTHESIS;
+  interface MG_ADAPT_OBJECT : SALOME::GenericObj
+  {
+    void setMeshIn(in SMESH_Mesh theMesh)    raises (SALOME::SALOME_Exception);
+    void setMEDFileIn(in string f)           raises (SALOME::SALOME_Exception);
+    void setMEDFileOut(in string f)          raises (SALOME::SALOME_Exception);
+    void setMEDFileBackground(in string f)   raises (SALOME::SALOME_Exception);
+    void AddHypothesis(in MG_ADAPT mg)       raises (SALOME::SALOME_Exception);
+    long Compute(in boolean Publish)         raises (SALOME::SALOME_Exception);
+  };
 };
+
 #endif // MG_ADAPT_IDL