comparison OrthancServer/FromDcmtkBridge.h @ 956:2fd5a163776d

primitives for proper encoding handling
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Jun 2014 16:08:47 +0200
parents 87791ebc1f50
children 2f76b92addd4
comparison
equal deleted inserted replaced
950:8811abd6aec9 956:2fd5a163776d
42 namespace Orthanc 42 namespace Orthanc
43 { 43 {
44 class FromDcmtkBridge 44 class FromDcmtkBridge
45 { 45 {
46 public: 46 public:
47 static Encoding DetectEncoding(DcmDataset& dataset);
48
47 static void Convert(DicomMap& target, DcmDataset& dataset); 49 static void Convert(DicomMap& target, DcmDataset& dataset);
48 50
49 static DicomTag GetTag(const DcmElement& element); 51 static DicomTag GetTag(const DcmElement& element);
50 52
51 static DicomValue* ConvertLeafElement(DcmElement& element); 53 static DicomValue* ConvertLeafElement(DcmElement& element,
54 Encoding encoding);
52 55
53 static void ToJson(Json::Value& target, 56 static void ToJson(Json::Value& target,
54 DcmDataset& dataset, 57 DcmDataset& dataset,
55 unsigned int maxStringLength = 256); 58 unsigned int maxStringLength = 256);
56 59