GDCM  2.2.6
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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]

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)
 
- Public Member Functions inherited from gdcm::Subject
 Subject ()
 
 ~Subject ()
 
unsigned long AddObserver (const Event &event, Command *)
 
unsigned long AddObserver (const Event &event, Command *) const
 
CommandGetCommand (unsigned long tag)
 
bool HasObserver (const Event &event) const
 
void InvokeEvent (const Event &)
 
void InvokeEvent (const Event &) const
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
- Public Member Functions inherited from gdcm::Object
 Object ()
 
 Object (const Object &)
 Special requirement for copy/cstor, assigment operator. More...
 
virtual ~Object ()
 
void operator= (const Object &)
 
virtual void Print (std::ostream &) const
 

Static Public Member Functions

static SmartPointer
< SimpleMemberCommand
New ()
 

Protected Member Functions

 SimpleMemberCommand ()
 
virtual ~SimpleMemberCommand ()
 
- Protected Member Functions inherited from gdcm::Command
 Command ()
 
 ~Command ()
 
- Protected Member Functions inherited from gdcm::Object
void Register ()
 
void UnRegister ()
 

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 ( )
inlineprotected
template<typename T >
virtual gdcm::SimpleMemberCommand< T >::~SimpleMemberCommand ( )
inlineprotectedvirtual

Member Function Documentation

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

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 
)
inlinevirtual

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 ( )
inlinestatic

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

References gdcm::SimpleMemberCommand< T >::SimpleMemberCommand().

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 Sat Dec 21 2013 05:56:22 for GDCM by doxygen 1.8.5
SourceForge.net Logo