34 #include "dcmtk/config/osconfig.h" 36 #include "dcmtk/ofstd/ofstring.h" 37 #include "dcmtk/ofstd/ofstack.h" 38 #include "dcmtk/ofstd/oflist.h" 104 virtual OFBool
isValid()
const;
151 size_t iterate(
const OFBool searchIntoSub = OFTrue);
157 size_t gotoNode(
const size_t searchID);
167 const char separator =
'.');
194 const char separator =
'.')
const;
DSRTreeNodeCursor()
default constructor
size_t setCursor(DSRTreeNode *node)
set cursor to specified node.
virtual ~DSRTreeNodeCursor()
destructor
size_t Position
current position within the current level
const DSRTreeNode * getParentNode()
get pointer to parent node.
virtual OFBool isValid() const
check whether cursor currently points to a valid node
DSRTreeNode * getNode() const
get pointer to current node
virtual void clear()
clear all member variables
OFList< size_t > PositionList
list of position counters in upper levels
size_t gotoNext()
goto next node on the same level
size_t iterate(const OFBool searchIntoSub=OFTrue)
iterate over all nodes.
void clearNodeCursorStack()
clear the internal node cursor stack
OFStack< DSRTreeNodePointer > NodeCursorStack
stack of node pointers. Used to store the cursor position of upper levels.
size_t getNodeID() const
get current node ID.
size_t goDown()
goto first child node (one level down)
size_t gotoNode(const size_t searchID)
set cursor to specified node.
const OFString & getPosition(OFString &position, const char separator= '.') const
get position string of the current node.
size_t getLevel() const
get current level.
size_t goUp()
goto parent node (one level up)
a simple string class that implements a subset of std::string.
const DSRTreeNode * getNextNode() const
get pointer to next node.
DSRTreeNode * NodeCursor
pointer current node
Class implementing a tree node cursor.
DSRTreeNodeCursor & operator=(const DSRTreeNodeCursor &cursor)
assignment operator
size_t gotoPrevious()
goto previous node on the same level