]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
OK for session_i
authorAnthony GEAY <anthony.geay@edf.fr>
Fri, 19 Feb 2021 16:10:08 +0000 (17:10 +0100)
committerAnthony GEAY <anthony.geay@edf.fr>
Fri, 19 Feb 2021 16:10:08 +0000 (17:10 +0100)
src/NamingService/SALOME_Fake_NamingService.cxx
src/NamingService/SALOME_Fake_NamingService.hxx
src/NamingService/SALOME_NamingService.hxx
src/NamingService/SALOME_NamingService_Abstract.hxx

index 7babdc7bf9244beac2ce23fff4f9ad897bc55f0d..a9674e45b539975e71633961cced9daed2d1765a 100644 (file)
@@ -38,6 +38,25 @@ void SALOME_Fake_NamingService::Destroy_Name(const char* Path)
 {
 }
 
+void SALOME_Fake_NamingService::Destroy_Directory(const char* Path)
+{
+}
+
+bool SALOME_Fake_NamingService::Change_Directory(const char* Path)
+{
+  return true;
+}
+
+std::vector<std::string> SALOME_Fake_NamingService::list_subdirs()
+{
+  return std::vector<std::string>();
+}
+
+std::vector<std::string> SALOME_Fake_NamingService::list_directory()
+{
+  return std::vector<std::string>();
+}
+
 CORBA::Object_ptr SALOME_Fake_NamingService::Resolve(const char* Path)
 {
   std::string pathCpp(Path);
index 6393b204256eb6d6344b78a54734b671fc642fd5..b6de9001ac1b69523cdf4b3122881e0434da978d 100644 (file)
@@ -31,9 +31,14 @@ class NAMINGSERVICE_EXPORT SALOME_Fake_NamingService : public SALOME_NamingServi
 {
 public:
     SALOME_Fake_NamingService(CORBA::ORB_ptr orb);
+    SALOME_Fake_NamingService() = default;
     void Register(CORBA::Object_ptr ObjRef, const char* Path) override;
     CORBA::Object_ptr Resolve(const char* Path) override;
     void Destroy_Name(const char* Path) override;
+    void Destroy_Directory(const char* Path) override;
+    bool Change_Directory(const char* Path) override;
+    std::vector<std::string> list_subdirs() override;
+    std::vector<std::string> list_directory() override;
 private:
     static std::mutex _mutex;
     static std::map<std::string,CORBA::Object_var> _map;
index d7bc3cd000c2e6d7bd42a48bddb71634053b1619..3b24fc168afccbc9ac6ae61876218a838a3373a5 100644 (file)
@@ -69,14 +69,14 @@ public:
 
   int Find(const char* name) ;
   bool Create_Directory(const char* Path) ;
-  bool Change_Directory(const char* Path) ;
+  bool Change_Directory(const char* Path) override;
   char* Current_Directory() ;
   void list() ;
-  std::vector<std::string> list_directory() ;
-  std::vector<std::string> list_subdirs() ;
+  std::vector<std::string> list_directory() override;
+  std::vector<std::string> list_subdirs() override;
   std::vector<std::string> list_directory_recurs() ;
   void Destroy_Name(const char* Path) override;
-  virtual void Destroy_Directory(const char* Path) ;
+  virtual void Destroy_Directory(const char* Path) override;
   virtual void Destroy_FullDirectory(const char* Path) ;
   char *getIORaddr();
   CORBA::ORB_ptr orb();
index ea6b37305207c976d1c276b5a600295543d462a6..979a7780a04339a62748a4832da79cd5d1331205 100644 (file)
 
 #include "omniORB4/CORBA.h"
 
+#include <vector>
+#include <string>
+
 class NAMINGSERVICE_EXPORT SALOME_NamingService_Abstract
 {
 public:
   virtual void Register(CORBA::Object_ptr ObjRef, const char* Path) = 0;
   virtual CORBA::Object_ptr Resolve(const char* Path) = 0;
   virtual void Destroy_Name(const char* Path) = 0;
+  virtual void Destroy_Directory(const char* Path) = 0;
+  virtual bool Change_Directory(const char* Path) = 0;
+  virtual std::vector<std::string> list_subdirs() = 0;
+  virtual std::vector<std::string> list_directory() = 0;
   virtual ~SALOME_NamingService_Abstract() { }
 };