34 #include "dcmtk/config/osconfig.h"
36 #include "dcmtk/dcmsr/dsrtree.h"
37 #include "dcmtk/dcmsr/dsrdoctn.h"
38 #include "dcmtk/dcmsr/dsrcitem.h"
40 #include "dcmtk/dcmdata/dcitem.h"
90 const size_t flags = 0);
103 const size_t flags = 0);
141 STD_NAMESPACE ostream &annexStream,
142 const size_t flags = 0);
209 const size_t referencedNodeID);
237 const OFBool startFromRoot = OFTrue,
238 const OFBool searchIntoSub = OFTrue);
249 const OFBool searchIntoSub = OFTrue);
304 const size_t flags = 0);
Interface class for content items.
OFCondition writeXML(STD_NAMESPACE ostream &stream, const size_t flags)
write current SR document tree in XML format
a class representing a list of DICOM elements in which each element has a different tag and elements ...
virtual size_t addNode(DSRDocumentTreeNode *node, const E_AddMode addMode=AM_afterCurrent)
add new node to the current one.
Class for checking the content relationship constraints of an SR IOD (abstract)
OFCondition print(STD_NAMESPACE ostream &stream, const size_t flags=0)
print current SR document tree to specified output stream
size_t gotoNamedNode(const DSRCodedEntryValue &conceptName, const OFBool startFromRoot=OFTrue, const OFBool searchIntoSub=OFTrue)
set internal cursor to the named node.
void removeSignatures()
remove digital signatures from the document tree.
OFCondition read(DcmItem &dataset, const E_DocumentType documentType, const size_t flags=0)
read SR document tree from DICOM dataset.
size_t addByReferenceRelationship(const E_RelationshipType relationshipType, const size_t referencedNodeID)
add specified by-reference relationship to the current content item.
OFCondition checkByReferenceRelationships(const size_t mode=0, const size_t flags=0)
check the by-reference relationships (if any) for validity.
E_DocumentType DocumentType
document type of the associated SR document
OFCondition write(DcmItem &dataset, DcmStack *markedItems=NULL)
write current SR document tree to DICOM dataset
size_t removeCurrentContentItem()
remove current content item from tree.
Class managing the SR document tree.
E_RelationshipType
SR relationship types.
virtual ~DSRDocumentTree()
destructor
OFBool canAddContentItem(const E_RelationshipType relationshipType, const E_ValueType valueType, const E_AddMode addMode=AM_afterCurrent)
check whether specified content item can be added to the current one.
Class managing a tree of nodes.
OFBool canAddByReferenceRelationship(const E_RelationshipType relationshipType, const E_ValueType targetValueType)
check whether specified by-reference relationship can be added to the current content item...
this class manages a stack of pointers to DcmObject instances.
Class for coded entry values.
OFCondition renderHTML(STD_NAMESPACE ostream &docStream, STD_NAMESPACE ostream &annexStream, const size_t flags=0)
render current SR document tree in HTML/XHTML format
virtual void clear()
clear internal member variables.
OFCondition readXML(const DSRXMLDocument &doc, DSRXMLCursor cursor, const size_t flags)
read XML document tree
void resetReferenceTargetFlag()
reset flag for all content items whether they are target of a by-reference relationship.
add new node after current one (sibling)
E_ValueType
SR value types.
Base class for content items.
OFCondition changeDocumentType(const E_DocumentType documentType)
change document type.
DSRContentItem CurrentContentItem
current content item. Introduced to avoid the external use of pointers.
E_DocumentType
SR document types.
size_t addContentItem(const E_RelationshipType relationshipType, const E_ValueType valueType, const E_AddMode addMode=AM_afterCurrent)
add specified content item to the current one.
E_DocumentType getDocumentType() const
get document type return current document type (might be DT_invalid)
void unmarkAllContentItems()
unmark all content items in the document tree.
Class for XML document cursors.
DSRIODConstraintChecker * ConstraintChecker
check relationship content constraints of the associated IOD
virtual size_t removeNode()
remove current node from tree.
virtual OFBool isValid() const
check whether the current internal state is valid.
DSRContentItem & getCurrentContentItem()
get reference to current content item.
size_t gotoNextNamedNode(const DSRCodedEntryValue &conceptName, const OFBool searchIntoSub=OFTrue)
set internal cursor to the next named node.
General purpose class for condition codes.