Salome HOME
Updated copyright comment
[modules/gui.git] / src / PVServerService / ServiceLoader / PVServer_ServiceLoader.h
index eba9306647885368f17ca101348ff64ad420d8b5..f01cd41bbdb7c779d48b4b1fedf2140060034178 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2015-2024  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 #define PVSERVERSERVICELOADER_H_
 
 #include "PVServerServiceLoader.h"
+#include "SALOME_Fake_NamingService.hxx"
 #include <SALOMEconfig.h>
 #include CORBA_CLIENT_HEADER(SALOME_Component)
 #include <string>
 #include <exception>
+#include <memory>
 
 class SALOME_LifeCycleCORBA;
 
@@ -33,8 +35,8 @@ class PVSERVERSERVICELOADER_EXPORT PVServer_ServiceLoader_Exception: public std:
 {
 public:
   PVServer_ServiceLoader_Exception(const std::string & what):_what(what) {}
-  ~PVServer_ServiceLoader_Exception() throw () {}
-  virtual const char* what() const throw() { return _what.c_str(); }
+  ~PVServer_ServiceLoader_Exception() noexcept {}
+  virtual const char* what() const noexcept { return _what.c_str(); }
 private:
   std::string _what;
 };
@@ -42,7 +44,7 @@ private:
 class PVSERVERSERVICELOADER_EXPORT PVServer_ServiceLoader
 {
 public:
-  PVServer_ServiceLoader() throw(PVServer_ServiceLoader_Exception);
+  PVServer_ServiceLoader() ;
   virtual ~PVServer_ServiceLoader();
 
   //! Get the IOR of the CORBA service handling the PVServer
@@ -56,6 +58,7 @@ private:
 
 private:
   SALOME_LifeCycleCORBA* myLcc;
+  std::unique_ptr<SALOME_Fake_NamingService> mySSLNS;
 };
 
 #endif /* PVSERVERSERVICELOADER_H_ */