27 bool allowEmptyStrings=
true,
28 bool allowOldFormats=
true,
29 const std::string &contentDateFieldName=
"contentDate",
30 const std::string &contentTimeFieldName=
"contentTime",
31 const std::string &msgContentDateFieldName=
"Content Date",
32 const std::string &msgContentTimeFieldName=
"Content Time",
Project global and OS specific declarations.
#define MLDICOMTAGINTERFACES_EXPORT
DLL export macro definition.
Manages the module field interface according to DICOM ContentDate and ContentTime tags.
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.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
const std::string _contentTimeFieldName
The constructor defined name to be used for the _contentTimeFld.
const std::string _msgContentDateFieldName
The constructor defined name to be used for the content date in messages.
StringField & getContentTimeFld()
void inheritValues(DCMTree::Const_TreePtr dcmTree) override
Implements the copy of tag values from the given dcmTree to the fields.
const std::string & getContentDateMessage() const
const std::string _contentDateFieldName
The constructor defined name to be used for the _contentDateFld.
const bool _allowOldFormats
If true then old date specification formats are allowed, otherwise not.
const std::string & getContentTimeMessage() const
const bool _allowEmptyStrings
If true then empty strings in date/time settings are allowed, otherwise not.
const DCMTree::RawTagId _contentDateTagId
The constructor defined tag id to be used for the content date.
const DCMTree::RawTagId _contentTimeTagId
The constructor defined tag id to be used for the content time.
DCMTree::RawTagId getContentDateTagId() const
const std::string _msgContentTimeFieldName
The constructor defined name to be used for the content time in messages.
StringField * _contentDateFld
Fields.
StringField & getContentDateFld()
Provide access to fields and tag ids; for documentation see corresponding fields.
DCMTree::RawTagId getContentTimeTagId() const
void addFields() override
Add fields to field container of module.
std::string checkConsistency() const override
Checks for invalid parameters; return textual description on error, or empty string on success.
StringField * _contentTimeFld
Content of the corresponding DICOM tag definition.
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
Defines the class FieldContainer to encapsulate a vector of fields (see class Field).
Base class for an image processing module of the ML.
Field to encapsulate a string value.
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
boost::shared_ptr< const Tree > Const_TreePtr
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.