Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/IDatabaseWrapper.h @ 5553:28cc06e4859a large-queries
Added ExtendedApiV1: /changes
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Thu, 11 Apr 2024 19:02:20 +0200 |
parents | 2c5eb1ef26a0 |
children | 3765085693e5 |
comparison
equal
deleted
inserted
replaced
5549:dcbf0c776945 | 5553:28cc06e4859a |
---|---|
49 bool hasRevisionsSupport_; | 49 bool hasRevisionsSupport_; |
50 bool hasLabelsSupport_; | 50 bool hasLabelsSupport_; |
51 bool hasAtomicIncrementGlobalProperty_; | 51 bool hasAtomicIncrementGlobalProperty_; |
52 bool hasUpdateAndGetStatistics_; | 52 bool hasUpdateAndGetStatistics_; |
53 bool hasMeasureLatency_; | 53 bool hasMeasureLatency_; |
54 bool hasExtendedApiV1_; | |
54 | 55 |
55 public: | 56 public: |
56 Capabilities() : | 57 Capabilities() : |
57 hasFlushToDisk_(false), | 58 hasFlushToDisk_(false), |
58 hasRevisionsSupport_(false), | 59 hasRevisionsSupport_(false), |
59 hasLabelsSupport_(false), | 60 hasLabelsSupport_(false), |
60 hasAtomicIncrementGlobalProperty_(false), | 61 hasAtomicIncrementGlobalProperty_(false), |
61 hasUpdateAndGetStatistics_(false), | 62 hasUpdateAndGetStatistics_(false), |
62 hasMeasureLatency_(false) | 63 hasMeasureLatency_(false), |
64 hasExtendedApiV1_(false) | |
63 { | 65 { |
64 } | 66 } |
65 | 67 |
66 void SetFlushToDisk(bool value) | 68 void SetFlushToDisk(bool value) |
67 { | 69 { |
89 } | 91 } |
90 | 92 |
91 bool HasLabelsSupport() const | 93 bool HasLabelsSupport() const |
92 { | 94 { |
93 return hasLabelsSupport_; | 95 return hasLabelsSupport_; |
96 } | |
97 | |
98 void SetHasExtendedApiV1(bool value) | |
99 { | |
100 hasExtendedApiV1_ = value; | |
101 } | |
102 | |
103 bool HasExtendedApiV1() const | |
104 { | |
105 return hasExtendedApiV1_; | |
94 } | 106 } |
95 | 107 |
96 void SetAtomicIncrementGlobalProperty(bool value) | 108 void SetAtomicIncrementGlobalProperty(bool value) |
97 { | 109 { |
98 hasAtomicIncrementGlobalProperty_ = value; | 110 hasAtomicIncrementGlobalProperty_ = value; |
342 | 354 |
343 virtual int64_t IncrementGlobalProperty(GlobalProperty property, | 355 virtual int64_t IncrementGlobalProperty(GlobalProperty property, |
344 int64_t increment, | 356 int64_t increment, |
345 bool shared) = 0; | 357 bool shared) = 0; |
346 | 358 |
359 // New in Orthanc 1.12.3 | |
347 virtual void UpdateAndGetStatistics(int64_t& patientsCount, | 360 virtual void UpdateAndGetStatistics(int64_t& patientsCount, |
348 int64_t& studiesCount, | 361 int64_t& studiesCount, |
349 int64_t& seriesCount, | 362 int64_t& seriesCount, |
350 int64_t& instancesCount, | 363 int64_t& instancesCount, |
351 int64_t& compressedSize, | 364 int64_t& compressedSize, |
352 int64_t& uncompressedSize) = 0; | 365 int64_t& uncompressedSize) = 0; |
366 | |
367 // New in Orthanc 1.13.0 | |
368 virtual void GetChanges2(std::list<ServerIndexChange>& target /*out*/, | |
369 bool& done /*out*/, | |
370 int64_t since, | |
371 int64_t to, | |
372 uint32_t limit, | |
373 ChangeType filterType) = 0; | |
374 | |
353 }; | 375 }; |
354 | 376 |
355 | 377 |
356 virtual ~IDatabaseWrapper() | 378 virtual ~IDatabaseWrapper() |
357 { | 379 { |