Public Member Functions | List of all members
Program Class Reference

Sequence consisting of Command:s retrieved from a CommandBank. More...

#include <Program.h>

Inheritance diagram for Program:
Inheritance graph
[legend]
Collaboration diagram for Program:
Collaboration graph
[legend]

Public Member Functions

 Program (const Program &prog)
 
 Program (Context &ctx)
 
Commandadd (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. More...
 

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
ContextcontextPtr
 

Detailed Description

Sequence consisting of Command:s retrieved from a CommandBank.

A program may contain a single routine.


The documentation for this class was generated from the following files: