ConstantProvider Class Reference

#include <ConstantProvider.h>

Collaboration diagram for ConstantProvider:

Collaboration graph
[legend]
List of all members.

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 ConstantProvidergetInstance ()

Protected Member Functions

 ConstantProvider (void)

Detailed Description

This class provides a set of dictionaries for the values used as type identifiers for buffers and events. The dictionaries consist in maps between string descriptions and identifier values.

Since the same maps should be used by different objects, this class is implemented as a singleton.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
July 24, 2007


Constructor & Destructor Documentation

ConstantProvider::ConstantProvider ( void   )  [protected]

Constructs an instance of this class.

ConstantProvider::~ConstantProvider ( void   ) 

Destroys this class.


Member Function Documentation

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.

Returns:
the buffer type identifier for the given string description of the type.

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.

Returns:
the button buffer value for the given string description.

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.

Returns:
the event type identifier for the given string description of the type.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:46:07 2007 for LargeDisplayFrameworkToolkit by  doxygen 1.5.2