annotate Common/BaseStoragePlugin.h @ 15:2a02b21f0a19

migration + storage structure
author Alain Mazy
date Tue, 01 Sep 2020 13:08:49 +0200
parents
children 968eb1c78aed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
1 #pragma once
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
2
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
3 #include "IStoragePlugin.h"
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
4
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
5 class BaseStoragePlugin : public IStoragePlugin
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
6 {
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
7 bool enableLegacyStorageStructure_;
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
8
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
9 protected:
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
10
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
11 BaseStoragePlugin(bool enableLegacyStorageStructure):
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
12 enableLegacyStorageStructure_(enableLegacyStorageStructure)
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
13 {}
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
14
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
15 std::string GetPath(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled);
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
16
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
17 public:
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
18 static std::string GetPath(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled, bool legacyFileStructure, const std::string& rootFolder);
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
19 static std::string GetOrthancFileSystemPath(const std::string& uuid, const std::string& fileSystemRootPath);
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
20
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
21 static bool ReadCommonConfiguration(bool& enableLegacyStorageStructure, const OrthancPlugins::OrthancConfiguration& pluginSection);
2a02b21f0a19 migration + storage structure
Alain Mazy
parents:
diff changeset
22 };