Mercurial > hg > orthanc
diff Core/DicomFormat/DicomMap.h @ 2412:cad393b41bc3
handy shortcuts in DicomMap
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 Sep 2017 11:35:45 +0200 |
parents | 96b3ec054b69 |
children | 878b59270859 |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.h Fri Sep 29 10:16:28 2017 +0200 +++ b/Core/DicomFormat/DicomMap.h Fri Sep 29 11:35:45 2017 +0200 @@ -183,5 +183,27 @@ size_t size); void LogMissingTagsForStore() const; + + bool CopyToString(std::string& result, + const DicomTag& tag, + bool allowBinary) const; + + bool ParseInteger32(int32_t& result, + const DicomTag& tag) const; + + bool ParseInteger64(int64_t& result, + const DicomTag& tag) const; + + bool ParseUnsignedInteger32(uint32_t& result, + const DicomTag& tag) const; + + bool ParseUnsignedInteger64(uint64_t& result, + const DicomTag& tag) const; + + bool ParseFloat(float& result, + const DicomTag& tag) const; + + bool ParseDouble(double& result, + const DicomTag& tag) const; }; }