Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.cpp @ 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 | 0186ac92810c |
children | 663cc6c46d0a |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp Fri Nov 16 08:23:05 2012 +0100 +++ b/OrthancServer/ServerIndex.cpp Tue Nov 27 14:59:55 2012 +0100 @@ -589,8 +589,8 @@ } // Attach the files to the newly created instance - db2_->AttachFile(instance, "dicom", fileUuid, uncompressedFileSize); - db2_->AttachFile(instance, "json", jsonUuid, 0); // TODO "0" + db2_->AttachFile(instance, AttachedFileType_Dicom, fileUuid, uncompressedFileSize); + db2_->AttachFile(instance, AttachedFileType_Json, jsonUuid, 0); // TODO "0" // Attach the metadata db2_->SetMetadata(instance, MetadataType_Instance_ReceptionDate, Toolbox::GetNowIsoString()); @@ -946,7 +946,7 @@ bool ServerIndex::GetFile(std::string& fileUuid, CompressionType& compressionType, const std::string& instanceUuid, - const std::string& contentName) + AttachedFileType contentType) { boost::mutex::scoped_lock scoped_lock(mutex_); @@ -960,7 +960,7 @@ uint64_t compressedSize, uncompressedSize; - return db2_->LookupFile(id, contentName, fileUuid, compressedSize, uncompressedSize, compressionType); + return db2_->LookupFile(id, contentType, fileUuid, compressedSize, uncompressedSize, compressionType); }