31 bool allowEmptyStrings=
true,
32 bool allowOldFormats=
true);
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
DicomContentDateTimeTagInterface(Module &modRef, bool allowEmptyStrings=true, bool allowOldFormats=true, const std::string &contentDateFieldName="contentDate", const std::string &contentTimeFieldName="contentTime", const std::string &msgContentDateFieldName="Content Date", const std::string &msgContentTimeFieldName="Content Time", const DCMTree::RawTagId dateTagId=DCMTree_ContentDate, const DCMTree::RawTagId timeTagId=DCMTree_ContentTime)
Constructor, setting the reference of the module for which the fields shall be managed.
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications.
NotifyField & getSetCurrentDateFld()
const NotifyField & getSetCurrentTimeFld() const
NotifyField & getSetCurrentTimeFld()
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
const BoolField & getAutoSetUpPresentationCreationTimeFld() const
void _setCurrentTime()
If called then the Presentation Creation Time Field is initialized with the current time.
BoolField * _autoSetUpPresentationCreationTimeFld
If enabled then the Presentation Creation Time Field is initialized with the current time when inheri...
void addFields() override
Add fields to field container of module.
BoolField * _autoSetUpPresentationCreationDateFld
If enabled then the Presentation Creation Date Field is initialized with the current date when inheri...
BoolField & getAutoSetUpPresentationCreationDateFld()
Access interface to members; see corresponding member for details.
const NotifyField & getSetCurrentDateFld() const
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
void _setCurrentDate()
If called then the Presentation Creation Date Field is initialized with the current date.
NotifyField * _setCurrentTimeFld
If notified then the Presentation Creation Time Field is initialized with the current time.
const BoolField & getAutoSetUpPresentationCreationDateFld() const
BoolField & getAutoSetUpPresentationCreationTimeFld()
NotifyField * _setCurrentDateFld
If notified then the Presentation Creation Date Field is initialized with the current date.
DicomPresentationStateIdentificationTagInterface(Module &modRef, bool allowEmptyStrings=true, bool allowOldFormats=true)
Constructor, setting the reference of the module for which the fields shall be managed.
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
Header file for the ML module base class DicomContentDateTimeTagInterface.
boost::shared_ptr< const Tree > Const_TreePtr
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.