comparison OrthancServer/ParsedDicomFile.h @ 1693:558b25228a23

creation of tag hierarchy from json
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Oct 2015 13:45:33 +0200
parents 14a32b2fa63e
children 18c02c6987d5
comparison
equal deleted inserted replaced
1692:4eaf164dd574 1693:558b25228a23
51 void Setup(const char* content, 51 void Setup(const char* content,
52 size_t size); 52 size_t size);
53 53
54 void RemovePrivateTagsInternal(const std::set<DicomTag>* toKeep); 54 void RemovePrivateTagsInternal(const std::set<DicomTag>* toKeep);
55 55
56 void UpdateStorageUid(const DicomTag& tag,
57 const std::string& value,
58 bool decodeBinaryTags);
59
56 public: 60 public:
57 ParsedDicomFile(); // Create a minimal DICOM instance 61 ParsedDicomFile(); // Create a minimal DICOM instance
58 62
59 ParsedDicomFile(const char* content, 63 ParsedDicomFile(const char* content,
60 size_t size); 64 size_t size);
74 78
75 void Remove(const DicomTag& tag); 79 void Remove(const DicomTag& tag);
76 80
77 void Insert(const DicomTag& tag, 81 void Insert(const DicomTag& tag,
78 const std::string& value); 82 const std::string& value);
83
84 void Insert(const DicomTag& tag,
85 const Json::Value& value,
86 bool decodeBinaryTags);
87
88 void Replace(const DicomTag& tag,
89 const Json::Value& value,
90 bool decodeBinaryTags,
91 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent);
79 92
80 void Replace(const DicomTag& tag, 93 void Replace(const DicomTag& tag,
81 const std::string& value, 94 const std::string& value,
82 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); 95 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent);
83 96