Mercurial > hg > orthanc
changeset 6126:0f9dc84976ae attach-custom-data
renamed methods to avoid clashes with Windows SDK macros
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 20 May 2025 19:12:21 +0200 |
parents | 42e8033618d6 |
children | 223167d90dbe |
files | OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Tue May 20 19:03:11 2025 +0200 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Tue May 20 19:12:21 2025 +0200 @@ -4434,8 +4434,8 @@ #if HAS_ORTHANC_PLUGIN_KEY_VALUE_STORES == 1 - bool KeyValueStore::Get(std::string& value, - const std::string& key) + bool KeyValueStore::GetValue(std::string& value, + const std::string& key) { uint8_t isExisting = false; OrthancPlugins::MemoryBuffer valueBuffer; @@ -4460,7 +4460,7 @@ #if HAS_ORTHANC_PLUGIN_KEY_VALUE_STORES == 1 - void KeyValueStore::Delete(const std::string& key) + void KeyValueStore::DeleteKey(const std::string& key) { OrthancPluginErrorCode code = OrthancPluginDeleteKeyValue(OrthancPlugins::GetGlobalContext(), storeId_.c_str(), key.c_str());
--- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue May 20 19:03:11 2025 +0200 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue May 20 19:12:21 2025 +0200 @@ -1661,10 +1661,10 @@ void Store(const std::string& key, const std::string& value); - bool Get(std::string& value, - const std::string& key); + bool GetValue(std::string& value, + const std::string& key); - void Delete(const std::string& key); + void DeleteKey(const std::string& key); Iterator* CreateIterator(); };