#include <commands.h>
Inheritance diagram for CCommandContainer:
Public Member Functions | |
CCommandContainer (unsigned int size, CMotionContainer *motion) | |
~CCommandContainer () | |
int | execute (CCommand *control=NULL) |
bool | hasFinished () |
virtual void | add (unsigned int id, CCommand *cmd) |
Protected Attributes | |
CCommand ** | list |
int | listCount |
int | listCurrent |
bool | done |
Aggregate class, i.e. behaves like a normal command but stores several Motion Commands, executes them and signals to caller if all commands have finished.
CCommandContainer::CCommandContainer | ( | unsigned int | size, | |
CMotionContainer * | motion | |||
) |
CCommandContainer::~CCommandContainer | ( | ) |
bool CCommandContainer::hasFinished | ( | ) | [virtual] |
Reimplemented from CCommand.
void CCommandContainer::add | ( | unsigned int | id, | |
CCommand * | cmd | |||
) | [virtual] |
CCommand** CCommandContainer::list [protected] |
int CCommandContainer::listCount [protected] |
int CCommandContainer::listCurrent [protected] |
bool CCommandContainer::done [protected] |