47 size_t numInstances=1,
48 bool createInputModifyTagsPluginBaseConnectorField=
false,
49 bool createOutputModifyTagsPluginBaseConnectorField=
false);
88 static bool isIn(
const std::string &str,
const char *
const * values,
size_t numValues);
92 const size_t _numInstances;
101 const bool _createInputConnector;
104 const bool _createOutputConnector;
Project global and OS specific declarations.
#define ML_DICOM_MODIFY_EXPORT
DLL export macro definition.
Field to encapsulate a pointer to an ML base object.
The class DicomModifyFieldAddOnBase is dedicated to manage fields for ML modules and instances derive...
virtual std::string checkConsistency() const
Checks for invalid parameters; return textual description on error, or empty string on success.
~DicomModifyFieldAddOnBase() override
Destructor resetting connector fields if they exist.
DicomModifyFieldAddOnBase(FieldContainer &fieldContainerRef, size_t numInstances=1, bool createInputModifyTagsPluginBaseConnectorField=false, bool createOutputModifyTagsPluginBaseConnectorField=false)
Constructor, setting the reference of the FieldContainer managing the fields, the number of field ins...
size_t getNumInstances() const
Returns the number of instances to be created by derived fields.
static bool isIn(const std::string &str, const char *const *values, size_t numValues)
Static helper function which checks whether str is part of the given list of values which has numValu...
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications according to Module::handleNotification with a return of field change stat...
void handleFieldActivationChanges() override
Handle class changes according to Module::activateAttachments.
BaseField * getOutputModifierListFld() const
Provide access to output base field if it was created.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
Applies first the changes to the dcmTree as described in DicomModifyList::applyModifications() and th...
virtual void inheritValues(DCMTree::Const_TreePtr)
Can be used to implement the copy of tag values from the given dcmTree to the fields.
BaseField * getInputModifierListFld() const
Provide access to input base connector field if it was created.
void addFields() override
Add fields to field container of the FieldAddOn.
Class which manages a list of DicomModifyBase or derived objects, with an input for concatenation to ...
Abstract base class for field interfaces to be added to other ML module classes.
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
Defines the class FieldContainer to encapsulate a vector of fields (see class Field).
Base class for all fields used in the ML.
#define ML_ABSTRACT_CLASS_HEADER(className)
Similar to ML_ABSTRACT_CLASS_HEADER_EXPORTED with a non-existing export symbol.
Header file of a class which manages a list of DicomModifyBase objects and an input which allows the ...
Header file of the abstract base class FieldAddOnBase managing fields independently of an ML Module.
boost::shared_ptr< const Tree > Const_TreePtr
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.