Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 5663:3765085693e5 large-queries
merge default -> large-queries
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Thu, 04 Jul 2024 07:40:58 +0200 |
parents | 28cc06e4859a f7adfb22e20e |
children | 5463c3ae3235 |
comparison
equal
deleted
inserted
replaced
5553:28cc06e4859a | 5663:3765085693e5 |
---|---|
1 /** | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
4 * Department, University Hospital of Liege, Belgium | 4 * Department, University Hospital of Liege, Belgium |
5 * Copyright (C) 2017-2024 Osimis S.A., Belgium | 5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium | |
6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | 7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
7 * | 8 * |
8 * This program is free software: you can redistribute it and/or | 9 * This program is free software: you can redistribute it and/or |
9 * modify it under the terms of the GNU General Public License as | 10 * modify it under the terms of the GNU General Public License as |
10 * published by the Free Software Foundation, either version 3 of the | 11 * published by the Free Software Foundation, either version 3 of the |
143 | 144 |
144 virtual void Commit() = 0; | 145 virtual void Commit() = 0; |
145 | 146 |
146 virtual int64_t GetCompressedSizeDelta() = 0; | 147 virtual int64_t GetCompressedSizeDelta() = 0; |
147 | 148 |
148 virtual bool IsUnstableResource(int64_t id) = 0; | 149 virtual bool IsUnstableResource(Orthanc::ResourceType type, |
150 int64_t id) = 0; | |
149 | 151 |
150 virtual bool LookupRemainingLevel(std::string& remainingPublicId /* out */, | 152 virtual bool LookupRemainingLevel(std::string& remainingPublicId /* out */, |
151 ResourceType& remainingLevel /* out */) = 0; | 153 ResourceType& remainingLevel /* out */) = 0; |
152 | 154 |
153 virtual void MarkAsUnstable(int64_t id, | 155 virtual void MarkAsUnstable(Orthanc::ResourceType type, |
154 Orthanc::ResourceType type, | 156 int64_t id, |
155 const std::string& publicId) = 0; | 157 const std::string& publicId) = 0; |
156 | 158 |
157 virtual void SignalAttachmentsAdded(uint64_t compressedSize) = 0; | 159 virtual void SignalAttachmentsAdded(uint64_t compressedSize) = 0; |
158 | 160 |
159 virtual void SignalChange(const ServerIndexChange& change) = 0; | 161 virtual void SignalChange(const ServerIndexChange& change) = 0; |
771 void LogChange(int64_t internalId, | 773 void LogChange(int64_t internalId, |
772 ChangeType changeType, | 774 ChangeType changeType, |
773 const std::string& publicId, | 775 const std::string& publicId, |
774 ResourceType level); | 776 ResourceType level); |
775 | 777 |
776 void ReconstructInstance(const ParsedDicomFile& dicom); | 778 void ReconstructInstance(const ParsedDicomFile& dicom, |
779 bool limitToThisLevelDicomTags, | |
780 ResourceType limitToLevel_); | |
777 | 781 |
778 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata, | 782 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata, |
779 const DicomMap& dicomSummary, | 783 const DicomMap& dicomSummary, |
780 const Attachments& attachments, | 784 const Attachments& attachments, |
781 const MetadataMap& metadata, | 785 const MetadataMap& metadata, |