Class representing rules for a set of DICOM attributes, e.g. for all attributes of a module, macro or the like.
More...
|
| IODRules () |
| Constructor.
|
|
IODRules * | clone () |
| Returns deep copy of this object.
|
|
iterator | begin () |
| Return iterator to first rule.
|
|
iterator | end () |
| Return iterator to last rule.
|
|
virtual OFBool | addRule (IODRule *rule, const OFBool overwriteExisting=OFFalse) |
| Adds rule to this rule set.
|
|
virtual OFBool | deleteRule (const DcmTagKey key) |
| Delete rule by given tag key.
|
|
const OFVector< IODRule * > | getByModule (const OFString &moduleName) |
| Get all rules that are marked belonging to a specific module.
|
|
IODRule * | getByTag (const DcmTagKey &key) const |
| Get a rule by its tag.
|
|
virtual void | clear () |
| Clear all rules.
|
|
virtual void | dump (STD_NAMESPACE ostream &out) |
| Dump rules to stream, useful for debugging.
|
|
virtual | ~IODRules () |
| Destructor.
|
|
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.
◆ addRule()
virtual OFBool IODRules::addRule |
( |
IODRule * |
rule, |
|
|
const OFBool |
overwriteExisting = OFFalse |
|
) |
| |
|
virtual |
Adds rule to this rule set.
- Parameters
-
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) |
- Returns
- OFTrue if rule could be added, error otherwise
◆ begin()
Return iterator to first rule.
- Returns
- Iterator to the first rule
◆ clone()
Returns deep copy of this object.
- Returns
- Deep copy of "this" object
◆ deleteRule()
virtual OFBool IODRules::deleteRule |
( |
const DcmTagKey |
key | ) |
|
|
virtual |
Delete rule by given tag key.
- Parameters
-
key | Tag of the attribute rule to be deleted |
- Returns
- OFTrue if a rule could be found and deleted, OFFalse otherwise
◆ dump()
virtual void IODRules::dump |
( |
STD_NAMESPACE ostream & |
out | ) |
|
|
virtual |
Dump rules to stream, useful for debugging.
- Parameters
-
◆ end()
Return iterator to last rule.
- Returns
- Iterator to the last rule
◆ getByModule()
Get all rules that are marked belonging to a specific module.
- Parameters
-
moduleName | The module name (e.g. "PatientModule") |
- Returns
- Vector with pointers to all the rules belonging to given module
◆ getByTag()
Get a rule by its tag.
- Parameters
-
key | The tag to find the rule for |
- Returns
- The rule, if found, NULL otherwise
The documentation for this class was generated from the following file:
- dcmiod/include/dcmtk/dcmiod/iodrules.h