DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
DSRCodingSchemeIdentificationList Class Reference

Class that maps Coding Scheme Designators to an external coding system registration, or to a private or local coding scheme. More...

+ Inheritance diagram for DSRCodingSchemeIdentificationList:

List of all members.

Classes

struct  ItemStruct
 Internal structure defining the list items. More...

Public Member Functions

 DSRCodingSchemeIdentificationList ()
 constructor (default)
 ~DSRCodingSchemeIdentificationList ()
 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 coding scheme identification sequence
OFCondition write (DcmItem &dataset) const
 write list of items to the coding scheme identification 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 addPrivateDcmtkCodingScheme ()
 add private OFFIS DCMTK coding scheme entry to the list.
OFCondition addItem (const OFString &codingSchemeDesignator)
 add the specified coding scheme to the list.
OFCondition removeItem ()
 remove the current item from the list.
OFCondition removeItem (const OFString &codingSchemeDesignator)
 remove the specified item from the list.
OFCondition gotoItem (const OFString &codingSchemeDesignator)
 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 OFStringgetCodingSchemeDesignator (OFString &stringValue) const
 get the coding scheme designator of the currently selected item.
const OFStringgetCodingSchemeRegistry (OFString &stringValue) const
 get the coding scheme registry of the currently selected item
const OFStringgetCodingSchemeUID (OFString &stringValue) const
 get the coding scheme UID of the currently selected item
const OFStringgetCodingSchemeExternalID (OFString &stringValue) const
 get the coding scheme external ID of the currently selected item
const OFStringgetCodingSchemeName (OFString &stringValue) const
 get the coding scheme name of the currently selected item
const OFStringgetCodingSchemeVersion (OFString &stringValue) const
 get the coding scheme version of the currently selected item
const OFStringgetResponsibleOrganization (OFString &stringValue) const
 get the responsible organization of the currently selected item
OFCondition setCodingSchemeRegistry (const OFString &value)
 set the coding scheme registry of the currently selected entry.
OFCondition setCodingSchemeUID (const OFString &value)
 set the coding scheme UID of the currently selected entry.
OFCondition setCodingSchemeExternalID (const OFString &value)
 set the coding scheme external ID of the currently selected entry.
OFCondition setCodingSchemeName (const OFString &value)
 set the coding scheme name of the currently selected entry.
OFCondition setCodingSchemeVersion (const OFString &value)
 set the coding scheme version of the currently selected entry.
OFCondition setResponsibleOrganization (const OFString &value)
 set the responsible organization of the currently selected entry.

Protected Member Functions

OFCondition addItem (const OFString &codingSchemeDesignator, ItemStruct *&item)
 add the specified coding scheme to the list (if not existent)
ItemStructgetCurrentItem () const
 get pointer to currently selected item structure (if any)

Private Member Functions

 OFListIterator (ItemStruct *) Iterator
 internal cursor to current (selected) list item
 DSRCodingSchemeIdentificationList (const DSRCodingSchemeIdentificationList &)
DSRCodingSchemeIdentificationListoperator= (const DSRCodingSchemeIdentificationList &)

Private Attributes

OFList< ItemStruct * > ItemList
 list of items

Detailed Description

Class that maps Coding Scheme Designators to an external coding system registration, or to a private or local coding scheme.

Implementation of Coding Scheme Identification Sequence.


Member Function Documentation

add the specified coding scheme to the list.

Internally, the item is inserted into the list of coding scheme designators if not already contained in the list. In any case the specified item is selected as the current one. See definition of 'ItemStruct' above for VR, VM and Type.

Parameters:
codingSchemeDesignatorcoding scheme designator of the item to be added. Designators beginning with "99" and the designator "L" are defined to be private or local coding schemes.
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DSRCodingSchemeIdentificationList::addItem ( const OFString codingSchemeDesignator,
ItemStruct *&  item 
) [protected]

add the specified coding scheme to the list (if not existent)

Parameters:
codingSchemeDesignatorcoding scheme designator of the item to be added
itemreference to item pointer (result variable)
Returns:
status, EC_Normal if successful, an error code otherwise

add private OFFIS DCMTK coding scheme entry to the list.

Please note that any information previously stored under the defined coding scheme designator "99_OFFIS_DCMTK" is replaced!

Returns:
status, EC_Normal if successful, an error code otherwise

check whether list is empty

Returns:
OFTrue if list is empty, OFFalse otherwise

get the coding scheme designator of the currently selected item.

Designators beginning with "99" and the designator "L" are defined to be private or local coding schemes.

Parameters:
stringValuereference to string variable in which the result is stored
Returns:
reference to the resulting string (might be empty)

get the coding scheme external ID of the currently selected item

Parameters:
stringValuereference to string variable in which the result is stored
Returns:
reference to the resulting string (might be empty)

get the coding scheme name of the currently selected item

Parameters:
stringValuereference to string variable in which the result is stored
Returns:
reference to the resulting string (might be empty)

get the coding scheme registry of the currently selected item

Parameters:
stringValuereference to string variable in which the result is stored
Returns:
reference to the resulting string (might be empty)

get the coding scheme UID of the currently selected item

Parameters:
stringValuereference to string variable in which the result is stored
Returns:
reference to the resulting string (might be empty)

get the coding scheme version of the currently selected item

Parameters:
stringValuereference to string variable in which the result is stored
Returns:
reference to the resulting string (might be empty)

get pointer to currently selected item structure (if any)

Returns:
pointer to the item structure if successful, NULL otherwise

get number of items stored in the list

Returns:
number of items

get the responsible organization of the currently selected item

Parameters:
stringValuereference to string variable in which the result is stored
Returns:
reference to the resulting string (might be empty)

select the first item in the list

Returns:
status, EC_Normal if successful, an error code otherwise. (e.g. if the list is empty)

select the specified item as the current one

Parameters:
codingSchemeDesignatorcoding scheme designator of the item to be selected
Returns:
status, EC_Normal if successful, an error code otherwise

select the next item in the list

Returns:
status, EC_Normal if successful, an error code otherwise. (e.g. if the end of the list has been reached)

read list of items from the coding scheme identification sequence

Parameters:
datasetDICOM dataset from which the data should be read
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DSRCodingSchemeIdentificationList::readXML ( const DSRXMLDocument doc,
DSRXMLCursor  cursor,
const size_t  flags 
)

read list of items from XML document

Parameters:
docdocument containing the XML file content
cursorcursor pointing to the starting node
flagsoptional flag used to customize the reading process (see DSRTypes::XF_xxx)
Returns:
status, EC_Normal if successful, an error code otherwise

remove the current item from the list.

After successful removal the cursor is set to the next valid position.

Returns:
status, EC_Normal if successful, an error code otherwise

remove the specified item from the list.

After successful removal the cursor is set to the next valid position.

Parameters:
codingSchemeDesignatorcoding scheme designator of the item to be removed
Returns:
status, EC_Normal if successful, an error code otherwise

set the coding scheme external ID of the currently selected entry.

See definition of 'ItemStruct' above for VR, VM and Type.

Parameters:
valuestring value to be set (use empty string to omit optional attribute)
Returns:
status, EC_Normal if successful, an error code otherwise

set the coding scheme name of the currently selected entry.

See definition of 'ItemStruct' above for VR, VM and Type.

Parameters:
valuestring value to be set (use empty string to omit optional attribute)
Returns:
status, EC_Normal if successful, an error code otherwise

set the coding scheme registry of the currently selected entry.

See definition of 'ItemStruct' above for VR, VM and Type.

Parameters:
valuestring value to be set (use empty string to omit optional attribute)
Returns:
status, EC_Normal if successful, an error code otherwise

set the coding scheme UID of the currently selected entry.

See definition of 'ItemStruct' above for VR, VM and Type.

Parameters:
valuestring value to be set (use empty string to omit optional attribute)
Returns:
status, EC_Normal if successful, an error code otherwise

set the coding scheme version of the currently selected entry.

See definition of 'ItemStruct' above for VR, VM and Type.

Parameters:
valuestring value to be set (use empty string to omit optional attribute)
Returns:
status, EC_Normal if successful, an error code otherwise

set the responsible organization of the currently selected entry.

See definition of 'ItemStruct' above for VR, VM and Type.

Parameters:
valuestring value to be set (use empty string to omit optional attribute)
Returns:
status, EC_Normal if successful, an error code otherwise

write list of items to the coding scheme identification sequence.

Does nothing if list is empty.

Parameters:
datasetDICOM dataset to which the data should be written
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DSRCodingSchemeIdentificationList::writeXML ( STD_NAMESPACE ostream &  stream,
const size_t  flags = 0 
) const

write current list in XML format

Parameters:
streamoutput stream to which the XML data is written
flagsoptional flag used to customize the output (see DSRTypes::XF_xxx)
Returns:
status, EC_Normal if successful, an error code otherwise

The documentation for this class was generated from the following file:


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027