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.
virtual std::string checkConsistency() const
Checks for invalid parameters; return textual description on error, or empty string on success.
BaseField * getOutputModifierListFld() const
Provide access to output base field if it was created.
~DicomModifyFieldAddOnBase() override
Destructor resetting connector fields if they exist.
DicomModifyFieldAddOnBase(FieldContainer &fieldContainerRef, size_t numInstances=1, bool createInputModifyTagsPluginBaseConnectorField=false, bool createOutputModifyTagsPluginBaseConnectorField=false)
BaseField * getInputModifierListFld() const
Provide access to input base connector field if it was created.
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.
std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
virtual void inheritValues(DCMTree::Const_TreePtr)
Can be used to implement the copy of tag values from the given dcmTree to the fields.
void addFields() override
Add fields to field container of the FieldAddOn.
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
FieldAddOnBase(FieldContainer &fieldContainerRef)
Constructor, setting the reference of the FieldContainer managing the fields.
#define ML_ABSTRACT_CLASS_HEADER(className)
boost::shared_ptr< const Tree > Const_TreePtr
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.