Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPluginDatabaseV3.cpp @ 5213:055428d92772 db-protobuf
clarifying types of since/limit in IDatabaseWrapper
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Apr 2023 11:18:55 +0200 |
parents | 1a878922404b |
children | 8b6da4fdf9fe |
comparison
equal
deleted
inserted
replaced
5212:19e916dfc767 | 5213:055428d92772 |
---|---|
386 } | 386 } |
387 | 387 |
388 | 388 |
389 virtual void GetAllPublicIds(std::list<std::string>& target, | 389 virtual void GetAllPublicIds(std::list<std::string>& target, |
390 ResourceType resourceType, | 390 ResourceType resourceType, |
391 size_t since, | 391 int64_t since, |
392 size_t limit) ORTHANC_OVERRIDE | 392 uint32_t limit) ORTHANC_OVERRIDE |
393 { | 393 { |
394 CheckSuccess(that_.backend_.getAllPublicIdsWithLimit( | 394 CheckSuccess(that_.backend_.getAllPublicIdsWithLimit( |
395 transaction_, Plugins::Convert(resourceType), | 395 transaction_, Plugins::Convert(resourceType), |
396 static_cast<uint64_t>(since), static_cast<uint64_t>(limit))); | 396 static_cast<uint64_t>(since), static_cast<uint64_t>(limit))); |
397 CheckNoEvent(); | 397 CheckNoEvent(); |
401 | 401 |
402 | 402 |
403 virtual void GetChanges(std::list<ServerIndexChange>& target /*out*/, | 403 virtual void GetChanges(std::list<ServerIndexChange>& target /*out*/, |
404 bool& done /*out*/, | 404 bool& done /*out*/, |
405 int64_t since, | 405 int64_t since, |
406 uint32_t maxResults) ORTHANC_OVERRIDE | 406 uint32_t limit) ORTHANC_OVERRIDE |
407 { | 407 { |
408 uint8_t tmpDone = true; | 408 uint8_t tmpDone = true; |
409 CheckSuccess(that_.backend_.getChanges(transaction_, &tmpDone, since, maxResults)); | 409 CheckSuccess(that_.backend_.getChanges(transaction_, &tmpDone, since, limit)); |
410 CheckNoEvent(); | 410 CheckNoEvent(); |
411 | 411 |
412 done = (tmpDone != 0); | 412 done = (tmpDone != 0); |
413 | 413 |
414 uint32_t count; | 414 uint32_t count; |
452 | 452 |
453 | 453 |
454 virtual void GetExportedResources(std::list<ExportedResource>& target /*out*/, | 454 virtual void GetExportedResources(std::list<ExportedResource>& target /*out*/, |
455 bool& done /*out*/, | 455 bool& done /*out*/, |
456 int64_t since, | 456 int64_t since, |
457 uint32_t maxResults) ORTHANC_OVERRIDE | 457 uint32_t limit) ORTHANC_OVERRIDE |
458 { | 458 { |
459 uint8_t tmpDone = true; | 459 uint8_t tmpDone = true; |
460 CheckSuccess(that_.backend_.getExportedResources(transaction_, &tmpDone, since, maxResults)); | 460 CheckSuccess(that_.backend_.getExportedResources(transaction_, &tmpDone, since, limit)); |
461 CheckNoEvent(); | 461 CheckNoEvent(); |
462 | 462 |
463 done = (tmpDone != 0); | 463 done = (tmpDone != 0); |
464 | 464 |
465 uint32_t count; | 465 uint32_t count; |
795 | 795 |
796 virtual void ApplyLookupResources(std::list<std::string>& resourcesId, | 796 virtual void ApplyLookupResources(std::list<std::string>& resourcesId, |
797 std::list<std::string>* instancesId, // Can be NULL if not needed | 797 std::list<std::string>* instancesId, // Can be NULL if not needed |
798 const std::vector<DatabaseConstraint>& lookup, | 798 const std::vector<DatabaseConstraint>& lookup, |
799 ResourceType queryLevel, | 799 ResourceType queryLevel, |
800 size_t limit) ORTHANC_OVERRIDE | 800 uint32_t limit) ORTHANC_OVERRIDE |
801 { | 801 { |
802 std::vector<OrthancPluginDatabaseConstraint> constraints; | 802 std::vector<OrthancPluginDatabaseConstraint> constraints; |
803 std::vector< std::vector<const char*> > constraintsValues; | 803 std::vector< std::vector<const char*> > constraintsValues; |
804 | 804 |
805 constraints.resize(lookup.size()); | 805 constraints.resize(lookup.size()); |