comparison OrthancServer/IDatabaseWrapper.h @ 3083:683d572424b6 db-changes

IDatabaseWrapper::SetResourcesContent
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 04 Jan 2019 15:52:19 +0100
parents 847a0ed92654
children fb8ee0786b1e
comparison
equal deleted inserted replaced
3082:847a0ed92654 3083:683d572424b6
46 #include <list> 46 #include <list>
47 #include <boost/noncopyable.hpp> 47 #include <boost/noncopyable.hpp>
48 48
49 namespace Orthanc 49 namespace Orthanc
50 { 50 {
51 class ResourcesContent;
52
53
51 class IDatabaseWrapper : public boost::noncopyable 54 class IDatabaseWrapper : public boost::noncopyable
52 { 55 {
53 public: 56 public:
54 class ITransaction : public boost::noncopyable 57 class ITransaction : public boost::noncopyable
55 { 58 {
74 int64_t patientId_; 77 int64_t patientId_;
75 int64_t studyId_; 78 int64_t studyId_;
76 int64_t seriesId_; 79 int64_t seriesId_;
77 }; 80 };
78 81
79
80 virtual ~IDatabaseWrapper() 82 virtual ~IDatabaseWrapper()
81 { 83 {
82 } 84 }
83 85
84 virtual void Open() = 0; 86 virtual void Open() = 0;
188 190
189 virtual void SetGlobalProperty(GlobalProperty property, 191 virtual void SetGlobalProperty(GlobalProperty property,
190 const std::string& value) = 0; 192 const std::string& value) = 0;
191 193
192 virtual void ClearMainDicomTags(int64_t id) = 0; 194 virtual void ClearMainDicomTags(int64_t id) = 0;
193
194 virtual void SetMainDicomTag(int64_t id,
195 const DicomTag& tag,
196 const std::string& value) = 0;
197
198 virtual void SetIdentifierTag(int64_t id,
199 const DicomTag& tag,
200 const std::string& value) = 0;
201 195
202 virtual void SetMetadata(int64_t id, 196 virtual void SetMetadata(int64_t id,
203 MetadataType type, 197 MetadataType type,
204 const std::string& value) = 0; 198 const std::string& value) = 0;
205 199
235 int64_t& instanceId, /* out */ 229 int64_t& instanceId, /* out */
236 const std::string& patient, 230 const std::string& patient,
237 const std::string& study, 231 const std::string& study,
238 const std::string& series, 232 const std::string& series,
239 const std::string& instance) = 0; 233 const std::string& instance) = 0;
234
235 virtual void SetResourcesContent(const ResourcesContent& content) = 0;
240 }; 236 };
241 } 237 }