17#ifndef __file_dicom_dict_h__
18#define __file_dicom_dict_h__
48#define LENGTH_UNDEFINED 0xFFFFFFFFUL
50#define GROUP_BYTE_ORDER 0x0002U
51#define GROUP_BYTE_ORDER_SWAPPED 0x0200U
52#define GROUP_SEQUENCE 0xFFFEU
53#define GROUP_DATA 0x7FE0U
55#define ELEMENT_TRANSFER_SYNTAX_UID 0x0010U
56#define ELEMENT_SEQUENCE_ITEM 0xE000U
57#define ELEMENT_SEQUENCE_DELIMITATION_ITEM 0xE0DDU
58#define ELEMENT_DATA 0x0010U
68 if (date.empty() || date.size() < 8)
70 return date.substr(6,2) +
"/" + date.substr(4,2) +
"/" + date.substr(0,4);
79 return time.substr(0,2) +
":" + time.substr(2,2) +
":" + time.substr(4,2);
84 inline std::string
format_ID (
const std::string& ID)
88 return "(" + ID +
")";
std::string format_time(const std::string &time)
std::string format_ID(const std::string &ID)
std::string format_date(const std::string &date)