Mercurial > hg > orthanc-webviewer
comparison 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 |
comparison
equal
deleted
inserted
replaced
171:b6c55352818c | 172:330ecfd96aec |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #include <stdint.h> | |
36 #include <string> | 37 #include <string> |
37 #include <boost/noncopyable.hpp> | 38 #include <boost/noncopyable.hpp> |
38 | 39 |
39 #if !defined(ORTHANC_ENABLE_BASE64) | 40 #if !defined(ORTHANC_ENABLE_BASE64) |
40 # error The macro ORTHANC_ENABLE_BASE64 must be defined | 41 # error The macro ORTHANC_ENABLE_BASE64 must be defined |
91 void FormatDataUriScheme(std::string& target) const | 92 void FormatDataUriScheme(std::string& target) const |
92 { | 93 { |
93 FormatDataUriScheme(target, "application/octet-stream"); | 94 FormatDataUriScheme(target, "application/octet-stream"); |
94 } | 95 } |
95 #endif | 96 #endif |
97 | |
98 bool CopyToString(std::string& result, | |
99 bool allowBinary) const; | |
100 | |
101 bool ParseInteger32(int32_t& result) const; | |
102 | |
103 bool ParseInteger64(int64_t& result) const; | |
104 | |
105 bool ParseUnsignedInteger32(uint32_t& result) const; | |
106 | |
107 bool ParseUnsignedInteger64(uint64_t& result) const; | |
108 | |
109 bool ParseFloat(float& result) const; | |
110 | |
111 bool ParseDouble(double& result) const; | |
96 }; | 112 }; |
97 } | 113 } |