comparison OrthancServer/FromDcmtkBridge.h @ 2006:6301bbcbcaed

more generic support of value representations
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 09 Jun 2016 14:48:40 +0200
parents 9b61701c35f2
children a657f7772e69
comparison
equal deleted inserted replaced
2005:9e021b2b348b 2006:6301bbcbcaed
48 { 48 {
49 public: 49 public:
50 static void InitializeDictionary(); 50 static void InitializeDictionary();
51 51
52 static void RegisterDictionaryTag(const DicomTag& tag, 52 static void RegisterDictionaryTag(const DicomTag& tag,
53 const DcmEVR& vr, 53 ValueRepresentation vr,
54 const std::string& name, 54 const std::string& name,
55 unsigned int minMultiplicity, 55 unsigned int minMultiplicity,
56 unsigned int maxMultiplicity); 56 unsigned int maxMultiplicity);
57 57
58 static Encoding DetectEncoding(DcmItem& dataset, 58 static Encoding DetectEncoding(DcmItem& dataset,
129 static std::string GenerateUniqueIdentifier(ResourceType level); 129 static std::string GenerateUniqueIdentifier(ResourceType level);
130 130
131 static bool SaveToMemoryBuffer(std::string& buffer, 131 static bool SaveToMemoryBuffer(std::string& buffer,
132 DcmDataset& dataSet); 132 DcmDataset& dataSet);
133 133
134 static ValueRepresentation GetValueRepresentation(const DicomTag& tag); 134 static ValueRepresentation Convert(DcmEVR vr);
135
136 static ValueRepresentation LookupValueRepresentation(const DicomTag& tag);
135 137
136 static DcmElement* CreateElementForTag(const DicomTag& tag); 138 static DcmElement* CreateElementForTag(const DicomTag& tag);
137 139
138 static void FillElementWithString(DcmElement& element, 140 static void FillElementWithString(DcmElement& element,
139 const DicomTag& tag, 141 const DicomTag& tag,
143 145
144 static DcmElement* FromJson(const DicomTag& tag, 146 static DcmElement* FromJson(const DicomTag& tag,
145 const Json::Value& element, // Encoded using UTF-8 147 const Json::Value& element, // Encoded using UTF-8
146 bool decodeDataUriScheme, 148 bool decodeDataUriScheme,
147 Encoding dicomEncoding); 149 Encoding dicomEncoding);
148
149 static DcmEVR ParseValueRepresentation(const std::string& s);
150 150
151 static DcmPixelSequence* GetPixelSequence(DcmDataset& dataset); 151 static DcmPixelSequence* GetPixelSequence(DcmDataset& dataset);
152 152
153 static Encoding ExtractEncoding(const Json::Value& json, 153 static Encoding ExtractEncoding(const Json::Value& json,
154 Encoding defaultEncoding); 154 Encoding defaultEncoding);