comparison Core/DicomFormat/DicomMap.h @ 2007:655489d9165d

DicomMap::ParseDicomMetaInformation()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 09 Jun 2016 15:46:33 +0200
parents b1291df2f780
children dc82c754dcaa
comparison
equal deleted inserted replaced
2006:6301bbcbcaed 2007:655489d9165d
100 { 100 {
101 SetValue(tag, value.Clone()); 101 SetValue(tag, value.Clone());
102 } 102 }
103 103
104 void SetValue(const DicomTag& tag, 104 void SetValue(const DicomTag& tag,
105 const std::string& str) 105 const std::string& str,
106 bool isBinary)
106 { 107 {
107 SetValue(tag, new DicomValue(str, false)); 108 SetValue(tag, new DicomValue(str, isBinary));
108 } 109 }
109 110
110 void SetValue(uint16_t group, 111 void SetValue(uint16_t group,
111 uint16_t element, 112 uint16_t element,
112 const std::string& str) 113 const std::string& str,
114 bool isBinary)
113 { 115 {
114 SetValue(group, element, new DicomValue(str, false)); 116 SetValue(group, element, new DicomValue(str, isBinary));
115 } 117 }
116 118
117 bool HasTag(uint16_t group, uint16_t element) const 119 bool HasTag(uint16_t group, uint16_t element) const
118 { 120 {
119 return HasTag(DicomTag(group, element)); 121 return HasTag(DicomTag(group, element));
174 void GetTags(std::set<DicomTag>& tags) const; 176 void GetTags(std::set<DicomTag>& tags) const;
175 177
176 static void LoadMainDicomTags(const DicomTag*& tags, 178 static void LoadMainDicomTags(const DicomTag*& tags,
177 size_t& size, 179 size_t& size,
178 ResourceType level); 180 ResourceType level);
181
182 static bool ParseDicomMetaInformation(DicomMap& result,
183 const char* dicom,
184 size_t size);
179 }; 185 };
180 } 186 }