![]() |
|
Sequence consisting of Command:s retrieved from a CommandBank. More...
#include <Program.h>


Public Member Functions | |
| Program (const Program &prog) | |
| Program (Context &ctx) | |
| Command & | add (const std::string &key, Command &cmd) |
| void | run () const |
| Main. | |
Public Member Functions inherited from CommandSequence< std::pair< std::string, Command * > > | |
| operator bool () | |
| Check if this routine is defined. | |
Public Member Functions inherited from Contextual | |
| Contextual () | |
| Sets internal contextPtr to NULL. | |
| Contextual (const Contextual &src) | |
| Copies base context (even null) of the source. Notice that the actual instance may be of derived class. | |
| Contextual (Context &ctx) | |
| Copies internal contextPtr. | |
| template<class C > | |
| void | setContext () |
| Sets internal contextPtr to the static source. | |
| void | setExternalContext (Context &ctx) |
| Sets internal contextPtr to outside target. | |
| bool | contextIsSet () const |
| True, if contextPtr has been set. | |
| template<class T = Context> | |
| T & | getContext () const |
| If context has been set, returns it through a cast to base class Context. | |
Additional Inherited Members | |
Public Types inherited from CommandSequence< std::pair< std::string, Command * > > | |
| typedef std::pair< std::string, Command * > | entry_t |
| typedef std::list< std::pair< std::string, Command * > > | list_t |
Static Public Member Functions inherited from Contextual | |
| template<class T > | |
| static Cloner< Context, T > & | getCloner () |
Protected Attributes inherited from Contextual | |
| Context * | contextPtr |
Sequence consisting of Command:s retrieved from a CommandBank.
A program may contain a single routine.
1.9.8