Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.h @ 1718:2b812969e136 db-changes
getting rid of an IDatabaseWrapper::LookupIdentifier flavor
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 20 Oct 2015 10:11:22 +0200 |
parents | a903d57d9f0c |
children | 88b74d8512be |
comparison
equal
deleted
inserted
replaced
1717:3926e6317a43 | 1718:2b812969e136 |
---|---|
50 class ServerIndex : public boost::noncopyable | 50 class ServerIndex : public boost::noncopyable |
51 { | 51 { |
52 public: | 52 public: |
53 typedef std::list<FileInfo> Attachments; | 53 typedef std::list<FileInfo> Attachments; |
54 typedef std::map< std::pair<ResourceType, MetadataType>, std::string> MetadataMap; | 54 typedef std::map< std::pair<ResourceType, MetadataType>, std::string> MetadataMap; |
55 typedef std::list< std::pair<ResourceType, std::string> > LookupResults; | |
55 | 56 |
56 private: | 57 private: |
57 class Listener; | 58 class Listener; |
58 class Transaction; | 59 class Transaction; |
59 class UnstableResourcePayload; | 60 class UnstableResourcePayload; |
242 | 243 |
243 void LookupIdentifier(std::list<std::string>& result, | 244 void LookupIdentifier(std::list<std::string>& result, |
244 const DicomTag& tag, | 245 const DicomTag& tag, |
245 const std::string& value); | 246 const std::string& value); |
246 | 247 |
247 void LookupIdentifier(std::list< std::pair<ResourceType, std::string> >& result, | 248 void LookupIdentifier(LookupResults& result, |
249 const DicomTag& tag, | |
248 const std::string& value); | 250 const std::string& value); |
249 | 251 |
250 StoreStatus AddAttachment(const FileInfo& attachment, | 252 StoreStatus AddAttachment(const FileInfo& attachment, |
251 const std::string& publicId); | 253 const std::string& publicId); |
252 | 254 |