Parse a DICOM DT-format string ("YYYYMMDDHHMMSS[.FFFFFF][&ZZXX]") into an OFDateTime. Returns true on success.
| 209 | // Parse a DICOM DT-format string ("YYYYMMDDHHMMSS[.FFFFFF][&ZZXX]") into |
| 210 | // an OFDateTime. Returns true on success. |
| 211 | bool ParseDICOMDateTime(const std::string& dt, OFDateTime& out) |
| 212 | { |
| 213 | return DcmDateTime::getOFDateTimeFromString(OFString(dt.c_str()), out).good(); |
| 214 | } |
| 215 | |
| 216 | // Read a numeric DICOM tag at (timestep, slice). Returns NaN if the tag |
| 217 | // is absent at that slot or cannot be parsed. |
no outgoing calls
no test coverage detected