|
| | IODRule (const DcmTagKey &key, const OFString &VM, const OFString &type, const OFString &module, const DcmIODTypes::IOD_IE ie, const OFString &defaultValue="", const OFString &privateCreator="") |
| | Constructor to create a new attribute rule.
|
| IODRule * | clone () |
| | Return deep copy of this object.
|
| virtual DcmTagKey | getTagKey () const |
| | Get tag key of the attribute rule.
|
| virtual OFString | getPrivateCreator () const |
| | Get private creator of the related attribute.
|
| virtual OFString | getType () const |
| | The requirement type of the attribute (1, 1C, 2, 2C or 3).
|
| virtual OFString | getVM () const |
| | The VM of the attribute as noted in the DICOM standard part 6, e.g. "1-n" or "2".
|
| virtual OFString | getModule () const |
| | Get module (or component name) the related attribute belongs to.
|
| virtual OFString | getDefaultValue () const |
| | Get default value of this attribute.
|
| virtual DcmIODTypes::IOD_IE | getIE () const |
| | Get Information Entity the related attribute belongs to.
|
| virtual OFBool | isActiveOnWrite () const |
| | Returns whether this rule is active when writing, i.e. whether the related attribute is written to the dataset by the IOD writing routines.
|
| virtual void | setActiveOnWrite (const OFBool active) |
| | Set whether this rule is active when writing (see isActiveOnWrite()).
|
| virtual OFCondition | check (DcmItem &item, const OFBool quiet=OFFalse) |
| | Check whether the given item fulfills the requirements of this rule, i.e. the related attribute is checked within the given item.
|
|
virtual | ~IODRule () |
| | Virtual Destructor.
|
|
|
DcmTagKey | m_Key |
| | Tag key.
|
|
OFString | m_VM |
| | VM, see DcmElement::checkVM() for permitted values (e.g. "1-n").
|
|
OFString | m_Type |
| | Requirement type: 1, 1C, 2, 2C or 3.
|
|
OFString | m_Module |
| | Module (e.g. "PatientModule" or "component name", e.g. "CodeSequenceMacro".
|
|
DcmIODTypes::IOD_IE | m_IE |
| | The Information Entity the related attribute belongs to according to the DICOM Model of the Real World, e.g. "Patient" for the attribute "Patient Name".
|
|
OFString | m_DefaultValue |
| | Default value for attribute.
|
|
OFString | m_PrivateCreator |
| | Private Creator (if private attribute).
|
| OFBool | m_ActiveOnWrite |
| | Whether this rule is taken into account when writing (default OFTrue).
|
Class representing a single rule, that refers to a single attribute.
Each rule is uniquely identified by the attribute's tag key and includes information on the Value Multiplicity (VM) of the attribute, its type (1, 1C, 2,...), the module (e.g. "PatientModule") or structure (e.g. "CodeSequenceMacro") it belongs to, a default value and its private creator if it is a private attribute. On top, the Information Entity according to the DICOM Model of the Real World can be stored, e.g. "Patient" for the "PatientModule".
| virtual OFBool IODRule::isActiveOnWrite |
( |
| ) |
const |
|
virtual |
Returns whether this rule is active when writing, i.e. whether the related attribute is written to the dataset by the IOD writing routines.
An inactive rule is skipped on writing (the attribute is not written and, if it is type 1/2, its absence is not reported as an error); it does not affect the value currently held in memory. Rules are active by default.
- Note
- An inactive rule is also treated as fulfilled by check() (its requirements are not validated): a rule deliberately deactivated to suppress writing should not cause validation errors. Reading is not affected by this flag.
- Returns
- OFTrue if the rule is active on writing, OFFalse otherwise