-// 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;
{
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;
};
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
private:
SALOME_LifeCycleCORBA* myLcc;
+ std::unique_ptr<SALOME_Fake_NamingService> mySSLNS;
};
#endif /* PVSERVERSERVICELOADER_H_ */