Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomFormat/DicomValue.cpp @ 5323:138e9d0c08c1
added DicomMap::GuessPixelDataValueRepresentation()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 25 Jun 2023 12:29:39 +0200 |
parents | 0ea402b4d901 |
children | 48b8dae6dc77 |
comparison
equal
deleted
inserted
replaced
5322:a904a4caf5b7 | 5323:138e9d0c08c1 |
---|---|
64 | 64 |
65 DicomValue::DicomValue(const Json::Value& value) : | 65 DicomValue::DicomValue(const Json::Value& value) : |
66 type_(Type_SequenceAsJson), | 66 type_(Type_SequenceAsJson), |
67 sequenceJson_(value) | 67 sequenceJson_(value) |
68 { | 68 { |
69 if (value.type() != Json::arrayValue) | |
70 { | |
71 throw OrthancException(ErrorCode_BadParameterType); | |
72 } | |
69 } | 73 } |
70 | 74 |
71 const std::string& DicomValue::GetContent() const | 75 const std::string& DicomValue::GetContent() const |
72 { | 76 { |
73 if (type_ == Type_Null || type_ == Type_SequenceAsJson) | 77 if (type_ == Type_Null || type_ == Type_SequenceAsJson) |