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 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_ |
Private Attributes | |
PrcMapType_ | prcMap_ |
CmdMapType_ | cmdMap_ |
bool | dummy_ |
Static Private Attributes | |
static const Processor * | kvProcessors_ |
static const Processor * | processors_ |
The processor manager.
This class
centralizes 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 |
const Command& getCommand | ( | const string & | name | ) | const |
value::Vector getCmdList | ( | ) | const |
bool dummy_ [private] |
The following three data members are used to refer to ProcessorInstantiators implemented by bridge libraries. Otherwise, the processor pointers won't be included by the linker and, consequently, registration won't occur.