DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
Class representing rules for a set of DICOM attributes, e.g. for all attributes of a module, macro or the like. More...
Public Types | |
typedef OFMap< DcmTagKey, IODRule * >::iterator | iterator |
iterator type to iterate over rule set | |
typedef OFMap< DcmTagKey, IODRule * >::const_iterator | const_iterator |
const iterator type to iterate over rule set | |
Public Member Functions | |
IODRules () | |
Constructor. | |
IODRules * | clone () |
Returns deep copy of this object. More... | |
iterator | begin () |
Return iterator to first rule. More... | |
iterator | end () |
Return iterator to last rule. More... | |
virtual OFBool | addRule (IODRule *rule, const OFBool overwriteExisting=OFFalse) |
Adds rule to this rule set. More... | |
virtual OFBool | deleteRule (const DcmTagKey key) |
Delete rule by given tag key. More... | |
const OFVector< IODRule * > | getByModule (const OFString &moduleName) |
Get all rules that are marked belonging to a specific module. More... | |
IODRule * | getByTag (const DcmTagKey &key) const |
Get a rule by its tag. More... | |
virtual void | clear () |
Clear all rules. | |
virtual void | dump (STD_NAMESPACE ostream &out) |
Dump rules to stream, useful for debugging. More... | |
virtual | ~IODRules () |
Destructor. | |
Private Attributes | |
OFMap< DcmTagKey, IODRule * > | m_Rules |
Map that holds all rules, accessible by their tag key. | |
Class representing rules for a set of DICOM attributes, e.g. for all attributes of a module, macro or the like.
At the moment attributes within sequences are not yet supported.
|
virtual |
Adds rule to this rule set.
rule | The rule to add (ownership is transferred to this class) |
overwriteExisting | If OFTrue (default), an existing rule for the same attribute (tag) is overwritten, otherwise the rule is not taken over (and ownership stays with caller) |
iterator IODRules::begin | ( | ) |
Return iterator to first rule.
IODRules* IODRules::clone | ( | ) |
Returns deep copy of this object.
|
virtual |
Delete rule by given tag key.
key | Tag of the attribute rule to be deleted |
|
virtual |
Dump rules to stream, useful for debugging.
out | The stream to dump to |
iterator IODRules::end | ( | ) |
Return iterator to last rule.
Get all rules that are marked belonging to a specific module.
moduleName | The module name (e.g. "PatientModule") |
Get a rule by its tag.
key | The tag to find the rule for |