#include <ConstantProvider.h>
Collaboration diagram for ConstantProvider:
Public Member Functions | |
~ConstantProvider (void) | |
unsigned int | getBufferTypeIdentifier (std::string description) |
unsigned int | getButtonBufferValue (std::string description) |
unsigned int | getEventTypeIdentifier (std::string description) |
Static Public Member Functions | |
static ConstantProvider * | getInstance () |
Protected Member Functions | |
ConstantProvider (void) |
Since the same maps should be used by different objects, this class is implemented as a singleton.
ConstantProvider::ConstantProvider | ( | void | ) | [protected] |
Constructs an instance of this class.
ConstantProvider::~ConstantProvider | ( | void | ) |
Destroys this class.
ConstantProvider * ConstantProvider::getInstance | ( | ) | [static] |
Provides access to the singleton instance of this class.
unsigned int ConstantProvider::getBufferTypeIdentifier | ( | std::string | description | ) |
Returns the buffer type identifier for the given string description of the type. If no entry is matched to the given description, a new entry is created assigning a unused identifier to it. The description matching is case sensitive.
unsigned int ConstantProvider::getButtonBufferValue | ( | std::string | description | ) |
Returns the button buffer value for the given string description. If no entry is matched to the given description, a new entry is created assigning a unused value to it. The description matching is case sensitive.
unsigned int ConstantProvider::getEventTypeIdentifier | ( | std::string | description | ) |
Returns the event type identifier for the given string description of the type. If no entry is matched to the given description, a new entry is created assigning a unused identifier to it. The description matching is case sensitive.