21 class DicomModifyBase;
64 inline const std::vector<DicomModifyBase*> &
getModifierList()
const {
return _modifiers; }
85 std::vector<DicomModifyBase*> _modifiers;
Project global and OS specific declarations.
#define ML_DICOM_MODIFY_EXPORT
DLL export macro definition.
Class representing general ML objects that support import/export via strings (setPersistentState() an...
A base class which allows the modification of DICOM tags in a (cloned) DICOM tree.
Class which manages a list of DicomModifyBase or derived objects, with an input for concatenation to ...
void clear()
Makes modifier array empty and deletes all of them.
DicomModifyList()
Constructor creating an empty list of tag modifiers and setting the optional input plugin with a conc...
~DicomModifyList() override
Destructor also destroying all of its stored Modifiers.
void setInputPlugin(DicomModifyList *inputPlugin=nullptr)
Sets an optional plugin to be called by applyModififcations or resets it to nullptr; the input is cal...
std::vector< DicomModifyBase * > & getModifierList()
Get direct access to internal list to allow callers direct manipulations which, however,...
void addModifier(DicomModifyBase *modifier, bool atEnd=true)
Add an object derived from DicomModifyBase which then will be owned (and on destruction deleted) by t...
const std::vector< DicomModifyBase * > & getModifierList() const
Same as getModifierList() only for constant access.
DicomModifyList * getInputPlugin() const
Returns the optional plugin to be called by applyModififcations.
virtual std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr)
Apply all DicomModify objects to dcmTree; the operations optionally defined with the input are perfor...
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.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree