DCMTK
Version 3.6.1 20170228
OFFIS DICOM Toolkit
|
Class for waveform channel lists. More...
Public Member Functions | |
DSRWaveformChannelList () | |
default constructor | |
DSRWaveformChannelList (const DSRWaveformChannelList &lst) | |
copy constructor More... | |
virtual | ~DSRWaveformChannelList () |
destructor | |
DSRWaveformChannelList & | operator= (const DSRWaveformChannelList &lst) |
assignment operator More... | |
OFCondition | print (STD_NAMESPACE ostream &stream, const size_t flags=0, const char pairSeparator= '/', const char itemSeparator= ',') const |
print list of waveform channels. More... | |
OFCondition | read (DcmItem &dataset, const size_t flags) |
read list of waveform channels More... | |
OFCondition | write (DcmItem &dataset) const |
write list of waveform channels More... | |
OFBool | isElement (const Uint16 multiplexGroupNumber, const Uint16 channelNumber) const |
check whether specified value pair is contained in the list More... | |
OFCondition | getItem (const size_t idx, Uint16 &multiplexGroupNumber, Uint16 &channelNumber) const |
get copy of the specified value pair More... | |
void | addItem (const Uint16 multiplexGroupNumber, const Uint16 channelNumber) |
add value pair to the list More... | |
OFCondition | putString (const char *stringValue) |
put list of waveform channels as a string. More... | |
![]() | |
DSRListOfItems () | |
default constructor | |
DSRListOfItems (const DSRListOfItems< DSRWaveformChannelItem > &lst) | |
copy constructor More... | |
virtual | ~DSRListOfItems () |
destructor | |
DSRListOfItems < DSRWaveformChannelItem > & | operator= (const DSRListOfItems< DSRWaveformChannelItem > &lst) |
assignment operator More... | |
void | clear () |
clear all internal variables | |
OFBool | isEmpty () const |
check whether the list is empty More... | |
size_t | getNumberOfItems () const |
get number of items contained in the list More... | |
OFBool | isElement (const DSRWaveformChannelItem &item) const |
check whether specified item is contained in the list More... | |
const DSRWaveformChannelItem & | getItem (const size_t idx) const |
get reference to the specified item More... | |
OFCondition | getItem (const size_t idx, DSRWaveformChannelItem &item) const |
get copy of the specified item More... | |
OFCondition | getItems (OFVector< DSRWaveformChannelItem > &items) const |
get copy of all items (as a vector) More... | |
void | addItem (const DSRWaveformChannelItem &item) |
add item to the list More... | |
void | addOnlyNewItem (const DSRWaveformChannelItem &item) |
add item to the list only if it's not already contained More... | |
void | addItems (const OFVector< DSRWaveformChannelItem > &items) |
add items to the list More... | |
OFCondition | insertItem (const size_t idx, const DSRWaveformChannelItem &item) |
insert item at specified position to the list More... | |
OFCondition | removeItem (const size_t idx) |
remove item from the list More... | |
Additional Inherited Members | |
![]() | |
static const DSRWaveformChannelItem | EmptyItem |
default item which is returned in getItem() if the index is invalid. More... | |
![]() | |
OFBool | gotoItemPos (size_t idx, OFLIST_TYPENAME OFListConstIterator(DSRWaveformChannelItem)&iterator) const |
goto specified item position More... | |
OFBool | gotoItem (const DSRWaveformChannelItem &item, OFLIST_TYPENAME OFListConstIterator(DSRWaveformChannelItem)&iterator) const |
goto specified item More... | |
![]() | |
OFList< DSRWaveformChannelItem > | ItemList |
the list maintained by this class | |
Class for waveform channel lists.
DSRWaveformChannelList::DSRWaveformChannelList | ( | const DSRWaveformChannelList & | lst | ) |
copy constructor
lst | list to be copied |
void DSRWaveformChannelList::addItem | ( | const Uint16 | multiplexGroupNumber, |
const Uint16 | channelNumber | ||
) |
add value pair to the list
multiplexGroupNumber | multiplex group number to be added |
channelNumber | channel number to be added |
OFCondition DSRWaveformChannelList::getItem | ( | const size_t | idx, |
Uint16 & | multiplexGroupNumber, | ||
Uint16 & | channelNumber | ||
) | const |
get copy of the specified value pair
idx | index of the value pair to be returned (starting from 1) |
multiplexGroupNumber | multiplex group number of the specified index (set to 0) |
channelNumber | channel number of the specified index (set to 0 first) |
OFBool DSRWaveformChannelList::isElement | ( | const Uint16 | multiplexGroupNumber, |
const Uint16 | channelNumber | ||
) | const |
check whether specified value pair is contained in the list
multiplexGroupNumber | multiplex group number to be checked |
channelNumber | channel number to be checked |
DSRWaveformChannelList& DSRWaveformChannelList::operator= | ( | const DSRWaveformChannelList & | lst | ) |
assignment operator
lst | list to be copied |
OFCondition DSRWaveformChannelList::print | ( | STD_NAMESPACE ostream & | stream, |
const size_t | flags = 0 , |
||
const char | pairSeparator = '/' , |
||
const char | itemSeparator = ',' |
||
) | const |
print list of waveform channels.
The output of a typical list looks like this: 1/2,3/4,5/6
stream | output stream to which the list should be printed |
flags | flag used to customize the output (see DSRTypes::PF_xxx) |
pairSeparator | character specifying the separator between the value pairs |
itemSeparator | character specifying the separator between the list items |
OFCondition DSRWaveformChannelList::putString | ( | const char * | stringValue | ) |
put list of waveform channels as a string.
This function expects the same input format as created by print(), i.e. a comma separated list of numerical value pairs.
stringValue | string value to be set |
OFCondition DSRWaveformChannelList::read | ( | DcmItem & | dataset, |
const size_t | flags | ||
) |
read list of waveform channels
dataset | DICOM dataset from which the list should be read |
flags | flag used to customize the reading process (see DSRTypes::RF_xxx) |
OFCondition DSRWaveformChannelList::write | ( | DcmItem & | dataset | ) | const |
write list of waveform channels
dataset | DICOM dataset to which the list should be written |