comparison OrthancServer/ServerIndex.h @ 1822:9ed9458aa44f

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Nov 2015 10:06:50 +0100
parents 98abb8d7f905
children e018037d4d0e
comparison
equal deleted inserted replaced
1821:580951a33583 1822:9ed9458aa44f
40 #include "../Core/DicomFormat/DicomInstanceHasher.h" 40 #include "../Core/DicomFormat/DicomInstanceHasher.h"
41 #include "ServerEnumerations.h" 41 #include "ServerEnumerations.h"
42 42
43 #include "IDatabaseWrapper.h" 43 #include "IDatabaseWrapper.h"
44 44
45
46 namespace Orthanc 45 namespace Orthanc
47 { 46 {
48 class LookupResource; 47 class LookupResource;
49 class ServerContext; 48 class ServerContext;
49 class DicomInstanceToStore;
50 50
51 class ServerIndex : public boost::noncopyable 51 class ServerIndex : public boost::noncopyable
52 { 52 {
53 public: 53 public:
54 typedef std::list<FileInfo> Attachments; 54 typedef std::list<FileInfo> Attachments;
138 138
139 // "count == 0" means no limit on the number of patients 139 // "count == 0" means no limit on the number of patients
140 void SetMaximumPatientCount(unsigned int count); 140 void SetMaximumPatientCount(unsigned int count);
141 141
142 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata, 142 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata,
143 const DicomMap& dicomSummary, 143 DicomInstanceToStore& instance,
144 const Attachments& attachments, 144 const Attachments& attachments);
145 const std::string& remoteAet,
146 const MetadataMap& metadata);
147 145
148 void ComputeStatistics(Json::Value& target); 146 void ComputeStatistics(Json::Value& target);
149 147
150 bool LookupResource(Json::Value& result, 148 bool LookupResource(Json::Value& result,
151 const std::string& publicId, 149 const std::string& publicId,