Mercurial > hg > orthanc-databases
diff Framework/Plugins/IndexBackend.cpp @ 568:77c8544bbd7d find-refactoring
merge
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 23 Sep 2024 16:06:53 +0200 |
parents | 22bbce1f88ff a7f841fc4a9f |
children | f18e46d7dbf8 35d2df9572b1 |
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp Mon Sep 23 16:03:24 2024 +0200 +++ b/Framework/Plugins/IndexBackend.cpp Mon Sep 23 16:06:53 2024 +0200 @@ -125,13 +125,7 @@ } - void IndexBackend::ReadChangesInternal(IDatabaseBackendOutput& output, - bool& done, - DatabaseManager& manager, - DatabaseManager::CachedStatement& statement, - const Dictionary& args, - uint32_t limit, - bool returnFirstResults) + namespace // Anonymous namespace to avoid clashes between compilation modules { struct Change { @@ -146,7 +140,17 @@ { } }; - + } + + + void IndexBackend::ReadChangesInternal(IDatabaseBackendOutput& output, + bool& done, + DatabaseManager& manager, + DatabaseManager::CachedStatement& statement, + const Dictionary& args, + uint32_t limit, + bool returnFirstResults) + { statement.Execute(args); std::list<Change> changes; @@ -647,10 +651,12 @@ hasTo = true; filters.push_back("seq<=${to}"); } +#if ORTHANC_PLUGINS_HAS_CHANGES_EXTENDED == 1 if (changeTypes.size() > 0) { filters.push_back("changeType IN (" + JoinChanges(changeTypes) + ") "); } +#endif std::string filtersString; if (filters.size() > 0)