comparison Core/DicomFormat/DicomValue.cpp @ 2412:cad393b41bc3

handy shortcuts in DicomMap
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 29 Sep 2017 11:35:45 +0200
parents 3590c936e56f
children 878b59270859
comparison
equal deleted inserted replaced
2411:82d5e305fbd9 2412:cad393b41bc3
173 173
174 bool DicomValue::ParseDouble(double& result) const 174 bool DicomValue::ParseDouble(double& result) const
175 { 175 {
176 return ParseValue<double, true>(result, *this); 176 return ParseValue<double, true>(result, *this);
177 } 177 }
178
179 bool DicomValue::CopyToString(std::string& result,
180 bool allowBinary) const
181 {
182 if (IsNull())
183 {
184 return false;
185 }
186 else if (IsBinary() && !allowBinary)
187 {
188 return false;
189 }
190 else
191 {
192 result.assign(content_);
193 return true;
194 }
195 }
178 } 196 }