32 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/dcmdata/dcbytstr.h" 35 #include "dcmtk/ofstd/ofdatime.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);
130 const OFBool fraction = OFFalse,
131 const OFBool timeZone = OFFalse);
149 const unsigned long pos = 0);
170 const unsigned long pos = 0,
171 const OFBool seconds = OFTrue,
172 const OFBool fraction = OFFalse,
173 const OFBool timeZone = OFTrue,
174 const OFBool createMissingPart = OFFalse);
195 const unsigned long pos ,
196 const OFBool seconds ,
197 const OFBool fraction ,
198 const OFBool timeZone ,
199 const OFBool createMissingPart ,
200 const OFString &dateTimeSeparator );
219 const OFBool seconds = OFTrue,
220 const OFBool fraction = OFFalse,
221 const OFBool timeZone = OFFalse);
240 const OFBool seconds = OFTrue,
241 const OFBool fraction = OFFalse,
242 const OFBool timeZone = OFFalse);
276 const OFBool seconds = OFTrue,
277 const OFBool fraction = OFFalse,
278 const OFBool timeZone = OFTrue,
279 const OFBool createMissingPart = OFFalse);
301 const OFBool seconds ,
302 const OFBool fraction ,
303 const OFBool timeZone ,
304 const OFBool createMissingPart ,
305 const OFString &dateTimeSeparator );
OFCondition setOFDateTime(const OFDateTime &dateTimeValue)
set the element value to the given date and time
OFCondition getISOFormattedDateTime(OFString &formattedDateTime, const unsigned long pos=0, const OFBool seconds=OFTrue, const OFBool fraction=OFFalse, const OFBool timeZone=OFTrue, const OFBool createMissingPart=OFFalse)
get the current element value in ISO date/time format.
virtual DcmEVR ident() const
get element type identifier
static OFCondition getCurrentDateTime(OFString &dicomDateTime, const OFBool seconds=OFTrue, const OFBool fraction=OFFalse, const OFBool timeZone=OFFalse)
get the current system date and time.
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
virtual OFCondition getOFString(OFString &stringValue, const unsigned long pos, OFBool normalize=OFTrue)
get a copy of a particular string component
OFCondition setCurrentDateTime(const OFBool seconds=OFTrue, const OFBool fraction=OFFalse, const OFBool timeZone=OFFalse)
set the element value to the current system date and time.
DcmDateTime & operator=(const DcmDateTime &obj)
assignment operator
DcmDateTime(const DcmTag &tag, const Uint32 len=0)
constructor.
this class encapsulates an attribute tag (group, element) and a VR.
Abstract base class for most classes in module dcmdata.
static OFCondition getOFDateTimeFromString(const OFString &dicomDateTime, OFDateTime &dateTimeValue)
get the specified DICOM date and time value in OFDateTime format.
base class for all DICOM value representations storing a character string
virtual ~DcmDateTime()
destructor
This class is a combination of OFDate and OFTime.
static OFCondition getISOFormattedDateTimeFromString(const OFString &dicomDateTime, OFString &formattedDateTime, const OFBool seconds=OFTrue, const OFBool fraction=OFFalse, const OFBool timeZone=OFTrue, const OFBool createMissingPart=OFFalse)
get the specified DICOM datetime value in ISO format.
a simple string class that implements a subset of std::string.
a class representing the DICOM value representation 'Date Time' (DT)
OFCondition getOFDateTime(OFDateTime &dateTimeValue, const unsigned long pos=0)
get the current element value in OFDateTime format.
virtual OFCondition copyFrom(const DcmObject &rhs)
Virtual object copying.
static OFCondition getDicomDateTimeFromOFDateTime(const OFDateTime &dateTimeValue, OFString &dicomDateTime, const OFBool seconds=OFTrue, const OFBool fraction=OFFalse, const OFBool timeZone=OFFalse)
get the specified OFDateTime value in DICOM format.
virtual DcmObject * clone() const
clone method
static OFCondition checkStringValue(const OFString &value, const OFString &vm="1-n")
check whether given string value conforms to the VR "DT" (Date Time) and to the specified VM...
General purpose class for condition codes.