33 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/dcmdata/dcdatset.h"
145 OFBool
empty()
const;
185 OFBool& wasWildcard);
289 OFBool createIfNecessary = OFFalse);
OFList< DcmPath * > m_results
Internal list that represents the search results found.
a class representing a list of DICOM elements in which each element has a different tag and elements ...
class maintaining a attribute tag (group and element number)
~DcmPathProcessor()
Deconstructor, cleans up memory that was allocated for any search results.
OFCondition applyPathWithValue(DcmDataset *dataset, const OFString &overrideKey)
Helper function that applies a specified "override key" in path syntax to the given dataset...
OFBool m_createIfNecessary
Denotes whether missing items/sequences/attributes should be automatically inserted when using findAn...
void checkPrivateReservations(const OFBool &doChecking)
Enables (class default: enabled) or disables checking of private reservations when inserting private ...
OFCondition findOrCreatePath(DcmObject *obj, const OFString &path, OFBool createIfNecessary=OFFalse)
Function that allows for finding and/or inserting a hierarchy of items and attributes as defined by a...
class representing a DICOM Sequence of Items (SQ).
OFCondition findOrDeletePath(DcmObject *obj, const OFString &path, Uint32 &numDeleted)
Function that allows for deleting elements and items from a DICOM object tree.
OFCondition findOrCreateItemPath(DcmItem *item, OFString &path)
Function that allows for finding and/or inserting a hierarchy of items and attributes as defined by a...
static OFCondition separatePathNodes(const OFString &path, OFList< OFString > &result)
Returns a string representation of each path node separately.
this class encapsulates an attribute tag (group, element) and a VR.
OFString toString() const
Returns a string representation of the path, e.
static OFCondition deleteLastElemFromPath(DcmObject *objSearchedIn, DcmPath *path, DcmPathNode *toDelete)
Helper function that looks at the last node in a given path and deletes the corresponding DICOM objec...
static OFCondition parseTagFromPath(OFString &path, DcmTag &tag)
Function that parses a tag from the beginning of a path string.
static OFCondition deleteLastItemFromPath(DcmObject *objSearchedIn, DcmPath *path, DcmPathNode *toDelete)
Helper function that looks at the last node in a given path and deletes the corresponding DICOM objec...
Abstract base class for most classes in module dcmdata.
OFList< DcmPathNode * > m_currentPath
Internal list that is during search for keeping track of current path.
DcmPathNode * back()
Returns last path component.
DcmPathNode()
Constructor.
void deleteBackNode()
Removes last path node from path.
DcmPathNode & operator=(const DcmPathNode &arg)
Private undefined assignment operator.
OFCondition checkPrivateTagReservation(DcmItem *item, DcmTag &tag)
Checks in item, whether a private reservation for a given tag key exists (if not disabled).
~DcmPath()
Desctructor, cleans up memory of path nodes.
DcmPathProcessor()
Constructor, creates an empty search object.
DcmPath()
Constructor, creates an empty search result.
Class representing a path of DICOM objects.
void append(DcmPathNode *node)
Appends a search node at the end of the search result path.
void clear()
Cleans up memory that was allocated for any search results.
OFBool empty() const
Returns whether path is empty, ie does not contain any path nodes.
Uint32 getResults(OFList< DcmPath * > &searchResults)
Returns the results from the search / creation call.
DcmPathProcessor & operator=(const DcmPathProcessor &arg)
Private undefined assignment operator.
Uint32 size() const
Returns number of path components.
~DcmPathNode()
Destructor.
OFList< DcmPathNode * > m_path
Internal list representing the nodes in the path.
Class representing a node in DcmPath.
a class handling the DICOM dataset format (files without meta header)
DcmPathNode(DcmObject *obj, Uint32 itemNo)
Constructor.
OFBool containsGroup(const Uint16 &groupNo) const
Returns whether the path contains tags of a given group.
OFBool m_itemWildcardsEnabled
Denotes, whether a path is accepted that contains wildcards.
OFListIterator(DcmPathNode *) begin()
Returns iterator pointing to first path component.
Uint32 m_itemNo
The item number of the item in m_obj; only useful if m_obj is an item.
static OFCondition parseItemNoFromPath(OFString &path, Uint32 &itemNo, OFBool &wasWildcard)
Helper function for findOrCreatePath().
a simple string class that implements a subset of std::string.
static DcmTagKey calcPrivateReservationTag(const DcmTagKey &privateKey)
Returns the private reservation tag key for a given private tag.
DcmPath & operator=(const DcmPath &arg)
Private undefined assignment operator.
DcmObject * m_obj
Pointer to object this search node points to.
void setItemWildcardSupport(const OFBool &supported)
Sets whether searching/creating paths will support wildcard for items.
OFCondition findOrCreateSequencePath(DcmSequenceOfItems *seq, OFString &path)
Function that allows for finding and/or inserting a hierarchy of items and attributes as defined by a...
General purpose class for condition codes.
OFBool m_checkPrivateReservations
If enabled (default), any insertions of private tags will fail, if no corresponding reservation exist...