Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerIndex.h @ 4562:e19f11e08226 db-changes
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Mar 2021 15:37:53 +0100 |
parents | 02510325d869 |
children | bb1c365f9e44 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h Thu Mar 04 18:45:48 2021 +0100 +++ b/OrthancServer/Sources/ServerIndex.h Fri Mar 05 15:37:53 2021 +0100 @@ -181,21 +181,6 @@ void DeleteExportedResources(); - void GetResourceStatistics(/* out */ ResourceType& type, - /* out */ uint64_t& diskSize, - /* out */ uint64_t& uncompressedSize, - /* out */ unsigned int& countStudies, - /* out */ unsigned int& countSeries, - /* out */ unsigned int& countInstances, - /* out */ uint64_t& dicomDiskSize, - /* out */ uint64_t& dicomUncompressedSize, - const std::string& publicId); - - void LookupIdentifierExact(std::vector<std::string>& result, - ResourceType level, - const DicomTag& tag, - const std::string& value); - StoreStatus AddAttachment(const FileInfo& attachment, const std::string& publicId); @@ -205,17 +190,6 @@ void SetGlobalProperty(GlobalProperty property, const std::string& value); - bool LookupGlobalProperty(std::string& value, - GlobalProperty property); - - std::string GetGlobalProperty(GlobalProperty property, - const std::string& defaultValue); - - bool GetMainDicomTags(DicomMap& result, - const std::string& publicId, - ResourceType expectedType, - ResourceType levelOfInterest); - // Only applicable at the instance level bool GetAllMainDicomTags(DicomMap& result, const std::string& instancePublicId); @@ -276,6 +250,15 @@ * Read-only methods from "IDatabaseWrapper" **/ + void ApplyLookupResources(std::list<std::string>& resourcesId, + std::list<std::string>* instancesId, // Can be NULL if not needed + const std::vector<DatabaseConstraint>& lookup, + ResourceType queryLevel, + size_t limit) + { + return db_.ApplyLookupResources(resourcesId, instancesId, lookup, queryLevel, limit); + } + void GetAllMetadata(std::map<MetadataType, std::string>& target, int64_t id) { @@ -388,6 +371,12 @@ return db_.LookupAttachment(attachment, id, contentType); } + bool LookupGlobalProperty(std::string& target, + GlobalProperty property) + { + return db_.LookupGlobalProperty(target, property); + } + bool LookupMetadata(std::string& target, int64_t id, MetadataType type) @@ -519,5 +508,31 @@ bool LookupParent(std::string& target, const std::string& publicId); + + void GetResourceStatistics(/* out */ ResourceType& type, + /* out */ uint64_t& diskSize, + /* out */ uint64_t& uncompressedSize, + /* out */ unsigned int& countStudies, + /* out */ unsigned int& countSeries, + /* out */ unsigned int& countInstances, + /* out */ uint64_t& dicomDiskSize, + /* out */ uint64_t& dicomUncompressedSize, + const std::string& publicId); + + void LookupIdentifierExact(std::vector<std::string>& result, + ResourceType level, + const DicomTag& tag, + const std::string& value); + + bool LookupGlobalProperty(std::string& value, + GlobalProperty property); + + std::string GetGlobalProperty(GlobalProperty property, + const std::string& defaultValue); + + bool GetMainDicomTags(DicomMap& result, + const std::string& publicId, + ResourceType expectedType, + ResourceType levelOfInterest); }; }