MeVisLab Toolbox Reference
ml::DicomModifyFieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE > Class Template Reference

Class managing a list of BASE_FIELD_ADD_ON_TYPE to simplify usage of multiple AddOns; AddOns are never owned by DicomModifyFieldAddOnList instances, this the life time of the AddOns must be longer than the usage of DicomModifyFieldAddOnList instances. More...

#include <mlDicomModifyFieldAddOnList.h>

Inheritance diagram for ml::DicomModifyFieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE >:
ml::FieldAddOnList< FIELD_ADD_ON_BASE_CLASS, PIMPL_OBJ_TYPE >

Public Types

typedef FieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPESuperList
 Type of inherited SuperClass base class.
 
typedef BASE_FIELD_ADD_ON_TYPE SuperBase
 Type of inherited SuperClass base class.
 
- Public Types inherited from ml::FieldAddOnList< FIELD_ADD_ON_BASE_CLASS, PIMPL_OBJ_TYPE >
typedef std::vector< FIELD_ADD_ON_BASE_CLASS * > FieldAddOnContainer
 The internally used container to manage the FieldAddOns.
 

Public Member Functions

 DicomModifyFieldAddOnList (FieldContainer &fieldContainerRef)
 Constructor, setting the reference of the FieldContainer managing the fields.
 
std::string applyModifications (DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override
 Add functionality of additional methods of DicomModifyFieldAddOnBase; addFields(), handleFieldActivationChanges(), and handleFieldChanges(Field *field) is already implemented in FieldAddOnList base class.
 
void inheritValues (DCMTree::Const_TreePtr dcmTree) override
 Applies DicomModifyFieldAddOnBase::inheritValues for each instance.
 
std::string checkConsistency () const override
 Applies DicomModifyFieldAddOnBase::checkConsistency to each instance, and returns the concatenation of all return values.
 
- Public Member Functions inherited from ml::FieldAddOnList< FIELD_ADD_ON_BASE_CLASS, PIMPL_OBJ_TYPE >
 FieldAddOnList (FieldContainer &fieldContainerRef)
 Constructor, setting the reference of the FieldContainer managing the fields.
 
 ~FieldAddOnList () override
 Destructor.
 
FieldAddOnContainergetFieldAddOns ()
 Returns the referenced container.
 
const FieldAddOnContainergetFieldAddOns () const
 Returns the constant referenced container.
 
virtual void registerFieldAddOn (FIELD_ADD_ON_BASE_CLASS *fieldAddOn)
 Register a FieldAddOn in *this; nullptr fieldAddOn pointers are ignored and not added.
 
virtual bool hasFieldAddOn (FIELD_ADD_ON_BASE_CLASS *fieldAddOn) const
 Returns true if the passed fieldPtr is in _fieldPointers, otherwise false.
 
void addFields () override
 Add fields to field container of module.
 
void handleFieldActivationChanges () override
 Handle class changes according to Module::activateAttachments.
 
FieldAddOnBase::FieldChangeState handleFieldChanges (Field *field) override
 Handle field notifications according to Module::handleNotification functionality.
 

Additional Inherited Members

- Public Attributes inherited from ml::FieldAddOnList< FIELD_ADD_ON_BASE_CLASS, PIMPL_OBJ_TYPE >
PIMPL_OBJ_TYPE _pImpl
 User defined object not used in this base class (only default constructor is called), it is useful for private implementations.
 

Detailed Description

template<typename BASE_FIELD_ADD_ON_TYPE, typename PIMPL_OBJ_TYPE = void*>
class ml::DicomModifyFieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE >

Class managing a list of BASE_FIELD_ADD_ON_TYPE to simplify usage of multiple AddOns; AddOns are never owned by DicomModifyFieldAddOnList instances, this the life time of the AddOns must be longer than the usage of DicomModifyFieldAddOnList instances.

It is implemented as template allowing to derive from differently typed DicomModifyFieldAddOn classes and it also allows the usage of a private implementation pointer which allows to hide collections of DicomModifyFieldAddOnList inside the list implementations without needing to make them public. BASE_FIELD_ADD_ON_TYPE is expected to fulfil the behaviour of at least DicomModifyFieldAddOnBase.

Definition at line 31 of file mlDicomModifyFieldAddOnList.h.

Member Typedef Documentation

◆ SuperBase

template<typename BASE_FIELD_ADD_ON_TYPE , typename PIMPL_OBJ_TYPE = void*>
typedef BASE_FIELD_ADD_ON_TYPE ml::DicomModifyFieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE >::SuperBase

Type of inherited SuperClass base class.

Definition at line 39 of file mlDicomModifyFieldAddOnList.h.

◆ SuperList

template<typename BASE_FIELD_ADD_ON_TYPE , typename PIMPL_OBJ_TYPE = void*>
typedef FieldAddOnList<BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE> ml::DicomModifyFieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE >::SuperList

Type of inherited SuperClass base class.

Definition at line 36 of file mlDicomModifyFieldAddOnList.h.

Constructor & Destructor Documentation

◆ DicomModifyFieldAddOnList()

template<typename BASE_FIELD_ADD_ON_TYPE , typename PIMPL_OBJ_TYPE = void*>
ml::DicomModifyFieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE >::DicomModifyFieldAddOnList ( FieldContainer & fieldContainerRef)
inline

Constructor, setting the reference of the FieldContainer managing the fields.

Definition at line 42 of file mlDicomModifyFieldAddOnList.h.

Member Function Documentation

◆ applyModifications()

template<typename BASE_FIELD_ADD_ON_TYPE , typename PIMPL_OBJ_TYPE = void*>
std::string ml::DicomModifyFieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE >::applyModifications ( DCMTree::TreePtr dcmTree,
const FieldContainer * treeInfos = nullptr )
inlineoverride

Add functionality of additional methods of DicomModifyFieldAddOnBase; addFields(), handleFieldActivationChanges(), and handleFieldChanges(Field *field) is already implemented in FieldAddOnList base class.

Applies DicomModifyFieldAddOnBase::applyModifications for each instance, and returns the concatenation of all return values.

Definition at line 51 of file mlDicomModifyFieldAddOnList.h.

References mlrange_cast().

◆ checkConsistency()

template<typename BASE_FIELD_ADD_ON_TYPE , typename PIMPL_OBJ_TYPE = void*>
std::string ml::DicomModifyFieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE >::checkConsistency ( ) const
inlineoverride

Applies DicomModifyFieldAddOnBase::checkConsistency to each instance, and returns the concatenation of all return values.

Definition at line 71 of file mlDicomModifyFieldAddOnList.h.

References mlrange_cast().

◆ inheritValues()

template<typename BASE_FIELD_ADD_ON_TYPE , typename PIMPL_OBJ_TYPE = void*>
void ml::DicomModifyFieldAddOnList< BASE_FIELD_ADD_ON_TYPE, PIMPL_OBJ_TYPE >::inheritValues ( DCMTree::Const_TreePtr dcmTree)
inlineoverride

Applies DicomModifyFieldAddOnBase::inheritValues for each instance.

Definition at line 63 of file mlDicomModifyFieldAddOnList.h.

References mlrange_cast().


The documentation for this class was generated from the following file: