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

Interface class for ToleranceTableSequence (300a,0040) More...

+ Inheritance diagram for DRTToleranceTableSequence:

List of all members.

Classes

class  Item
 Item class. More...

Public Member Functions

 DRTToleranceTableSequence (const OFBool emptyDefaultSequence=OFFalse)
 (default) constructor
 DRTToleranceTableSequence (const DRTToleranceTableSequence &copy)
 copy constructor
virtual ~DRTToleranceTableSequence ()
 destructor
DRTToleranceTableSequenceoperator= (const DRTToleranceTableSequence &copy)
 assigment operator
void clear ()
 clear all internal member variables
OFBool isEmpty ()
 check if sequence is empty
OFBool isValid () const
 check if sequence is valid, i.e. not the empty default sequence
unsigned long getNumberOfItems () const
 get number of items in the sequence
OFCondition gotoFirstItem ()
 goto first item in the sequence
OFCondition gotoNextItem ()
 goto next item in the sequence
OFCondition gotoItem (const unsigned long num)
 goto particular item in the sequence
OFCondition getCurrentItem (Item *&item) const
 get current item in the sequence
ItemgetCurrentItem ()
 get current item in the sequence
const ItemgetCurrentItem () const
 get current item in the sequence
OFCondition getItem (const unsigned long num, Item *&item)
 get particular item in the sequence
ItemgetItem (const unsigned long num)
 get particular item in the sequence
const ItemgetItem (const unsigned long num) const
 get particular item in the sequence
Itemoperator[] (const unsigned long num)
 get particular item in the sequence
const Itemoperator[] (const unsigned long num) const
 get particular item in the sequence
OFCondition addItem (Item *&item)
 add new item to the end of this sequence
OFCondition insertItem (const unsigned long pos, Item *&item)
 insert new item into the sequence
OFCondition removeItem (const unsigned long pos)
 remove particular item from the sequence
OFCondition read (DcmItem &dataset, const OFString &card, const OFString &type, const char *moduleName=NULL)
 read sequence of items from dataset
OFCondition write (DcmItem &dataset, const OFString &card, const OFString &type, const char *moduleName=NULL)
 write sequence of items to dataset

Protected Member Functions

OFCondition gotoItem (const unsigned long num, OFListIterator(Item *)&iterator)
 goto particular item in the sequence
OFCondition gotoItem (const unsigned long num, OFListConstIterator(Item *)&iterator) const
 goto particular item in the sequence

Private Member Functions

 OFListIterator (Item *) CurrentItem
 currently selected item

Private Attributes

OFBool EmptyDefaultSequence
 internal flag used to mark the empty default sequence
OFList< Item * > SequenceOfItems
 list of items in this sequence
Item EmptyItem
 empty default item

Detailed Description

Interface class for ToleranceTableSequence (300a,0040)


Constructor & Destructor Documentation

DRTToleranceTableSequence::DRTToleranceTableSequence ( const OFBool  emptyDefaultSequence = OFFalse)

(default) constructor

Parameters:
emptyDefaultSequenceinternal flag used to mark the empty default sequence

copy constructor

Parameters:
copysequence object to be copied

Member Function Documentation

add new item to the end of this sequence

Parameters:
itemreference to new item pointer (result variable)
Returns:
status, EC_Normal if successful, an error code otherwise

get current item in the sequence

Parameters:
itemreference to item pointer (result variable)
Returns:
status, EC_Normal if successful, an error code otherwise

get current item in the sequence

Returns:
reference to specified item if successful, empty default item otherwise

get current item in the sequence

Returns:
const reference to specified item if successful, empty default item otherwise
OFCondition DRTToleranceTableSequence::getItem ( const unsigned long  num,
Item *&  item 
)

get particular item in the sequence

Parameters:
numnumber of the item to be retrieved (0..num-1)
itemreference to item pointer (result variable)
Returns:
status, EC_Normal if successful, an error code otherwise
Item& DRTToleranceTableSequence::getItem ( const unsigned long  num)

get particular item in the sequence

Parameters:
numnumber of the item to be retrieved (0..num-1)
Returns:
reference to specified item if successful, empty default item otherwise
const Item& DRTToleranceTableSequence::getItem ( const unsigned long  num) const

get particular item in the sequence

Parameters:
numnumber of the item to be retrieved (0..num-1)
Returns:
const reference to specified item if successful, empty default item otherwise

get number of items in the sequence

Returns:
number of items

goto first item in the sequence

Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTToleranceTableSequence::gotoItem ( const unsigned long  num)

goto particular item in the sequence

Parameters:
numnumber of the item to be selected (0..num-1)
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTToleranceTableSequence::gotoItem ( const unsigned long  num,
OFListIterator(Item *)&  iterator 
) [protected]

goto particular item in the sequence

Parameters:
numnumber of the item to be selected (0..num-1)
iteratorlist iterator storing the position of the item
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTToleranceTableSequence::gotoItem ( const unsigned long  num,
OFListConstIterator(Item *)&  iterator 
) const [protected]

goto particular item in the sequence

Parameters:
numnumber of the item to be selected (0..num-1)
iteratorlist iterator storing the position of the item
Returns:
status, EC_Normal if successful, an error code otherwise

goto next item in the sequence

Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTToleranceTableSequence::insertItem ( const unsigned long  pos,
Item *&  item 
)

insert new item into the sequence

Parameters:
posposition where the new item is to be inserted (0..num)
itemreference to new item pointer (result variable)
Returns:
status, EC_Normal if successful, an error code otherwise

check if sequence is empty

Returns:
OFTrue if sequence is empty, OFFalse otherwise

check if sequence is valid, i.e. not the empty default sequence

Returns:
OFTrue if sequence is valid, OFFalse otherwise
DRTToleranceTableSequence& DRTToleranceTableSequence::operator= ( const DRTToleranceTableSequence copy)

assigment operator

Parameters:
copysequence object to be copied
Item& DRTToleranceTableSequence::operator[] ( const unsigned long  num)

get particular item in the sequence

Parameters:
numnumber of the item to be retrieved (0..num-1)
Returns:
reference to specified item if successful, empty default item otherwise
const Item& DRTToleranceTableSequence::operator[] ( const unsigned long  num) const

get particular item in the sequence

Parameters:
numnumber of the item to be retrieved (0..num-1)
Returns:
const reference to specified item if successful, empty default item otherwise
OFCondition DRTToleranceTableSequence::read ( DcmItem dataset,
const OFString card,
const OFString type,
const char *  moduleName = NULL 
)

read sequence of items from dataset

Parameters:
datasetreference to DICOM dataset from which the sequence should be read
cardcardinality (valid range for number of items)
typevalue type (valid value: "1", "1C", "2" or something else which is not checked)
moduleNameoptional module/sequence name to be printed (default: "RT object" if NULL)
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTToleranceTableSequence::removeItem ( const unsigned long  pos)

remove particular item from the sequence

Parameters:
posposition of the item to be removed (0..num-1)
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTToleranceTableSequence::write ( DcmItem dataset,
const OFString card,
const OFString type,
const char *  moduleName = NULL 
)

write sequence of items to dataset

Parameters:
datasetreference to DICOM dataset to which the sequence should be written
cardcardinality (valid range for number of items)
typevalue type (valid value: "1", "2" or something else which is not checked)
moduleNameoptional module/sequence name to be printed (default: "RT object" if NULL)
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