Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/IDatabaseWrapper.h @ 5847:70a879a7b658 find-refactoring
introduction of IDatabaseWrapper::ICompatibilityTransaction
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Oct 2024 13:46:29 +0000 |
parents | 82fc95cc168c |
children | 0f4345cbe558 |
comparison
equal
deleted
inserted
replaced
5846:c1b9eb21bd61 | 5847:70a879a7b658 |
---|---|
200 int64_t id) = 0; | 200 int64_t id) = 0; |
201 | 201 |
202 virtual void GetAllPublicIds(std::list<std::string>& target, | 202 virtual void GetAllPublicIds(std::list<std::string>& target, |
203 ResourceType resourceType) = 0; | 203 ResourceType resourceType) = 0; |
204 | 204 |
205 virtual void GetAllPublicIds(std::list<std::string>& target, | |
206 ResourceType resourceType, | |
207 int64_t since, | |
208 uint32_t limit) = 0; | |
209 | |
210 virtual void GetChanges(std::list<ServerIndexChange>& target /*out*/, | 205 virtual void GetChanges(std::list<ServerIndexChange>& target /*out*/, |
211 bool& done /*out*/, | 206 bool& done /*out*/, |
212 int64_t since, | 207 int64_t since, |
213 uint32_t limit) = 0; | 208 uint32_t limit) = 0; |
214 | 209 |
420 uint32_t limit, | 415 uint32_t limit, |
421 const std::set<ChangeType>& filterType) = 0; | 416 const std::set<ChangeType>& filterType) = 0; |
422 }; | 417 }; |
423 | 418 |
424 | 419 |
420 // TODO-FIND: Could this interface be removed? | |
421 class ICompatibilityTransaction : public boost::noncopyable | |
422 { | |
423 public: | |
424 virtual ~ICompatibilityTransaction() | |
425 { | |
426 } | |
427 | |
428 virtual void GetAllPublicIdsCompatibility(std::list<std::string>& target, | |
429 ResourceType resourceType, | |
430 int64_t since, | |
431 uint32_t limit) = 0; | |
432 }; | |
433 | |
434 | |
425 virtual ~IDatabaseWrapper() | 435 virtual ~IDatabaseWrapper() |
426 { | 436 { |
427 } | 437 } |
428 | 438 |
429 virtual void Open() = 0; | 439 virtual void Open() = 0; |