smesh/idl/MG_ADAPT.idl

150 lines
3.9 KiB
Plaintext
Raw Normal View History

2021-01-07 21:07:11 +05:00
// Copyright (C) 2011-2020 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 as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy 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
//
#ifndef MG_ADAPT_IDL
#define MG_ADAPT_IDL
#include "SALOME_Component.idl"
#include "SALOME_Exception.idl"
2021-01-12 18:18:03 +05:00
#include "SALOME_GenericObj.idl"
2021-01-07 21:07:11 +05:00
#include "SALOMEDS.idl"
2021-01-12 18:18:03 +05:00
#include "SMESH_Mesh.idl"
2021-01-07 21:07:11 +05:00
2021-01-12 18:18:03 +05:00
module SMESH{
2021-01-07 21:07:11 +05:00
2021-01-12 18:18:03 +05:00
typedef sequence<string> str_array ;
2021-01-07 21:07:11 +05:00
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;
};
2021-01-12 18:18:03 +05:00
interface MG_ADAPT : SALOME::GenericObj
2021-01-07 21:07:11 +05:00
{
2021-01-12 18:18:03 +05:00
//MG_ADAPT CreateMG_ADAPT(in PortableServer::POA_var poa);
void setData( inout MgAdaptHypothesisData data);
2021-01-07 21:07:11 +05:00
void setMedFileIn(in string MedFileIn );
string getMedFileIn();
void setMedFileOut(in string MedFileOut);
string getMedFileOut();
void setMeshName(in string s);
string getMeshName();
void setMeshNameOut(in string s);
string getMeshNameOut();
void setMeshOutMed(in boolean b);
boolean getMeshOutMed();
void setPublish(in boolean b);
boolean getPublish();
void setFieldName(in string s);
string getFieldName();
void setTimeStep(in long s);
long getTimeStep() ;
void setRankTimeStep(in long s, in long f);
long getRank();
2021-01-12 18:18:03 +05:00
void setTimeStepRankLast();
void setNoTimeStep();
2021-01-07 21:07:11 +05:00
void setLogFile(in string f);
string getLogFile();
void setVerbosityLevel(in long f);
long getVerbosityLevel();
void setRemoveOnSuccess(in boolean f);
boolean getRemoveOnSuccess();
MgAdaptHypothesisData getData();
void setUseLocalMap(in boolean f);
boolean getUseLocalMap();
void setUseBackgroundMap(in boolean f);
boolean getUseBackgroundMap();
void setUseConstantValue(in boolean f);
boolean getUseConstantValue();
void setConstantValue(in double f);
double getConstantValue() ;
void setSizeMapFile(in string f);
string getSizeMapFile();
void setFromMedFile(in boolean f);
boolean isFromMedFile();
void setKeepWorkingFiles(in boolean f);
boolean getKeepWorkingFiles();
void setPrintLogInFile(in boolean f);
boolean getPrintLogInFile();
void setWorkingDir(in string f);
string getWorkingDir() ;
boolean setAll();
string getCommandToRun() ;
2021-01-12 21:36:13 +05:00
//long compute(out string errStr);
long compute();
string getErrMsg();
2021-01-07 21:07:11 +05:00
string getFileName() ;
string getExeName();
void copyMgAdaptHypothesisData(in MgAdaptHypothesisData f ) ;
2021-01-12 18:18:03 +05:00
//void checkDirPath(inout string f);
2021-01-07 21:07:11 +05:00
boolean hasOptionDefined( in string optionName ) ;
void setOptionValue(in string optionName,
in string optionValue) raises (SALOME::SALOME_Exception);
string getOptionValue(in string optionName,
2021-01-12 18:18:03 +05:00
inout boolean isDefault) raises (SALOME::SALOME_Exception);
str_array getCustomOptionValuesStrVec() ;
str_array getOptionValuesStrVec() ;
2021-01-07 21:07:11 +05:00
};
};
#endif // MG_ADAPT_IDL