#include <ModuleHandler.h>
Inheritance diagram for ModuleHandler:
Public Member Functions | |
ModuleHandler () | |
Constructor. | |
ModuleSelector * | pGetModuleSelector (SolutionRequest::ModuleID id) const |
Returns pointer to selector module. | |
void | setModuleSelector (SolutionRequest::ModuleID id, ModuleSelector *module) |
Set pointer to selector module. | |
SolutionRequest::ModuleSolutionID | getSelectedSolution (SolutionRequest::ModuleID id) const |
Returns the id of the selected solution for a module id. | |
void | selectSolution (SolutionRequest::ModuleID id, SolutionRequest::ModuleSolutionID solution) |
Selects solution defined by solution in module id. | |
void | selectSolutions (SolutionRequest request) |
Selects solutions as defined by a solution request. | |
virtual bool | handleMessage (InMessage &message) |
Called from a MessageQueue to distribute messages. | |
Private Attributes | |
ModuleSelector * | pModuleSelectors [SolutionRequest::numOfModules] |
Pointers to all module selectors. |
Martin Lötzsch
Definition at line 23 of file ModuleHandler.h.
|
Constructor.
Definition at line 13 of file ModuleHandler.cpp. References pModuleSelectors. |
|
Returns pointer to selector module.
Definition at line 19 of file ModuleHandler.cpp. References pModuleSelectors. |
|
Here is the call graph for this function:
|
Returns the id of the selected solution for a module id.
Definition at line 47 of file ModuleHandler.cpp. References ModuleSelector::getSelectedSolution(), and pModuleSelectors. Referenced by selectSolution(). |
Here is the call graph for this function:
|
Selects solution defined by solution in module id.
Definition at line 55 of file ModuleHandler.cpp. References getSelectedSolution(), ModuleSelector::getSelectedSolution(), idText, OUTPUT, pModuleSelectors, and ModuleSelector::selectSolution(). Referenced by selectSolutions(). |
Here is the call graph for this function:
|
Selects solutions as defined by a solution request.
Definition at line 67 of file ModuleHandler.cpp. References selectSolution(), and SolutionRequest::solutions. Referenced by Process::handleMessage(). |
Here is the call graph for this function:
|
Called from a MessageQueue to distribute messages. Use message.getMessageID to decide if the message is relavant for the MesssageHandler derivate. Use message.bin, message.text or message.config as In streams to get the data from.
Implements MessageHandler. Definition at line 24 of file ModuleHandler.cpp. References ModuleSelector::handleMessage(), pModuleSelectors, and InMessage::resetReadPosition(). Referenced by Process::handleMessage(). |
Here is the call graph for this function:
|
Pointers to all module selectors.
Definition at line 27 of file ModuleHandler.h. Referenced by getSelectedSolution(), handleMessage(), ModuleHandler(), pGetModuleSelector(), selectSolution(), and setModuleSelector(). |