15
|
1 #pragma once
|
|
2
|
|
3 #include "IStoragePlugin.h"
|
|
4
|
|
5 class BaseStoragePlugin : public IStoragePlugin
|
|
6 {
|
|
7 bool enableLegacyStorageStructure_;
|
|
8
|
|
9 protected:
|
|
10
|
|
11 BaseStoragePlugin(bool enableLegacyStorageStructure):
|
|
12 enableLegacyStorageStructure_(enableLegacyStorageStructure)
|
|
13 {}
|
|
14
|
|
15 std::string GetPath(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled);
|
|
16
|
|
17 public:
|
|
18 static std::string GetPath(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled, bool legacyFileStructure, const std::string& rootFolder);
|
|
19 static std::string GetOrthancFileSystemPath(const std::string& uuid, const std::string& fileSystemRootPath);
|
|
20
|
|
21 static bool ReadCommonConfiguration(bool& enableLegacyStorageStructure, const OrthancPlugins::OrthancConfiguration& pluginSection);
|
|
22 };
|