comparison Framework/Plugins/IndexBackend.h @ 237:35598014f140

refactoring to remove GlobalProperties.cpp
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Apr 2021 19:09:04 +0200
parents d1b124d116c1
children e184dcadf163
comparison
equal deleted inserted replaced
236:d1d2edbbe6fb 237:35598014f140
86 DatabaseManager::CachedStatement& statement, 86 DatabaseManager::CachedStatement& statement,
87 const Dictionary& args, 87 const Dictionary& args,
88 uint32_t maxResults); 88 uint32_t maxResults);
89 89
90 public: 90 public:
91 IndexBackend(OrthancPluginContext* context); 91 explicit IndexBackend(OrthancPluginContext* context);
92 92
93 virtual OrthancPluginContext* GetContext() ORTHANC_OVERRIDE 93 virtual OrthancPluginContext* GetContext() ORTHANC_OVERRIDE
94 { 94 {
95 return context_; 95 return context_;
96 } 96 }
252 int64_t patientIdToAvoid) ORTHANC_OVERRIDE; 252 int64_t patientIdToAvoid) ORTHANC_OVERRIDE;
253 253
254 virtual void SetGlobalProperty(DatabaseManager& manager, 254 virtual void SetGlobalProperty(DatabaseManager& manager,
255 const char* serverIdentifier, 255 const char* serverIdentifier,
256 int32_t property, 256 int32_t property,
257 const char* value) ORTHANC_OVERRIDE; 257 const char* utf8) ORTHANC_OVERRIDE;
258 258
259 virtual void SetMainDicomTag(DatabaseManager& manager, 259 virtual void SetMainDicomTag(DatabaseManager& manager,
260 int64_t id, 260 int64_t id,
261 uint16_t group, 261 uint16_t group,
262 uint16_t element, 262 uint16_t element,
379 const char* hashPatient, 379 const char* hashPatient,
380 const char* hashStudy, 380 const char* hashStudy,
381 const char* hashSeries, 381 const char* hashSeries,
382 const char* hashInstance); 382 const char* hashInstance);
383 383
384 bool LookupGlobalIntegerProperty(int& target /*out*/,
385 DatabaseManager& manager,
386 const char* serverIdentifier,
387 int32_t property);
388
389 void SetGlobalIntegerProperty(DatabaseManager& manager,
390 const char* serverIdentifier,
391 int32_t property,
392 int value);
393
384 /** 394 /**
385 * "maxDatabaseRetries" is to handle 395 * "maxDatabaseRetries" is to handle
386 * "OrthancPluginErrorCode_DatabaseCannotSerialize" if there is a 396 * "OrthancPluginErrorCode_DatabaseCannotSerialize" if there is a
387 * collision multiple writers. "countConnections" and 397 * collision multiple writers. "countConnections" and
388 * "maxDatabaseRetries" are only used if Orthanc >= 1.9.2. 398 * "maxDatabaseRetries" are only used if Orthanc >= 1.9.2.