Inheritance diagram for I2DOutputPlug:
Public Member Functions | |
I2DOutputPlug () | |
Constructor, initializes member variables. | |
virtual OFString | ident ()=0 |
Virtual function that returns a short name of the plugin. | |
virtual void | supportedSOPClassUIDs (OFList< OFString > suppSOPs)=0 |
Virtual function that returns the Storage SOP class UID, the plugin writes. | |
virtual OFCondition | convert (DcmDataset &dataset) const=0 |
Outputs SOP class specific information into dataset. | |
virtual OFString | isValid (DcmDataset &dataset) const=0 |
Do some completeness / validity checks. | |
virtual | ~I2DOutputPlug () |
Destructor. | |
virtual void | setValidityChecking (OFBool doChecks, OFBool insertMissingType2=OFTrue, OFBool inventMissingType1=OFTrue) |
Enable/Disable basic validity checks for output dataset. | |
Protected Member Functions | |
virtual OFString | checkAndInventType1Attrib (const DcmTagKey &key, DcmDataset *targetDset, const OFString &defaultValue="") const |
Checks whether a given tag exists in a dataset and provides a non-empty value. | |
virtual OFString | checkAndInventType2Attrib (const DcmTagKey &key, DcmDataset *targetDset, const OFString &defaultValue="") const |
Checks whether a given tag exists in a dataset (can be empty) If not, the tag is inserted (if enabled) with empty value. | |
Protected Attributes | |
OFBool | m_doAttribChecking |
if enabled, some simple attribute checking is performed default: enabled (OFTrue) | |
OFBool | m_inventMissingType2Attribs |
if enabled, missing type 2 attributes in the dataset are added automatically. | |
OFBool | m_inventMissingType1Attribs |
if enbled, missing type 1 attributes are inserted and filled with a predefined value. |
Definition at line 48 of file i2doutpl.h.
I2DOutputPlug::I2DOutputPlug | ( | ) | [inline] |
virtual I2DOutputPlug::~I2DOutputPlug | ( | ) | [inline, virtual] |
virtual OFString I2DOutputPlug::ident | ( | ) | [pure virtual] |
Virtual function that returns a short name of the plugin.
Implemented in I2DOutputPlugNewSC, I2DOutputPlugSC, and I2DOutputPlugVLP.
Virtual function that returns the Storage SOP class UID, the plugin writes.
suppSOPs | - [out] List containing supported output SOP classes |
Implemented in I2DOutputPlugNewSC, I2DOutputPlugSC, and I2DOutputPlugVLP.
virtual OFCondition I2DOutputPlug::convert | ( | DcmDataset & | dataset | ) | const [pure virtual] |
Outputs SOP class specific information into dataset.
dataset | - [in/out] Dataset to write to |
Implemented in I2DOutputPlugNewSC, I2DOutputPlugSC, and I2DOutputPlugVLP.
virtual OFString I2DOutputPlug::isValid | ( | DcmDataset & | dataset | ) | const [pure virtual] |
Do some completeness / validity checks.
Should be called when dataset is completed and is about to be saved.
dataset | - [in] The dataset to check |
Implemented in I2DOutputPlugNewSC, I2DOutputPlugSC, and I2DOutputPlugVLP.
virtual void I2DOutputPlug::setValidityChecking | ( | OFBool | doChecks, | |
OFBool | insertMissingType2 = OFTrue , |
|||
OFBool | inventMissingType1 = OFTrue | |||
) | [inline, virtual] |
Enable/Disable basic validity checks for output dataset.
doChecks | - [in] OFTrue enables checking, OFFalse turns it off. | |
insertMissingType2 | - [in] If true (default), missing type 2 attributes are inserted automatically | |
inventMissingType1 | - [in] If true (default), missing type 1 attributes are inserted automatically with a predefined value (if possible). An existing empty type 1 attribute is assigned a value, too. |
Definition at line 99 of file i2doutpl.h.
References m_doAttribChecking, m_inventMissingType1Attribs, and m_inventMissingType2Attribs.
virtual OFString I2DOutputPlug::checkAndInventType1Attrib | ( | const DcmTagKey & | key, | |
DcmDataset * | targetDset, | |||
const OFString & | defaultValue = "" | |||
) | const [inline, protected, virtual] |
Checks whether a given tag exists in a dataset and provides a non-empty value.
If not, the tag is inserted (if enabled) and a default value is inserted.
key | - [in] The tag to be checked/inserted | |
targetDset | - [in/out] The dataset to search (and insert) in | |
defaultValue | - [in] The default value to set |
Definition at line 118 of file i2doutpl.h.
References OFCondition::bad(), DcmItem::findAndGetElement(), DcmElement::getLength(), DcmTag::getTagName(), OFCondition::good(), DcmItem::insert(), m_inventMissingType1Attribs, and DcmItem::tagExists().
virtual OFString I2DOutputPlug::checkAndInventType2Attrib | ( | const DcmTagKey & | key, | |
DcmDataset * | targetDset, | |||
const OFString & | defaultValue = "" | |||
) | const [inline, protected, virtual] |
Checks whether a given tag exists in a dataset (can be empty) If not, the tag is inserted (if enabled) with empty value.
key | - [in] The tag to be checked/inserted | |
targetDset | - [in/out] The dataset to search (and insert) in |
Definition at line 171 of file i2doutpl.h.
References DcmTag::getTagName(), OFCondition::good(), DcmItem::insert(), m_inventMissingType2Attribs, and DcmItem::tagExists().
OFBool I2DOutputPlug::m_inventMissingType2Attribs [protected] |
if enabled, missing type 2 attributes in the dataset are added automatically.
default: enabled (OFTrue)
Definition at line 220 of file i2doutpl.h.
Referenced by checkAndInventType2Attrib(), and setValidityChecking().
OFBool I2DOutputPlug::m_inventMissingType1Attribs [protected] |
if enbled, missing type 1 attributes are inserted and filled with a predefined value.
Default: disabled (OFFalse)
Definition at line 224 of file i2doutpl.h.
Referenced by checkAndInventType1Attrib(), and setValidityChecking().