DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
Class that manages a list of SOP instances significantly related to the current SR document. More...
Classes | |
struct | ItemStruct |
Internal structure defining the list items. More... | |
Public Member Functions | |
DSRReferencedInstanceList () | |
constructor (default) | |
~DSRReferencedInstanceList () | |
destructor | |
void | clear () |
clear the list | |
OFBool | empty () const |
check whether list is empty | |
size_t | getNumberOfItems () const |
get number of items stored in the list | |
OFCondition | read (DcmItem &dataset) |
read list of items from the referenced instance sequence | |
OFCondition | write (DcmItem &dataset) const |
write list of items to the referenced instance sequence. | |
OFCondition | readXML (const DSRXMLDocument &doc, DSRXMLCursor cursor, const size_t flags) |
read list of items from XML document | |
OFCondition | writeXML (STD_NAMESPACE ostream &stream, const size_t flags=0) const |
write current list in XML format | |
OFCondition | addItem (const OFString &sopClassUID, const OFString &instanceUID) |
add new entry to the list of instances (if not already existent). | |
OFCondition | removeItem () |
remove the current item from the list. | |
OFCondition | removeItem (const OFString &sopClassUID, const OFString &instanceUID) |
remove the specified item from the list. | |
OFCondition | gotoItem (const OFString &sopClassUID, const OFString &instanceUID) |
select the specified item as the current one | |
OFCondition | gotoFirstItem () |
select the first item in the list | |
OFCondition | gotoNextItem () |
select the next item in the list | |
const OFString & | getSOPClassUID (OFString &stringValue) const |
get the SOP class UID of the currently selected entry | |
const OFString & | getSOPInstanceUID (OFString &stringValue) const |
get the SOP instance UID of the currently selected entry | |
OFCondition | getPurposeOfReference (DSRCodedEntryValue &codeValue) const |
get purpose of reference code of the currently selected entry | |
OFCondition | setPurposeOfReference (const DSRCodedEntryValue &codeValue) |
set purpose of reference code of the currently selected entry. | |
Protected Member Functions | |
OFCondition | addItem (const OFString &sopClassUID, const OFString &instanceUID, ItemStruct *&item) |
add the specified SOP instance to the list (if not existent) | |
ItemStruct * | getCurrentItem () const |
get pointer to currently selected item structure (if any) | |
Private Member Functions | |
OFListIterator (ItemStruct *) Iterator | |
internal cursor to current (selected) list item | |
DSRReferencedInstanceList (const DSRReferencedInstanceList &) | |
DSRReferencedInstanceList & | operator= (const DSRReferencedInstanceList &) |
Private Attributes | |
OFList< ItemStruct * > | ItemList |
list of items |
Class that manages a list of SOP instances significantly related to the current SR document.
An implementation of the Referenced Instance Sequence.
OFCondition DSRReferencedInstanceList::addItem | ( | const OFString & | sopClassUID, |
const OFString & | instanceUID | ||
) |
add new entry to the list of instances (if not already existent).
Finally, the specified item is selected as the current one.
sopClassUID | SOP class UID of the entry to be added |
instanceUID | SOP instance UID of the entry to be added |
OFCondition DSRReferencedInstanceList::addItem | ( | const OFString & | sopClassUID, |
const OFString & | instanceUID, | ||
ItemStruct *& | item | ||
) | [protected] |
add the specified SOP instance to the list (if not existent)
sopClassUID | SOP class UID of the entry to be added |
instanceUID | SOP instance UID of the entry to be added |
item | reference to item pointer (result variable) |
OFBool DSRReferencedInstanceList::empty | ( | ) | const |
check whether list is empty
ItemStruct* DSRReferencedInstanceList::getCurrentItem | ( | ) | const [protected] |
get pointer to currently selected item structure (if any)
size_t DSRReferencedInstanceList::getNumberOfItems | ( | ) | const |
get number of items stored in the list
OFCondition DSRReferencedInstanceList::getPurposeOfReference | ( | DSRCodedEntryValue & | codeValue | ) | const |
get purpose of reference code of the currently selected entry
codeValue | variable where a copy of the code should be stored |
const OFString& DSRReferencedInstanceList::getSOPClassUID | ( | OFString & | stringValue | ) | const |
get the SOP class UID of the currently selected entry
stringValue | reference to string variable in which the result is stored |
const OFString& DSRReferencedInstanceList::getSOPInstanceUID | ( | OFString & | stringValue | ) | const |
get the SOP instance UID of the currently selected entry
stringValue | reference to string variable in which the result is stored |
select the first item in the list
OFCondition DSRReferencedInstanceList::gotoItem | ( | const OFString & | sopClassUID, |
const OFString & | instanceUID | ||
) |
select the specified item as the current one
sopClassUID | SOP class UID of the item to be selected |
instanceUID | SOP instance UID of the item to be selected |
select the next item in the list
OFCondition DSRReferencedInstanceList::read | ( | DcmItem & | dataset | ) |
read list of items from the referenced instance sequence
dataset | DICOM dataset from which the data should be read |
OFCondition DSRReferencedInstanceList::readXML | ( | const DSRXMLDocument & | doc, |
DSRXMLCursor | cursor, | ||
const size_t | flags | ||
) |
read list of items from XML document
doc | document containing the XML file content |
cursor | cursor pointing to the starting node |
flags | optional flag used to customize the reading process (see DSRTypes::XF_xxx) |
remove the current item from the list.
After successful removal the cursor is set to the next valid position.
OFCondition DSRReferencedInstanceList::removeItem | ( | const OFString & | sopClassUID, |
const OFString & | instanceUID | ||
) |
remove the specified item from the list.
After successful removal the cursor is set to the next valid position.
sopClassUID | SOP class UID of the item to be removed |
instanceUID | SOP instance UID of the item to be removed |
OFCondition DSRReferencedInstanceList::setPurposeOfReference | ( | const DSRCodedEntryValue & | codeValue | ) |
set purpose of reference code of the currently selected entry.
The Context Group with CID 7006 (SR Document Purposes of Reference) contains a list of appropriate code values. See DICOM standard for details.
codeValue | value to be set (not checked for validity) |
OFCondition DSRReferencedInstanceList::write | ( | DcmItem & | dataset | ) | const |
write list of items to the referenced instance sequence.
Does nothing if list is empty.
dataset | DICOM dataset to which the data should be written |
OFCondition DSRReferencedInstanceList::writeXML | ( | STD_NAMESPACE ostream & | stream, |
const size_t | flags = 0 |
||
) | const |
write current list in XML format
stream | output stream to which the XML data is written |
flags | optional flag used to customize the output (see DSRTypes::XF_xxx) |