Vaca::SignalCommand Class Reference

#include <Command.h>

Inheritance diagram for Vaca::SignalCommand:

Vaca::Command Vaca::NonCopyable

List of all members.

Detailed Description

Specialization of Command class to handle the Command::execute and Command::isEnabled as signals.

Public Member Functions

 SignalCommand (CommandId id)
template<typename F>
 SignalCommand (CommandId id, const F &f)
template<class T>
 SignalCommand (CommandId id, void(T::*m)(), T *t)
virtual ~SignalCommand ()
virtual void execute ()
virtual bool isEnabled ()

Public Attributes

Signal0< void > Execute
Signal0< bool > Enabled

Constructor & Destructor Documentation

Vaca::SignalCommand::SignalCommand ( CommandId  id  )  [inline]

template<typename F>
Vaca::SignalCommand::SignalCommand ( CommandId  id,
const F &  f 
) [inline]

template<class T>
Vaca::SignalCommand::SignalCommand ( CommandId  id,
void(T::*)()  m,
T *  t 
) [inline]

virtual Vaca::SignalCommand::~SignalCommand (  )  [inline, virtual]

Member Function Documentation

virtual void Vaca::SignalCommand::execute (  )  [inline, virtual]

Implements Vaca::Command.

virtual bool Vaca::SignalCommand::isEnabled (  )  [inline, virtual]

Reimplemented from Vaca::Command.

Member Data Documentation