Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

gdcm::SimpleMemberCommand< T > Class Template Reference

Command subclass that calls a pointer to a member function. More...

#include <gdcmCommand.h>

Inheritance diagram for gdcm::SimpleMemberCommand< T >:
Inheritance graph
[legend]
Collaboration diagram for gdcm::SimpleMemberCommand< T >:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

template<typename T>
class gdcm::SimpleMemberCommand< T >

Command subclass that calls a pointer to a member function.

SimpleMemberCommand calls a pointer to a member function with no arguments.


Member Typedef Documentation

template<typename T >
typedef SimpleMemberCommand gdcm::SimpleMemberCommand< T >::Self

Standard class typedefs.

template<typename T >
typedef void(T::* gdcm::SimpleMemberCommand< T >::TMemberFunctionPointer)()

A method callback.


Constructor & Destructor Documentation

template<typename T >
gdcm::SimpleMemberCommand< T >::SimpleMemberCommand (  )  [inline, protected]
template<typename T >
virtual gdcm::SimpleMemberCommand< T >::~SimpleMemberCommand (  )  [inline, protected, virtual]

Member Function Documentation

template<typename T >
virtual void gdcm::SimpleMemberCommand< T >::Execute ( Subject ,
const Event  
) [inline, virtual]

Invoke the callback function.

Implements gdcm::Command.

References gdcm::SimpleMemberCommand< T >::m_MemberFunction.

template<typename T >
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.

template<typename T >
static SmartPointer<SimpleMemberCommand> gdcm::SimpleMemberCommand< T >::New (  )  [inline, static]

Run-time type information (and related methods). Method for creation through the object factory.

template<typename T >
void gdcm::SimpleMemberCommand< T >::SetCallbackFunction ( T *  object,
TMemberFunctionPointer  memberFunction 
) [inline]

Member Data Documentation

template<typename T >
TMemberFunctionPointer gdcm::SimpleMemberCommand< T >::m_MemberFunction [protected]
template<typename T >
T* gdcm::SimpleMemberCommand< T >::m_This [protected]

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

Generated on Mon Jul 29 2013 11:24:34 for GDCM by doxygen 1.7.1
SourceForge.net Logo