|
DCMTK Version 3.6.9
OFFIS DICOM Toolkit
|
Class for referenced sample position list. More...
Inheritance diagram for DSRReferencedSamplePositionList:Public Member Functions | |
| DSRReferencedSamplePositionList () | |
| default constructor | |
| DSRReferencedSamplePositionList (const DSRReferencedSamplePositionList &lst) | |
| copy constructor | |
| virtual | ~DSRReferencedSamplePositionList () |
| destructor | |
| DSRReferencedSamplePositionList & | operator= (const DSRReferencedSamplePositionList &lst) |
| assignment operator | |
| OFCondition | print (STD_NAMESPACE ostream &stream, const size_t flags=0, const char separator=',') const |
| print list of referenced sample positions. | |
| OFCondition | read (DcmItem &dataset, const size_t flags) |
| read list of referenced sample positions | |
| OFCondition | write (DcmItem &dataset) const |
| write list of referenced sample positions | |
| OFCondition | putString (const char *stringValue) |
| put list of referenced sample positions as a string. | |
Public Member Functions inherited from DSRListOfItems< Uint32 > | |
| DSRListOfItems () | |
| default constructor | |
| DSRListOfItems (const DSRListOfItems< Uint32 > &lst) | |
| copy constructor | |
| virtual | ~DSRListOfItems () |
| destructor | |
| DSRListOfItems< Uint32 > & | operator= (const DSRListOfItems< Uint32 > &lst) |
| assignment operator | |
| OFBool | operator== (const DSRListOfItems< Uint32 > &lst) const |
| comparison operator "equal" | |
| OFBool | operator!= (const DSRListOfItems< Uint32 > &lst) const |
| comparison operator "not equal" | |
| 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 Uint32 &item) const |
| check whether specified item is contained in the list | |
| const Uint32 & | getItem (const size_t idx) const |
| get reference to the specified item | |
| OFCondition | getItem (const size_t idx, Uint32 &item) const |
| get copy of the specified item | |
| OFCondition | getItems (OFVector< Uint32 > &items) const |
| get copy of all items (as a vector) | |
| void | addItem (const Uint32 &item) |
| add item to the list | |
| void | addOnlyNewItem (const Uint32 &item) |
| add item to the list only if it's not already contained | |
| void | addItems (const OFVector< Uint32 > &items) |
| add items to the list | |
| OFCondition | insertItem (const size_t idx, const Uint32 &item) |
| insert item at specified position to the list | |
| OFCondition | removeItem (const size_t idx) |
| remove item from the list | |
Additional Inherited Members | |
Protected Member Functions inherited from DSRListOfItems< Uint32 > | |
| OFBool | gotoItemPos (size_t idx, OFLIST_TYPENAME OFListConstIterator(Uint32) &iterator) const |
| goto specified item position | |
| OFBool | gotoItem (const Uint32 &item, OFLIST_TYPENAME OFListConstIterator(Uint32) &iterator) const |
| goto specified item | |
Protected Attributes inherited from DSRListOfItems< Uint32 > | |
| OFList< Uint32 > | ItemList |
| the list maintained by this class | |
Class for referenced sample position list.
| DSRReferencedSamplePositionList::DSRReferencedSamplePositionList | ( | const DSRReferencedSamplePositionList & | lst | ) |
| DSRReferencedSamplePositionList & DSRReferencedSamplePositionList::operator= | ( | const DSRReferencedSamplePositionList & | lst | ) |
assignment operator
| lst | list to be copied |
References DSRReferencedSamplePositionList().
| OFCondition DSRReferencedSamplePositionList::print | ( | STD_NAMESPACE ostream & | stream, |
| const size_t | flags = 0, | ||
| const char | separator = ',' ) const |
print list of referenced sample positions.
The output of a typical list looks like this: 1,2,3 or 1,... if shortened.
| 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 DSRReferencedSamplePositionList::putString | ( | const char * | stringValue | ) |
put list of referenced sample positions as a string.
This function expects the same input format as created by print(), i.e. a comma separated list of numerical values.
| stringValue | string value to be set |
| OFCondition DSRReferencedSamplePositionList::read | ( | DcmItem & | dataset, |
| const size_t | flags ) |
read list of referenced sample positions
| dataset | DICOM dataset from which the list should be read |
| flags | flag used to customize the reading process (see DSRTypes::RF_xxx) |
| OFCondition DSRReferencedSamplePositionList::write | ( | DcmItem & | dataset | ) | const |
write list of referenced sample positions
| dataset | DICOM dataset to which the list should be written |