Mercurial > hg > orthanc-webviewer
diff Orthanc/Core/DicomFormat/DicomValue.h @ 172:330ecfd96aec
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Oct 2017 12:53:46 +0200 |
parents | 5dc54316d68b |
children | dd1ad819ca33 |
line wrap: on
line diff
--- a/Orthanc/Core/DicomFormat/DicomValue.h Thu Aug 24 19:49:20 2017 +0200 +++ b/Orthanc/Core/DicomFormat/DicomValue.h Tue Oct 10 12:53:46 2017 +0200 @@ -33,6 +33,7 @@ #pragma once +#include <stdint.h> #include <string> #include <boost/noncopyable.hpp> @@ -93,5 +94,20 @@ FormatDataUriScheme(target, "application/octet-stream"); } #endif + + bool CopyToString(std::string& result, + bool allowBinary) const; + + bool ParseInteger32(int32_t& result) const; + + bool ParseInteger64(int64_t& result) const; + + bool ParseUnsignedInteger32(uint32_t& result) const; + + bool ParseUnsignedInteger64(uint64_t& result) const; + + bool ParseFloat(float& result) const; + + bool ParseDouble(double& result) const; }; }