X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBasics%2FKernelBasis.hxx;h=cbecfe72e1940b7e4329e87c913ac70bd3b2fb86;hb=d1070d09cfbba6d9b72d8f2ca8d07d23f296686c;hp=2aa0499e532ba4a3ff3fe33fc90eaa241ac804bd;hpb=7e1d8de9f1daaf767b8d556843e07c6b5b3121a7;p=modules%2Fkernel.git diff --git a/src/Basics/KernelBasis.hxx b/src/Basics/KernelBasis.hxx index 2aa0499e5..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); @@ -33,3 +34,18 @@ 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(); +}