17#include <FMEThirdPartyWarningsDisable.h>
19#include <FMEThirdPartyWarningsRestore.h>
40 const std::string &modStrVal =
"");
99 const std::string &modStrVal);
112 std::string *errStr=
nullptr)
const;
123 std::string *errStr=
nullptr,
125 bool splitValue=
false)
const;
140 std::string *errStr=
nullptr,
142 bool splitValue=
false)
const;
155 mutable std::string _currentModificationStringValue;
160 std::string _modificationStringValue;
Project global and OS specific declarations.
#define ML_DICOM_MODIFY_EXPORT
DLL export macro definition.
bool tagExists(DCMTree::TreePtr dcmTree) const
void removeTag(DCMTree::TreePtr dcmTree) const
void setTagIdAndModificationStringValue(DCMTree::TagId tagId, const std::string &modStrVal)
Calls setTagId(tagId) and setModificationStringValue(modStrVal).
DCMTree::TagId getTagId() const
void setTagId(const std::string &tagIdStr)
virtual ~DicomModifyBase()
Virtual destructor.
void setTagValue(DCMTree::TreePtr dcmTree, std::string *errStr=nullptr, const DICOMTagTools::ValueModifyModes modMode=DICOMTagTools::Replace, bool splitValue=false) const
virtual std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr)
bool getModificationStringValueAsMLInt(MLint &retVal) const
DicomModifyBase(const DicomModifyBase &)=default
Default copy constructor.
void setModificationStringValue(const std::string &modStrVal)
DCMTree::TagPtr getTagIfItExists(DCMTree::TreePtr dcmTree, std::string *errStr=nullptr) const
void setTagId(DCMTree::TagId tagId)
Set the id of the tag to be modified.
DCMTree::TagPtr addTag(DCMTree::TreePtr dcmTree, std::string *errStr=nullptr, bool setValue=true, bool splitValue=false) const
const std::string & getModificationStringValue() const
DicomModifyBase & operator=(const DicomModifyBase &)=default
Default assignment operator.
DicomModifyBase(DCMTree::TagId tagId=DCMTree::TagId(), const std::string &modStrVal="")
Constructor setting the tag ID and the string value for modifications.
boost::shared_ptr< Tag > TagPtr
Shared pointer to tag.
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.