EasyLocal++ Documentation


 
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

easylocal::StateTester Class Template Reference

#include <EasyLocal.h>

Collaboration diagram for easylocal::StateTester:

Collaboration graph
[legend]
List of all members.

Public Methods

Protected Methods

Protected Attributes


Detailed Description

template<class Input, class Output, class State> class easylocal::StateTester

The State Tester allows to test a State Manager.

Definition at line 1015 of file EasyLocal.h.


Constructor & Destructor Documentation

template<class Input, class Output, class State>
easylocal::StateTester< Input, Output, State >::StateTester<Input, Output, State> ( StateManager< Input, State > * s,
OutputManager< Input, Output, State > * o,
Input * in = NULL )
 

Constructs a state tester by providing it links to a state manager, an output manager, and an input object.

Parameters:
sm   a pointer to a compatible state manager
om   a pointer to a compatible output manager
in   a pointer to an input object

Definition at line 2169 of file EasyLocalTemplates.cpp.

template<class Input, class Output, class State>
easylocal::StateTester<Input, Output, State>::~StateTester<Input, Output, State> ( ) [inline, virtual]
 

Virtual destructor.

Definition at line 1021 of file EasyLocal.h.


Member Function Documentation

template<class Input, class Output, class State>
void easylocal::StateTester< Input, Output, State >::ExecuteChoice ( State & st ) [protected]
 

Execute the menu choice on the given state.

Parameters:
st   the current state

Definition at line 2266 of file EasyLocalTemplates.cpp.

Referenced by RunInputMenu(), and RunTestMenu().

template<class Input, class Output, class State>
void easylocal::StateTester< Input, Output, State >::RunInputMenu ( State & st )
 

Manages an adbridged menu for building the initial state.

Definition at line 2214 of file EasyLocalTemplates.cpp.

template<class Input, class Output, class State>
void easylocal::StateTester< Input, Output, State >::RunTestMenu ( State & st )
 

Manages the state tester menu for the given state.

Parameters:
st   the state to test

Definition at line 2194 of file EasyLocalTemplates.cpp.

template<class Input, class Output, class State>
void easylocal::StateTester< Input, Output, State >::SetInput ( Input * in )
 

Sets the internal input pointer to the new value passed as parameter.

Parameters:
in   the new input.

Definition at line 2182 of file EasyLocalTemplates.cpp.

template<class Input, class Output, class State>
void easylocal::StateTester< Input, Output, State >::ShowMenu ( ) [protected]
 

Outputs the menu options.

Definition at line 2231 of file EasyLocalTemplates.cpp.

Referenced by RunTestMenu().

template<class Input, class Output, class State>
void easylocal::StateTester< Input, Output, State >::ShowReducedMenu ( ) [protected]
 

Outputs a reduced set of options for the initial state building.

Definition at line 2249 of file EasyLocalTemplates.cpp.

Referenced by RunInputMenu().


Member Data Documentation

template<class Input, class Output, class State>
int easylocal::StateTester<Input, Output, State>::choice [protected]
 

The option currently chosen from the menu.

Definition at line 1035 of file EasyLocal.h.

template<class Input, class Output, class State>
Output easylocal::StateTester<Input, Output, State>::out [protected]
 

The output objecct.

Definition at line 1034 of file EasyLocal.h.

template<class Input, class Output, class State>
Input * easylocal::StateTester<Input, Output, State>::p_in [protected]
 

A pointer to an input object.

Definition at line 1033 of file EasyLocal.h.

template<class Input, class Output, class State>
OutputManager< Input, Output, State > * easylocal::StateTester<Input, Output, State>::p_om [protected]
 

A pointer to the attached output manager.

Definition at line 1031 of file EasyLocal.h.

template<class Input, class Output, class State>
StateManager< Input, State > * easylocal::StateTester<Input, Output, State>::p_sm [protected]
 

A pointer to the attached state manager.

Definition at line 1029 of file EasyLocal.h.


The documentation for this class was generated from the following files:
 
Go to: the Main Page of the documentation.