|
OFFIS DCMTK
Version 3.6.0
|
Class for referenced datetime list. More...
Public Member Functions | |
| DSRReferencedDatetimeList () | |
| default constructor | |
| DSRReferencedDatetimeList (const DSRReferencedDatetimeList &lst) | |
| copy constructor | |
| virtual | ~DSRReferencedDatetimeList () |
| destructor | |
| DSRReferencedDatetimeList & | operator= (const DSRReferencedDatetimeList &lst) |
| assignment operator | |
| OFCondition | print (STD_NAMESPACE ostream &stream, const size_t flags=0, const char separator= ',') const |
| print list of referenced datetime. | |
| OFCondition | read (DcmItem &dataset) |
| read list of referenced datetime | |
| OFCondition | write (DcmItem &dataset) const |
| write list of referenced datetime | |
| OFCondition | putString (const char *stringValue) |
| put list of referenced datetime as a string. | |
Public Member Functions inherited from DSRListOfItems< OFString > | |
| DSRListOfItems () | |
| default constructor | |
| DSRListOfItems (const DSRListOfItems< OFString > &lst) | |
| copy constructor | |
| virtual | ~DSRListOfItems () |
| destructor | |
| DSRListOfItems< OFString > & | operator= (const DSRListOfItems< OFString > &lst) |
| assignment operator | |
| void | clear () |
| clear all internal variables | |
| OFBool | isEmpty () const |
| check whether the list is empty | |
| size_t | getNumberOfItems () const |
| get number of items contained in the list | |
| OFBool | isElement (const OFString &item) const |
| check whether specified item is contained in the list | |
| const OFString & | getItem (const size_t idx) const |
| get reference to the specified item | |
| OFCondition | getItem (const size_t idx, OFString &item) const |
| get copy of the specified item | |
| void | addItem (const OFString &item) |
| add item to the list | |
| void | addOnlyNewItem (const OFString &item) |
| add item to the list only if it's not already contained | |
| OFCondition | insertItem (const size_t idx, const OFString &item) |
| insert item at specified position to the list | |
| OFCondition | removeItem (const size_t idx) |
| remove item from the list | |
Additional Inherited Members | |
Static Public Attributes inherited from DSRListOfItems< OFString > | |
| static const OFString | EmptyItem |
| default item which is returned in getItem() if the index is invalid. | |
Protected Member Functions inherited from DSRListOfItems< OFString > | |
| OFBool | gotoItemPos (size_t idx, OFLIST_TYPENAME OFListConstIterator(OFString)&iterator) const |
| goto specified item position | |
| OFBool | gotoItem (const OFString &item, OFLIST_TYPENAME OFListConstIterator(OFString)&iterator) const |
| goto specified item | |
Protected Attributes inherited from DSRListOfItems< OFString > | |
| OFList< OFString > | ItemList |
| the list maintained by this class | |
Class for referenced datetime list.
Definition at line 48 of file dsrtcodt.h.
| DSRReferencedDatetimeList::DSRReferencedDatetimeList | ( | const DSRReferencedDatetimeList & | lst | ) |
copy constructor
| lst | list to be copied |
| DSRReferencedDatetimeList& DSRReferencedDatetimeList::operator= | ( | const DSRReferencedDatetimeList & | lst | ) |
assignment operator
| lst | list to be copied |
| OFCondition DSRReferencedDatetimeList::print | ( | STD_NAMESPACE ostream & | stream, |
| const size_t | flags = 0, |
||
| const char | separator = ',' |
||
| ) | const |
print list of referenced datetime.
The output of a typical list looks like this: 20001010120000, ...
| stream | output stream to which the list should be printed |
| flags | flag used to customize the output (see DSRTypes::PF_xxx) |
| separator | character specifying the separator between the list items |
| OFCondition DSRReferencedDatetimeList::putString | ( | const char * | stringValue | ) |
put list of referenced datetime as a string.
This function expects the same input format as created by print(), i.e. a comma separated list of datetime values.
| stringValue | string value to be set |
| OFCondition DSRReferencedDatetimeList::read | ( | DcmItem & | dataset | ) |
read list of referenced datetime
| dataset | DICOM dataset from which the list should be read |
| OFCondition DSRReferencedDatetimeList::write | ( | DcmItem & | dataset | ) | const |
write list of referenced datetime
| dataset | DICOM dataset to which the list should be written |