X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBasics%2FKernelBasis.hxx;h=cbecfe72e1940b7e4329e87c913ac70bd3b2fb86;hb=d1070d09cfbba6d9b72d8f2ca8d07d23f296686c;hp=6e96c84e6c14c8104e44be3c968c1c6aee532521;hpb=e196d7e6dbb65ed976b18fcc776d6f85a3ae3dfc;p=modules%2Fkernel.git diff --git a/src/Basics/KernelBasis.hxx b/src/Basics/KernelBasis.hxx index 6e96c84e6..cbecfe72e 100644 --- a/src/Basics/KernelBasis.hxx +++ b/src/Basics/KernelBasis.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2021-2023 CEA, EDF +// Copyright (C) 2021-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -22,6 +22,7 @@ #include "SALOME_Basics.hxx" #include +#include bool BASICS_EXPORT getSSLMode(); void BASICS_EXPORT setSSLMode(bool sslMode); @@ -30,3 +31,21 @@ void BASICS_EXPORT setGUIMode(bool guiMode); std::string BASICS_EXPORT getIOROfEmbeddedNS(); void BASICS_EXPORT setIOROfEmbeddedNS(const std::string& ior); + +void BASICS_EXPORT WriteInStdout(const std::string& msg); +void BASICS_EXPORT WriteInStderr(const std::string& msg); + +namespace SALOME +{ + enum class PyExecutionMode { NotSet, InProcess, OutOfProcessNoReplay, OutOfProcessWithReplay }; + void BASICS_EXPORT SetPyExecutionMode(PyExecutionMode mode); + void BASICS_EXPORT SetPyExecutionModeStr(const std::string& mode); + std::vector BASICS_EXPORT GetAllPyExecutionModes(); + std::string BASICS_EXPORT GetPyExecutionModeStr(); + PyExecutionMode BASICS_EXPORT GetPyExecutionMode(); + int BASICS_EXPORT GetBigObjOnDiskThreshold(); + void BASICS_EXPORT SetBigObjOnDiskThreshold(int newThresholdInByte); + std::string BASICS_EXPORT GetBigObjOnDiskDirectory(); + void BASICS_EXPORT SetBigObjOnDiskDirectory(const std::string& directory); + bool BASICS_EXPORT BigObjOnDiskDirectoryDefined(); +}