Inheritance diagram for DcmDate:
Public Member Functions | |
DcmDate (const DcmTag &tag, const Uint32 len=0) | |
constructor. | |
DcmDate (const DcmDate &old) | |
copy constructor | |
virtual | ~DcmDate () |
destructor | |
DcmDate & | operator= (const DcmDate &obj) |
assignment operator | |
virtual DcmEVR | ident () const |
get element type identifier | |
virtual OFCondition | getOFString (OFString &stringVal, const unsigned long pos, OFBool normalize=OFTrue) |
get a copy of a particular string component | |
OFCondition | setCurrentDate () |
set the element value to the current system date. | |
OFCondition | setOFDate (const OFDate &dateValue) |
set the element value to the given date | |
OFCondition | getOFDate (OFDate &dateValue, const unsigned long pos=0, const OFBool supportOldFormat=OFTrue) |
get the current element value in OFDate format. | |
OFCondition | getISOFormattedDate (OFString &formattedDate, const unsigned long pos=0, const OFBool supportOldFormat=OFTrue) |
get the current element value in ISO date format. | |
Static Public Member Functions | |
OFCondition | getCurrentDate (OFString &dicomDate) |
get the current system date. | |
OFCondition | getDicomDateFromOFDate (const OFDate &dateValue, OFString &dicomDate) |
get the specified OFDate value in DICOM format. | |
OFCondition | getOFDateFromString (const OFString &dicomDate, OFDate &dateValue, const OFBool supportOldFormat=OFTrue) |
get the specified DICOM date value in OFDate format. | |
OFCondition | getISOFormattedDateFromString (const OFString &dicomDate, OFString &formattedDate, const OFBool supportOldFormat=OFTrue) |
get the specified DICOM date value in ISO format. |
Definition at line 46 of file dcvrda.h.
|
constructor. Create new element from given tag and length.
|
|
copy constructor
|
|
get the current system date. The DICOM DA format supported by this function is "YYYYMMDD". If the current system date is unavailable the date is set to "19000101" and an error code is returned.
|
|
get the specified OFDate value in DICOM format. The DICOM DA format supported by this function is "YYYYMMDD". If the specified date is invalid the date is set to "19000101" and an error code is returned.
|
|
get the current element value in ISO date format. The ISO date format supported by this function is "YYYY-MM-DD". Please note that the element value is expected to be in valid DICOM DA format ("YYYYMMDD", "YYYY.MM.DD" is also supported for reasons of backward compatibility). If this function fails the result variable 'formattedDate' is cleared automatically.
|
|
get the specified DICOM date value in ISO format. The ISO date format supported by this function is "YYYY-MM-DD". Please note that the specified value is expected to be in valid DICOM DA format ("YYYYMMDD", "YYYY.MM.DD" is also supported for reasons of backward compatibility). If this function fails the result variable 'formattedDate' is cleared automatically.
|
|
get the current element value in OFDate format. Please note that the element value is expected to be in valid DICOM DA format ("YYYYMMDD", "YYYY.MM.DD" is also supported for reasons of backward compatibility). If this function fails the result variable 'dateValue' is cleared automatically.
|
|
get the specified DICOM date value in OFDate format. Please note that the specified value is expected to be in valid DICOM DA format ("YYYYMMDD", "YYYY.MM.DD" is also supported for reasons of backward compatibility). If this function fails the result variable 'dateValue' is cleared automatically.
|
|
get a copy of a particular string component
Reimplemented from DcmByteString.
|
|
get element type identifier
Reimplemented from DcmByteString.
|
|
assignment operator
|
|
set the element value to the current system date. The DICOM DA format supported by this function is "YYYYMMDD". If the current system date is unavailable the date is set to "19000101" and an error code is returned.
|
|
set the element value to the given date
|