Mercurial > hg > orthanc
diff Core/DicomFormat/DicomMap.h @ 3518:a57c8163d9ae
DicomMap::GetStringValue()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Sep 2019 17:00:59 +0200 |
parents | 109631ed3564 |
children | 173c7f363d8f |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.h Wed Sep 11 13:22:07 2019 +0200 +++ b/Core/DicomFormat/DicomMap.h Wed Sep 11 17:00:59 2019 +0200 @@ -198,9 +198,9 @@ void LogMissingTagsForStore() const; - bool CopyToString(std::string& result, - const DicomTag& tag, - bool allowBinary) const; + bool LookupStringValue(std::string& result, + const DicomTag& tag, + bool allowBinary) const; bool ParseInteger32(int32_t& result, const DicomTag& tag) const; @@ -233,5 +233,11 @@ void Unserialize(const Json::Value& source); void FromDicomWeb(const Json::Value& source); + + std::string GetStringValue(const DicomTag& tag, + const std::string& defaultValue, + bool allowBinary) const; + + void Print(FILE* fp) const; // For debugging only }; }