comparison OrthancServer/Sources/DicomInstanceToStore.h @ 4506:ac69c9f76c71

refactoring ServerIndex::Store()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Feb 2021 17:01:44 +0100
parents 97d103b57cd1
children b4c58795f3a8
comparison
equal deleted inserted replaced
4505:97d103b57cd1 4506:ac69c9f76c71
62 // WARNING: The buffer is not copied, it must not be removed as 62 // WARNING: The buffer is not copied, it must not be removed as
63 // long as the "DicomInstanceToStore" object is alive 63 // long as the "DicomInstanceToStore" object is alive
64 void SetBuffer(const void* dicom, 64 void SetBuffer(const void* dicom,
65 size_t size); 65 size_t size);
66 66
67 // WARNING: The "ParsedDicomFile" is not copied
67 void SetParsedDicomFile(ParsedDicomFile& parsed); 68 void SetParsedDicomFile(ParsedDicomFile& parsed);
68 69
69 const MetadataMap& GetMetadata() const; 70 const MetadataMap& GetMetadata() const;
70 71
71 MetadataMap& GetMetadata(); 72 void ClearMetadata();
72 73
74 // This function is notably used by modify/anonymize operations
73 void AddMetadata(ResourceType level, 75 void AddMetadata(ResourceType level,
74 MetadataType metadata, 76 MetadataType metadata,
75 const std::string& value); 77 const std::string& value);
76 78
77 const void* GetBufferData() const; 79 const void* GetBufferData() const;