diff 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
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.h	Tue Nov 27 16:20:22 2012 +0100
+++ b/OrthancServer/DatabaseWrapper.h	Tue Nov 27 16:49:22 2012 +0100
@@ -103,6 +103,10 @@
                             MetadataType type,
                             const std::string& defaultValue = "");
 
+    bool GetMetadataAsInteger(int& result,
+                              int64_t id,
+                              MetadataType type);
+
     void AttachFile(int64_t id,
                     AttachedFileType contentType,
                     const std::string& fileUuid,
@@ -125,6 +129,16 @@
                     uint64_t& uncompressedSize,
                     CompressionType& compressionType);
 
+    bool LookupFile(int64_t id,
+                    AttachedFileType contentType,
+                    std::string& fileUuid,
+                    uint64_t& uncompressedSize)
+    {
+      uint64_t compressedSize;
+      CompressionType compressionType;
+      return LookupFile(id, contentType, fileUuid, compressedSize, uncompressedSize, compressionType);
+    }
+
     void SetMainDicomTags(int64_t id,
                           const DicomMap& tags);