arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

glift::Command Class Reference

#include <command.h>

Inheritance diagram for glift::Command:

glift::Command0 glift::MemberCommand0< Receiver > List of all members.

Detailed Description

command.h - A simple "Command" object that allows for 'void name()' member callbacks.

Example:

        AClass a;
        MemberCommand0<AClass>* callback = new MemberCommand0(&a, &AClass::daCallBack);
        callback->execute();    //Calls a.daCallBack() 

Command - Base class

Definition at line 52 of file command.h.

Public Member Functions

virtual ~Command ()
virtual void execute ()=0
virtual Commandclone ()=0

Protected Member Functions

 Command ()


Constructor & Destructor Documentation

Command::~Command  )  [virtual]
 

Definition at line 24 of file command.cpp.

glift::Command::Command  )  [inline, protected]
 

Definition at line 60 of file command.h.


Member Function Documentation

virtual Command* glift::Command::clone  )  [pure virtual]
 

Implemented in glift::Command0, and glift::MemberCommand0< Receiver >.

virtual void glift::Command::execute  )  [pure virtual]
 

Implemented in glift::Command0, and glift::MemberCommand0< Receiver >.

Referenced by glift::DispList::compile().


The documentation for this class was generated from the following files:
Send questions, comments, and bug reports to:
jmk