comparison OrthancServer/Search/Compatibility/ISetResourcesContent.h @ 3084:195ba4cbac3f db-changes

reorganization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 04 Jan 2019 16:42:55 +0100
parents 683d572424b6
children
comparison
equal deleted inserted replaced
3083:683d572424b6 3084:195ba4cbac3f
31 **/ 31 **/
32 32
33 33
34 #pragma once 34 #pragma once
35 35
36 #include "../../IDatabaseWrapper.h"
37 #include "../../ServerToolbox.h" 36 #include "../../ServerToolbox.h"
38 37
39 namespace Orthanc 38 namespace Orthanc
40 { 39 {
41 namespace Compatibility 40 namespace Compatibility
42 { 41 {
43 class ISetResourcesContent : public IDatabaseWrapper 42 class ISetResourcesContent : public boost::noncopyable
44 { 43 {
45 public: 44 public:
46 virtual ~ISetResourcesContent() 45 virtual ~ISetResourcesContent()
47 { 46 {
48 } 47 }
49 48
50 virtual void SetResourcesContent(const ResourcesContent& content)
51 ORTHANC_OVERRIDE
52 {
53 content.Store(*this);
54 }
55
56 virtual void SetMainDicomTag(int64_t id, 49 virtual void SetMainDicomTag(int64_t id,
57 const DicomTag& tag, 50 const DicomTag& tag,
58 const std::string& value) = 0; 51 const std::string& value) = 0;
59 52
60 virtual void SetIdentifierTag(int64_t id, 53 virtual void SetIdentifierTag(int64_t id,
62 const std::string& value) = 0; 55 const std::string& value) = 0;
63 56
64 virtual void SetMetadata(int64_t id, 57 virtual void SetMetadata(int64_t id,
65 MetadataType type, 58 MetadataType type,
66 const std::string& value) = 0; 59 const std::string& value) = 0;
60
61 static void Apply(ISetResourcesContent& that,
62 const ResourcesContent& content)
63 {
64 content.Store(that);
65 }
67 }; 66 };
68 } 67 }
69 } 68 }