Command subclass that calls a pointer to a member function. More...
#include <gdcmCommand.h>
Public Types | |
typedef SimpleMemberCommand | Self |
typedef void(T::* | TMemberFunctionPointer )() |
Public Member Functions | |
virtual void | Execute (Subject *, const Event &) |
virtual void | Execute (const Subject *, const Event &) |
void | SetCallbackFunction (T *object, TMemberFunctionPointer memberFunction) |
Static Public Member Functions | |
static SmartPointer < SimpleMemberCommand > | New () |
Protected Member Functions | |
SimpleMemberCommand () | |
virtual | ~SimpleMemberCommand () |
Protected Attributes | |
TMemberFunctionPointer | m_MemberFunction |
T * | m_This |
Command subclass that calls a pointer to a member function.
SimpleMemberCommand calls a pointer to a member function with no arguments.
typedef SimpleMemberCommand gdcm::SimpleMemberCommand< T >::Self |
Standard class typedefs.
typedef void(T::* gdcm::SimpleMemberCommand< T >::TMemberFunctionPointer)() |
A method callback.
gdcm::SimpleMemberCommand< T >::SimpleMemberCommand | ( | ) | [inline, protected] |
Referenced by gdcm::SimpleMemberCommand< T >::New().
virtual gdcm::SimpleMemberCommand< T >::~SimpleMemberCommand | ( | ) | [inline, protected, virtual] |
virtual void gdcm::SimpleMemberCommand< T >::Execute | ( | Subject * | , |
const Event & | |||
) | [inline, virtual] |
Invoke the callback function.
Implements gdcm::Command.
References gdcm::SimpleMemberCommand< T >::m_MemberFunction.
virtual void gdcm::SimpleMemberCommand< T >::Execute | ( | const Subject * | caller, |
const Event & | event | ||
) | [inline, virtual] |
Abstract method that defines the action to be taken by the command. This variant is expected to be used when requests comes from a const Object
Implements gdcm::Command.
References gdcm::SimpleMemberCommand< T >::m_MemberFunction.
static SmartPointer<SimpleMemberCommand> gdcm::SimpleMemberCommand< T >::New | ( | ) | [inline, static] |
Run-time type information (and related methods). Method for creation through the object factory.
References gdcm::SimpleMemberCommand< T >::SimpleMemberCommand().
void gdcm::SimpleMemberCommand< T >::SetCallbackFunction | ( | T * | object, |
TMemberFunctionPointer | memberFunction | ||
) | [inline] |
Specify the callback function.
References gdcm::SimpleMemberCommand< T >::m_MemberFunction, and gdcm::SimpleMemberCommand< T >::m_This.
TMemberFunctionPointer gdcm::SimpleMemberCommand< T >::m_MemberFunction [protected] |
T* gdcm::SimpleMemberCommand< T >::m_This [protected] |
Referenced by gdcm::SimpleMemberCommand< T >::SetCallbackFunction().