Salome HOME
Merge branch 'V9_9_BR'
[modules/kernel.git] / src / Basics / KernelBasis.cxx
index b634f7265e21203ec3ebd605c421141b0457ea97..e4cbd1557eb3488c0f27939011204b2651ef3bd3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2021  CEA/DEN, EDF R&D
+// Copyright (C) 2021-2022  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
 
 #include "KernelBasis.hxx"
 
-static bool DEFAULT_SSL_MODE = false;
+static bool DEFAULT_SSL_MODE = true;
+static bool GUI_MODE = false;
+
+// IOR of SALOME_Embedded_NamingService servant
+static std::string IOR_OF_EMBEDDED_NS;
 
 bool getSSLMode()
 {
@@ -30,3 +34,23 @@ void setSSLMode(bool sslMode)
 {
   DEFAULT_SSL_MODE = sslMode;
 }
+
+bool getGUIMode()
+{
+  return GUI_MODE;
+}
+
+void setGUIMode(bool guiMode)
+{
+  GUI_MODE = guiMode;
+}
+
+std::string BASICS_EXPORT getIOROfEmbeddedNS()
+{
+  return IOR_OF_EMBEDDED_NS;
+}
+
+void BASICS_EXPORT setIOROfEmbeddedNS(const std::string& ior)
+{
+  IOR_OF_EMBEDDED_NS = ior;
+}