Command superclass for callback/observer methods.
Definition gdcmCommand.h:28
virtual void Execute(Subject *caller, const Event &event)=0
Abstract method that defines the action to be taken by the command.
Command(const Command &)=delete
virtual void Execute(const Subject *caller, const Event &event)=0
void operator=(const Command &)=delete
superclass for callback/observer methods
Definition gdcmEvent.h:27
Command subclass that calls a pointer to a member function.
Definition gdcmCommand.h:56
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
Definition gdcmCommand.h:82
MemberCommand()
Definition gdcmCommand.h:118
void Execute(const Subject *caller, const Event &event) override
Definition gdcmCommand.h:105
void(T::* TConstMemberFunctionPointer)(const Subject *, const Event &)
Definition gdcmCommand.h:61
static SmartPointer< MemberCommand > New()
Definition gdcmCommand.h:72
T * m_This
Definition gdcmCommand.h:115
TConstMemberFunctionPointer m_ConstMemberFunction
Definition gdcmCommand.h:117
void Execute(Subject *caller, const Event &event) override
Definition gdcmCommand.h:96
void operator=(const Self &)=delete
void(T::* TMemberFunctionPointer)(Subject *, const Event &)
Definition gdcmCommand.h:60
void SetCallbackFunction(T *object, TConstMemberFunctionPointer memberFunction)
Definition gdcmCommand.h:88
~MemberCommand() override=default
TMemberFunctionPointer m_MemberFunction
Definition gdcmCommand.h:116
MemberCommand(const Self &)=delete
MemberCommand Self
Definition gdcmCommand.h:65
Command subclass that calls a pointer to a member function.
Definition gdcmCommand.h:131
void(T::* TMemberFunctionPointer)()
Definition gdcmCommand.h:135
SimpleMemberCommand()
Definition gdcmCommand.h:180
void Execute(const Subject *, const Event &) override
Definition gdcmCommand.h:169
void Execute(Subject *, const Event &) override
Definition gdcmCommand.h:162
SimpleMemberCommand(const Self &)=delete
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
Definition gdcmCommand.h:154
~SimpleMemberCommand() override=default
T * m_This
Definition gdcmCommand.h:178
void operator=(const Self &)=delete
TMemberFunctionPointer m_MemberFunction
Definition gdcmCommand.h:179
static SmartPointer< SimpleMemberCommand > New()
Definition gdcmCommand.h:148
SimpleMemberCommand Self
Definition gdcmCommand.h:138
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
Subject.
Definition gdcmSubject.h:29
#define GDCM_EXPORT
Definition gdcmWin32.h:34