comparison OrthancServer/DatabaseWrapper.h @ 200:9c58b2b03cf0

refactoring of read operations
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Nov 2012 16:49:22 +0100
parents dfa2899d9960
children 1650557bd81a
comparison
equal deleted inserted replaced
199:dfa2899d9960 200:9c58b2b03cf0
101 101
102 std::string GetMetadata(int64_t id, 102 std::string GetMetadata(int64_t id,
103 MetadataType type, 103 MetadataType type,
104 const std::string& defaultValue = ""); 104 const std::string& defaultValue = "");
105 105
106 bool GetMetadataAsInteger(int& result,
107 int64_t id,
108 MetadataType type);
109
106 void AttachFile(int64_t id, 110 void AttachFile(int64_t id,
107 AttachedFileType contentType, 111 AttachedFileType contentType,
108 const std::string& fileUuid, 112 const std::string& fileUuid,
109 uint64_t compressedSize, 113 uint64_t compressedSize,
110 uint64_t uncompressedSize, 114 uint64_t uncompressedSize,
122 AttachedFileType contentType, 126 AttachedFileType contentType,
123 std::string& fileUuid, 127 std::string& fileUuid,
124 uint64_t& compressedSize, 128 uint64_t& compressedSize,
125 uint64_t& uncompressedSize, 129 uint64_t& uncompressedSize,
126 CompressionType& compressionType); 130 CompressionType& compressionType);
131
132 bool LookupFile(int64_t id,
133 AttachedFileType contentType,
134 std::string& fileUuid,
135 uint64_t& uncompressedSize)
136 {
137 uint64_t compressedSize;
138 CompressionType compressionType;
139 return LookupFile(id, contentType, fileUuid, compressedSize, uncompressedSize, compressionType);
140 }
127 141
128 void SetMainDicomTags(int64_t id, 142 void SetMainDicomTags(int64_t id,
129 const DicomMap& tags); 143 const DicomMap& tags);
130 144
131 void GetMainDicomTags(DicomMap& map, 145 void GetMainDicomTags(DicomMap& map,