|
GDCM 3.0.24
|
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 | |
| SimpleMemberCommand (const Self &)=delete | |
| void | Execute (const Subject *, const Event &) override |
| void | Execute (Subject *, const Event &) override |
| void | operator= (const Self &)=delete |
| void | SetCallbackFunction (T *object, TMemberFunctionPointer memberFunction) |
Public Member Functions inherited from gdcm::Command | |
| Command (const Command &)=delete | |
| void | operator= (const Command &)=delete |
Public Member Functions inherited from gdcm::Subject | |
| Subject () | |
| ~Subject () override | |
| unsigned long | AddObserver (const Event &event, Command *) |
| unsigned long | AddObserver (const Event &event, Command *) const |
| Command * | GetCommand (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, assignment operator. | |
| virtual | ~Object () |
| void | operator= (const Object &) |
| virtual void | Print (std::ostream &) const |
Static Public Member Functions | |
| static SmartPointer< SimpleMemberCommand > | New () |
Protected Member Functions | |
| SimpleMemberCommand () | |
| ~SimpleMemberCommand () override=default | |
Protected Member Functions inherited from gdcm::Command | |
| Command () | |
| ~Command () override | |
Protected Member Functions inherited from gdcm::Object | |
| void | Register () |
| void | UnRegister () |
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.
|
delete |
|
inlineprotected |
Referenced by gdcm::SimpleMemberCommand< T >::New().
|
overrideprotecteddefault |
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
Invoke the callback function.
Implements gdcm::Command.
References gdcm::SimpleMemberCommand< T >::m_MemberFunction.
|
inlinestatic |
Run-time type information (and related methods). Method for creation through the object factory.
References gdcm::SimpleMemberCommand< T >::SimpleMemberCommand().
|
delete |
|
inline |
Specify the callback function.
References gdcm::SimpleMemberCommand< T >::m_MemberFunction, and gdcm::SimpleMemberCommand< T >::m_This.
|
protected |
|
protected |
Referenced by gdcm::SimpleMemberCommand< T >::SetCallbackFunction().