Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 5804:25df40a274fd find-refactoring
/changes: allowing filtering on multiple changes
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 23 Sep 2024 15:40:27 +0200 |
parents | 9990b4140c1c |
children | 272b0d0eef38 |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp Fri Sep 20 18:18:52 2024 +0200 +++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp Mon Sep 23 15:40:27 2024 +0200 @@ -1096,9 +1096,9 @@ int64_t since, int64_t to, unsigned int maxResults, - ChangeType changeType) + const std::set<ChangeType>& changeType) { - class Operations : public ReadOnlyOperationsT5<Json::Value&, int64_t, int64_t, unsigned int, unsigned int> + class Operations : public ReadOnlyOperationsT5<Json::Value&, int64_t, int64_t, unsigned int, const std::set<ChangeType>&> { public: virtual void ApplyTuple(ReadOnlyTransaction& transaction, @@ -1109,7 +1109,7 @@ bool hasLast = false; int64_t last = 0; - transaction.GetChangesExtended(changes, done, tuple.get<1>(), tuple.get<2>(), tuple.get<3>(), static_cast<ChangeType>(tuple.get<4>())); + transaction.GetChangesExtended(changes, done, tuple.get<1>(), tuple.get<2>(), tuple.get<3>(), tuple.get<4>()); if (changes.empty()) { last = transaction.GetLastChangeIndex();