37 enum { NumModificationModes = RemoveAllPrivateTags+1 };
40 static const char *
const ModificationModesStrings[NumModificationModes];
46 const std::string &privateCreator =
"");
65 const std::string &privateCreator);
85 std::string _privateCreator;
Project global and OS specific declarations.
#define ML_DICOM_MODIFY_EXPORT
DLL export macro definition.
A base class which allows the modification of DICOM tags in a (cloned) DICOM tree.
A concrete class derived from DicomModifyBase which allows the removal of non-ordinary,...
const std::string & getPrivateCreator() const
Returns the currently set private creator string.
void setPrivateCreator(const std::string &privateCreator)
Sets the private creator string.
void setModificationMode(ModificationModes modMode)
Sets how the tag with given id and modification value shall be modified.
ModificationModes
Available modes for tag/tree modifications.
@ RemoveEntirePrivateCreatorGroup
All tags belonging to the given private creator are removed.
@ RemoveTag
The tag with id and the given private creator is removed.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
Apply a change to dcmTree according to the currently selected _modificationMode.
void setModificationParameters(DCMTree::TagId tagId, const std::string &modStrVal, ModificationModes modMode, const std::string &privateCreator)
Calls setTagId(tagId), setModificationStringValue(modStrVal), setModificationMode(modMode),...
ModificationModes getModificationMode() const
Returns the currently set modification mode.
void removePrivateTag(DCMTree::TreePtr dcmTree, unsigned char tagIdLowerEightBits, const std::string &privateCreatorString) const
See DICOMTagTools::removePrivateTag().
DicomModifyPrivateRemove(DCMTree::TagId tagId=DCMTree::TagId(), const std::string &modStrVal="", ModificationModes modMode=DoNotModify, const std::string &privateCreator="")
Constructor setting setting TagId, ModificationStringValue, and ModificationMode.
Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).
Header file of a base class which allows the modification of DICOM tags in a (cloned) DICOM tree.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree