The processor manager. More...
#include <keyvalue/mngt/ProcessorMngr.h>
Public Member Functions | |
| void | add (const Processor &processor) |
| Registers a Processor. | |
| const Processor & | getProcessor (const string &name) const |
| Gets Processor of a given name. | |
| const AbstractBuilder * | findBuilder (const ::std::type_info &type) const |
| Gets the Builder for a given type. | |
| const Command & | getCommand (const string &name) const |
| Gets Command of a given name. | |
| value::Vector | getCmdList () const |
| Gets the list of all registered Commands. | |
Private Types | |
|
typedef ::std::map< string, const Processor * > | PrcMapType_ |
|
typedef ::std::map< string, const Command * > | CmdMapType_ |
|
typedef ::std::map< const std::type_info *, const AbstractBuilder * > | BldMapType_ |
Private Attributes | |
| PrcMapType_ | prcMap_ |
| CmdMapType_ | cmdMap_ |
| BldMapType_ | bldMap_ |
The processor manager.
This class centralises the processing of all types of results. It maps Processor's names to a corresponding pointer to Processor.
Given the Processor's name and an input sufficient for the processing, this class redirects the input to the correct Processor.
Use util::Global to access the global ProcessorMngr.
| void add | ( | const Processor & | processor | ) |
| const Processor& getProcessor | ( | const string & | name | ) | const |
Gets Processor of a given name.
| name | : The name of the Processor to be retrieved. |
| RuntimeError | : If there is no registered Processor called name. |
| const AbstractBuilder* findBuilder | ( | const ::std::type_info & | type | ) | const |
| const Command& getCommand | ( | const string & | name | ) | const |
Gets Command of a given name.
| name | : The name of the Command to be retrieved. |
| RuntimeError | : If there is no registered Command called name. |
| value::Vector getCmdList | ( | ) | const |
1.7.1