Version: 9.15.0
SALOME_Embedded_NamingService_Client.hxx
Go to the documentation of this file.
1 // Copyright (C) 2021-2025 CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #pragma once
21 
24 
25 #include <SALOMEconfig.h>
26 #include CORBA_CLIENT_HEADER(SALOME_Embedded_NamingService)
27 
29 {
30 public:
31  SALOME_Embedded_NamingService_Client(Engines::EmbeddedNamingService_var remoteNSServ):_remote_ns_serv(remoteNSServ) { }
32  void init_orb(CORBA::ORB_ptr orb=0) override;
33  bool IsTrueNS() const override { return false; }
35  void Register(CORBA::Object_ptr ObjRef, const char* Path) override;
36  void Destroy_FullDirectory(const char* Path) override;
37  void Destroy_Name(const char* Path) override;
38  CORBA::Object_ptr Resolve(const char* Path) override;
39  CORBA::Object_ptr ResolveFirst(const char* Path) override;
40 public:
41  Engines::EmbeddedNamingService_var GetObject() const { return _remote_ns_serv; }
42 private:
44 private:
45  Engines::EmbeddedNamingService_var _remote_ns_serv;
46 };
#define NAMINGSERVICE_EXPORT
Definition: SALOME_NamingService_defs.hxx:36
Definition: SALOME_Embedded_NamingService_Client.hxx:29
Engines::EmbeddedNamingService_var GetObject() const
Definition: SALOME_Embedded_NamingService_Client.hxx:41
Engines::EmbeddedNamingService_var _remote_ns_serv
Definition: SALOME_Embedded_NamingService_Client.hxx:45
bool IsTrueNS() const override
Definition: SALOME_Embedded_NamingService_Client.hxx:33
SALOME_Embedded_NamingService_Client(const SALOME_Embedded_NamingService_Client &other)=default
SALOME_Embedded_NamingService_Client(Engines::EmbeddedNamingService_var remoteNSServ)
Definition: SALOME_Embedded_NamingService_Client.hxx:31
Definition: SALOME_NamingService_Abstract.hxx:32
virtual CORBA::Object_ptr Resolve(const char *Path)=0
virtual void Destroy_Name(const char *Path)=0
virtual void Register(CORBA::Object_ptr ObjRef, const char *Path)=0
virtual void init_orb(CORBA::ORB_ptr orb=0)=0
virtual SALOME_NamingService_Container_Abstract * clone()=0
virtual void Destroy_FullDirectory(const char *Path)=0
virtual CORBA::Object_ptr ResolveFirst(const char *Path)=0
orb
Definition: salome.py:122