comparison OrthancFramework/Sources/SerializationToolbox.h @ 4775:add0337b928a

refactoring parsing of numbers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Aug 2021 10:24:36 +0200
parents f4dbdb2dcba6
children 7053502fbf97
comparison
equal deleted inserted replaced
4771:9f207131c7f4 4775:add0337b928a
99 const std::string& field); 99 const std::string& field);
100 100
101 static void WriteMapOfTags(Json::Value& target, 101 static void WriteMapOfTags(Json::Value& target,
102 const std::map<DicomTag, std::string>& values, 102 const std::map<DicomTag, std::string>& values,
103 const std::string& field); 103 const std::string& field);
104
105 static bool ParseInteger32(int32_t& result,
106 const std::string& value);
107
108 static bool ParseInteger64(int64_t& result,
109 const std::string& value);
110
111 static bool ParseUnsignedInteger32(uint32_t& result,
112 const std::string& value);
113
114 static bool ParseUnsignedInteger64(uint64_t& result,
115 const std::string& value);
116
117 static bool ParseFloat(float& result,
118 const std::string& value);
119
120 static bool ParseDouble(double& result,
121 const std::string& value);
122
123 static bool ParseFirstInteger32(int32_t& result,
124 const std::string& value);
125
126 static bool ParseFirstInteger64(int64_t& result,
127 const std::string& value);
128
129 static bool ParseFirstUnsignedInteger32(uint32_t& result,
130 const std::string& value);
131
132 static bool ParseFirstUnsignedInteger64(uint64_t& result,
133 const std::string& value);
134
135 static bool ParseFirstFloat(float& result,
136 const std::string& value);
137
138 static bool ParseFirstDouble(double& result,
139 const std::string& value);
104 }; 140 };
105 } 141 }