32 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmdata/dctypes.h"
35 #include "dcmtk/dcmdata/dcbytstr.h"
36 #include "dcmtk/ofstd/oftime.h"
53 const Uint32 len = 0);
95 virtual DcmEVR
ident()
const;
105 const OFBool oldFormat = OFFalse);
114 const unsigned long pos,
115 OFBool normalize = OFTrue);
128 const OFBool fraction = OFFalse);
148 const unsigned long pos = 0,
149 const OFBool supportOldFormat = OFTrue);
172 const unsigned long pos = 0,
173 const OFBool seconds = OFTrue,
174 const OFBool fraction = OFFalse,
175 const OFBool createMissingPart = OFFalse,
176 const OFBool supportOldFormat = OFTrue);
192 const OFBool seconds = OFTrue,
193 const OFBool fraction = OFFalse);
209 const OFBool seconds = OFTrue,
210 const OFBool fraction = OFFalse);
225 const OFBool supportOldFormat = OFTrue);
245 const OFBool seconds = OFTrue,
246 const OFBool fraction = OFFalse,
247 const OFBool createMissingPart = OFFalse,
248 const OFBool supportOldFormat = OFTrue);
276 const OFBool oldFormat = OFFalse);
static OFCondition getTimeZoneFromString(const OFString &dicomTimeZone, double &timeZone)
get the specified DICOM time zone in number of hours format DICOM standard states that if the "Timezo...
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
This class provides a collection of time functions.
static OFCondition getOFTimeFromString(const OFString &dicomTime, OFTime &timeValue, const OFBool supportOldFormat=OFTrue)
get the specified DICOM time value in OFTime format.
this class encapsulates an attribute tag (group, element) and a VR.
Abstract base class for most classes in module dcmdata.
virtual OFCondition copyFrom(const DcmObject &rhs)
Virtual object copying.
virtual DcmEVR ident() const
get element type identifier
OFCondition getOFTime(OFTime &timeValue, const unsigned long pos=0, const OFBool supportOldFormat=OFTrue)
get the current element value in OFTime format.
base class for all DICOM value representations storing a character string
virtual ~DcmTime()
destructor
static OFCondition getDicomTimeFromOFTime(const OFTime &timeValue, OFString &dicomTime, const OFBool seconds=OFTrue, const OFBool fraction=OFFalse)
get the specified OFTime value in DICOM format.
DcmTime(const DcmTag &tag, const Uint32 len=0)
constructor.
a class representing the DICOM value representation 'Time' (TM)
virtual OFCondition getOFString(OFString &stringValue, const unsigned long pos, OFBool normalize=OFTrue)
get a copy of a particular string component
OFCondition setCurrentTime(const OFBool seconds=OFTrue, const OFBool fraction=OFFalse)
set the element value to the current system time.
DcmTime & operator=(const DcmTime &obj)
assignment operator
static OFCondition checkStringValue(const OFString &value, const OFString &vm="1-n", const OFBool oldFormat=OFFalse)
check whether given string value conforms to the VR "TM" (Time) and to the specified VM...
a simple string class that implements a subset of std::string.
static OFCondition getISOFormattedTimeFromString(const OFString &dicomTime, OFString &formattedTime, const OFBool seconds=OFTrue, const OFBool fraction=OFFalse, const OFBool createMissingPart=OFFalse, const OFBool supportOldFormat=OFTrue)
get the specified DICOM time value in ISO format.
virtual DcmObject * clone() const
clone method
OFCondition setOFTime(const OFTime &timeValue)
set the element value to the given time
OFCondition getISOFormattedTime(OFString &formattedTime, const unsigned long pos=0, const OFBool seconds=OFTrue, const OFBool fraction=OFFalse, const OFBool createMissingPart=OFFalse, const OFBool supportOldFormat=OFTrue)
get the current element value in ISO time format.
static OFCondition getCurrentTime(OFString &dicomTime, const OFBool seconds=OFTrue, const OFBool fraction=OFFalse)
get the current system time.
General purpose class for condition codes.