32 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmdata/dcbytstr.h"
35 #include "dcmtk/ofstd/ofdate.h"
52 const Uint32 len = 0);
94 virtual DcmEVR
ident()
const;
104 const OFBool oldFormat = OFFalse);
113 const unsigned long pos,
114 OFBool normalize = OFTrue);
140 const unsigned long pos = 0,
141 const OFBool supportOldFormat = OFTrue);
154 const unsigned long pos = 0,
155 const OFBool supportOldFormat = OFTrue);
189 const OFBool supportOldFormat = OFTrue);
203 const OFBool supportOldFormat = OFTrue);
216 const OFBool oldFormat = OFFalse);
OFCondition setCurrentDate()
set the element value to the current system date.
OFCondition getISOFormattedDate(OFString &formattedDate, const unsigned long pos=0, const OFBool supportOldFormat=OFTrue)
get the current element value in ISO date format.
virtual OFCondition copyFrom(const DcmObject &rhs)
Virtual object copying.
OFCondition getOFDate(OFDate &dateValue, const unsigned long pos=0, const OFBool supportOldFormat=OFTrue)
get the current element value in OFDate format.
virtual DcmEVR ident() const
get element type identifier
this class encapsulates an attribute tag (group, element) and a VR.
a class representing the DICOM value representation 'Date' (DA)
Abstract base class for most classes in module dcmdata.
OFCondition setOFDate(const OFDate &dateValue)
set the element value to the given date
static OFCondition checkStringValue(const OFString &value, const OFString &vm="1-n", const OFBool oldFormat=OFFalse)
check whether given string value conforms to the VR "DA" (Date) and to the specified VM...
virtual ~DcmDate()
destructor
DcmDate & operator=(const DcmDate &obj)
assignment operator
virtual OFCondition checkValue(const OFString &vm="1-n", const OFBool oldFormat=OFFalse)
check whether stored value conforms to the VR and to the specified VM
DcmDate(const DcmTag &tag, const Uint32 len=0)
constructor.
base class for all DICOM value representations storing a character string
static OFCondition getCurrentDate(OFString &dicomDate)
get the current system date.
This class provides a collection of date functions.
static OFCondition getISOFormattedDateFromString(const OFString &dicomDate, OFString &formattedDate, const OFBool supportOldFormat=OFTrue)
get the specified DICOM date value in ISO format.
a simple string class that implements a subset of std::string.
static OFCondition getDicomDateFromOFDate(const OFDate &dateValue, OFString &dicomDate)
get the specified OFDate value in DICOM format.
virtual DcmObject * clone() const
clone method
virtual OFCondition getOFString(OFString &stringVal, const unsigned long pos, OFBool normalize=OFTrue)
get a copy of a particular string component
General purpose class for condition codes.
static OFCondition getOFDateFromString(const OFString &dicomDate, OFDate &dateValue, const OFBool supportOldFormat=OFTrue)
get the specified DICOM date value in OFDate format.