ImFusion SDK 4.3
SequenceBase Class Referenceabstract

#include <ImFusion/Dicom/DicomSequence.h>

Abstract base class for a sequence of elements. More...

+ Inheritance diagram for SequenceBase:

Detailed Description

Abstract base class for a sequence of elements.

See also
Sequence

Public Member Functions

 SequenceBase (ElementList &parent, DcmTag tag, ElementBase::Type type)
 
 SequenceBase (DcmItem &item, DcmTag tag, ElementBase::Type type)
 
virtual void checkErrors (bool ignoreMandatory=false) const =0
 Checks the sequence for errors.
 
- Public Member Functions inherited from ElementBase
 ElementBase (ElementList &parent, DcmTag tag, Type type=Conditional, bool searchIntoSubs=false)
 
 ElementBase (DcmItem &item, DcmTag tag, Type type=Conditional, bool searchIntoSubs=false)
 
void setCondition (std::function< bool()> predicate)
 Sets a callback function that determines if a conditional element is mandatory.
 
virtual DcmTag tag () const
 DICOM tag wrapped by this Element.
 
virtual bool isMandatory () const
 Evaluates whether this element is mandatory (based on the specified type and optionally condition).
 
virtual bool exists () const
 Returns true if the elements exists in the dataset.
 
virtual bool isValid () const =0
 Returns true if the element exists and is in a valid range.
 
void remove ()
 Removes the element from the dataset.
 
std::string valueString () const
 Returns the value of the element as a string.
 
void setTargetSequence (DcmItem *sequence)
 Sets an optional sequence item where this elements will write its value.
 
- Public Member Functions inherited from ErrorRecorder
virtual void * registerErrorHandler (ErrorCallback handler)
 Registers a new handler callback function.
 
virtual void unregisterErrorHandler (void *handler)
 Removes a previously registered handler again.
 
void * forwardErrors (const ErrorRecorder *otherRecorder)
 Convenient function to forward all errors registered to this recorder to another recorder.
 
virtual void registerError (const Error &error) const
 Sends the given error to all error handler callbacks.
 
void registerError (Error::Code code, Error::Type type, const std::string &details, TagProxy tag=TagProxy()) const
 

Additional Inherited Members

- Public Types inherited from ElementBase
enum  Type { Mandatory , Conditional }
 Conditionality of an Element. More...
 
- Public Types inherited from ErrorRecorder
using ErrorCallback = std::function<void(const Error&)>
 Alias for a function to call for each error recorded.
 
- Protected Attributes inherited from ElementBase
DcmItem & m_dataset
 DICOM data set/base element to retrieve element data from.
 
DcmItem * m_targetSeq
 Optional sequence to write element data to; only used for setValue().
 
DcmTag m_tag
 DICOM tag the Element refers to.
 
Type m_type
 Conditionality of the Element.
 
bool m_searchIntoSubs
 Flag whether to search into sub sequences or not.
 
std::function< bool()> m_typeCondition
 Optional predicate function to evaluate conditionality.
 

Member Function Documentation

◆ checkErrors()


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close