diff Common/IStoragePlugin.h @ 77:80792bb9600e

new HybridMode
author Alain Mazy <am@osimis.io>
date Fri, 14 Oct 2022 10:36:02 +0200
parents b922ae86bbe1
children
line wrap: on
line diff
--- a/Common/IStoragePlugin.h	Tue Aug 30 14:59:58 2022 +0200
+++ b/Common/IStoragePlugin.h	Fri Oct 14 10:36:02 2022 +0200
@@ -67,11 +67,17 @@
     virtual void ReadRange(char* data, size_t size, size_t fromOffset) = 0;
   };
 
+  std::string nameForLogs_;
 public:
+  IStoragePlugin(const std::string& nameForLogs):
+    nameForLogs_(nameForLogs)
+  {}
+
   virtual void SetRootPath(const std::string& rootPath) = 0;
 
   virtual IWriter* GetWriterForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled) = 0;
   virtual IReader* GetReaderForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled) = 0;
-  virtual void DeleteObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled) = 0;
-  virtual const char* GetConfigurationSectionName() = 0;
+  virtual void DeleteObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled) = 0;  // returns true only if 100% sure that the file has been deleted, false otherwise
+
+  const std::string& GetNameForLogs() {return nameForLogs_;}
 };