Salome HOME
[EDF30062] : Steering proxy threshold/directory without environement considerations...
[modules/kernel.git] / src / Basics / KernelBasis.hxx
index 2aa0499e532ba4a3ff3fe33fc90eaa241ac804bd..cbecfe72e1940b7e4329e87c913ac70bd3b2fb86 100644 (file)
@@ -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 <string>
+#include <vector>
 
 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<std::string> 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();
+}