31 virtual void Execute(
Subject *caller,
const Event & event ) = 0;
37 virtual void Execute(
const Subject *caller,
const Event & event ) = 0;
120 void operator=(
const Self&);
130 template <
typename T>
182 void operator=(
const Self&);
187 #endif //GDCMCOMMAND_H
superclass for callback/observer methods
Definition: gdcmEvent.h:26
Command subclass that calls a pointer to a member function.
Definition: gdcmCommand.h:56
T * m_This
Definition: gdcmCommand.h:175
static SmartPointer< SimpleMemberCommand > New()
Definition: gdcmCommand.h:145
virtual ~MemberCommand()
Definition: gdcmCommand.h:116
T * m_This
Definition: gdcmCommand.h:112
void(T::* TMemberFunctionPointer)()
Definition: gdcmCommand.h:135
static SmartPointer< MemberCommand > New()
Definition: gdcmCommand.h:69
void(T::* TMemberFunctionPointer)(Subject *, const Event &)
Definition: gdcmCommand.h:60
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
void(T::* TConstMemberFunctionPointer)(const Subject *, const Event &)
Definition: gdcmCommand.h:61
void SetCallbackFunction(T *object, TConstMemberFunctionPointer memberFunction)
Definition: gdcmCommand.h:85
TMemberFunctionPointer m_MemberFunction
Definition: gdcmCommand.h:113
SimpleMemberCommand()
Definition: gdcmCommand.h:177
MemberCommand()
Definition: gdcmCommand.h:115
TConstMemberFunctionPointer m_ConstMemberFunction
Definition: gdcmCommand.h:114
Subject.
Definition: gdcmSubject.h:28
Command superclass for callback/observer methods.
Definition: gdcmCommand.h:27
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
Definition: gdcmCommand.h:151
Class for Smart Pointer.
Definition: gdcmObject.h:26
virtual void Execute(Subject *caller, const Event &event)
Definition: gdcmCommand.h:93
SimpleMemberCommand Self
Definition: gdcmCommand.h:138
virtual void Execute(const Subject *caller, const Event &event)
Definition: gdcmCommand.h:102
virtual void Execute(const Subject *, const Event &)
Definition: gdcmCommand.h:166
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
Definition: gdcmCommand.h:79
Command subclass that calls a pointer to a member function.
Definition: gdcmCommand.h:131
TMemberFunctionPointer m_MemberFunction
Definition: gdcmCommand.h:176
virtual ~SimpleMemberCommand()
Definition: gdcmCommand.h:178
virtual void Execute(Subject *, const Event &)
Definition: gdcmCommand.h:159
MemberCommand Self
Definition: gdcmCommand.h:65