comparison OrthancServer/DatabaseWrapper.h @ 197:530a25320461

removal of text as ids in sqlite db
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Nov 2012 14:59:55 +0100
parents a1b9d1e1497b
children 663cc6c46d0a
comparison
equal deleted inserted replaced
196:6d0225a26fd8 197:530a25320461
97 std::string GetMetadata(int64_t id, 97 std::string GetMetadata(int64_t id,
98 MetadataType type, 98 MetadataType type,
99 const std::string& defaultValue = ""); 99 const std::string& defaultValue = "");
100 100
101 void AttachFile(int64_t id, 101 void AttachFile(int64_t id,
102 const std::string& contentName, 102 AttachedFileType contentType,
103 const std::string& fileUuid, 103 const std::string& fileUuid,
104 uint64_t compressedSize, 104 uint64_t compressedSize,
105 uint64_t uncompressedSize, 105 uint64_t uncompressedSize,
106 CompressionType compressionType); 106 CompressionType compressionType);
107 107
108 void AttachFile(int64_t id, 108 void AttachFile(int64_t id,
109 const std::string& contentName, 109 AttachedFileType contentType,
110 const std::string& fileUuid, 110 const std::string& fileUuid,
111 uint64_t fileSize) 111 uint64_t fileSize)
112 { 112 {
113 AttachFile(id, contentName, fileUuid, fileSize, fileSize, CompressionType_None); 113 AttachFile(id, contentType, fileUuid, fileSize, fileSize, CompressionType_None);
114 } 114 }
115 115
116 bool LookupFile(int64_t id, 116 bool LookupFile(int64_t id,
117 const std::string& contentName, 117 AttachedFileType contentType,
118 std::string& fileUuid, 118 std::string& fileUuid,
119 uint64_t& compressedSize, 119 uint64_t& compressedSize,
120 uint64_t& uncompressedSize, 120 uint64_t& uncompressedSize,
121 CompressionType& compressionType); 121 CompressionType& compressionType);
122 122