]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Avoid dynamic_cast<SALOME_NamingService *> to detect SSL mode or not
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 30 Jul 2021 09:04:33 +0000 (11:04 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 30 Jul 2021 09:04:33 +0000 (11:04 +0200)
src/NamingService/SALOME_Embedded_NamingService_Client.hxx
src/NamingService/SALOME_Fake_NamingService.hxx
src/NamingService/SALOME_NamingService.hxx
src/NamingService/SALOME_NamingService_Abstract.hxx

index e493e13f3040d405d8bc850276eabfba90671427..7f3fc708abaa96e76ede67d167aa9728743af45a 100644 (file)
@@ -30,6 +30,7 @@ class NAMINGSERVICE_EXPORT SALOME_Embedded_NamingService_Client : public SALOME_
 public:
   SALOME_Embedded_NamingService_Client(Engines::EmbeddedNamingService_var remoteNSServ):_remote_ns_serv(remoteNSServ) { }
   void init_orb(CORBA::ORB_ptr orb=0) override;
+  bool IsTrueNS() const override { return false; }
   SALOME_NamingService_Container_Abstract *clone() override;
   void Register(CORBA::Object_ptr ObjRef, const char* Path) override;
   void Destroy_FullDirectory(const char* Path) override;
index 509c3181f6d70517344e1653d9c5524ca2f6ac69..295433cfaa88471bb40c2a9b51055b1860880e3d 100644 (file)
@@ -36,6 +36,7 @@ public:
   static void SetLogContainersFile(const std::string& logFileName);
   static std::string GetLogContainersFile();
   static void FlushLogContainersFile();
+  bool IsTrueNS() const override { return false; }
   std::vector< std::string > repr() override;
   void init_orb(CORBA::ORB_ptr orb=0) override;
   void Register(CORBA::Object_ptr ObjRef, const char* Path) override;
index ec19bb7b7a89f55667d0a73ca9bd4572d6ed3f65..b70e0579f7f0ae385f6a30cf101aae8b9011331b 100644 (file)
@@ -51,6 +51,7 @@ public:
   SALOME_NamingService(CORBA::ORB_ptr orb);
 
   virtual ~SALOME_NamingService();
+  bool IsTrueNS() const override { return true; }
   std::vector< std::string > repr() override;
   void init_orb(CORBA::ORB_ptr orb=0) override;
   void Register(CORBA::Object_ptr ObjRef, const char* Path) override;
index fdd6ae0d4775879511021845cca60d04b451a5a9..b77a15e6bcd98f543ce882dd4b74f735d456a848 100644 (file)
@@ -38,6 +38,7 @@ public:
   virtual void Destroy_Name(const char* Path) = 0;
   virtual CORBA::Object_ptr Resolve(const char* Path) = 0;
   virtual CORBA::Object_ptr ResolveFirst(const char* Path) = 0;
+  virtual bool IsTrueNS() const = 0;
   static constexpr char SEP = '/';
 };