FiReS  0.2.0
FiReS - Filter, Retrieval and Search
fires::PropertyGIDsManager Class Reference

Class for linking property names to properties GIDs. More...

#include <PropertyGIDsManager.h>

+ Collaboration diagram for fires::PropertyGIDsManager:

Static Public Member Functions

static PropertyGID getPropertyGID (const std::string &label)
 Converts from property name to property GID. More...
 
static const std::string & getPropertyLabel (PropertyGID gid)
 Converts from property property GID to property name. More...
 

Static Protected Attributes

static PropertyGID nextPropertyGID
 Next porperty ID to use.
 
static std::map< std::string, PropertyGID > _labelToGID
 Map to convert from name to GID.
 
static std::map< PropertyGID, std::string > _GIDToLabel
 Map to convert from GID to name.
 

Detailed Description

Class for linking property names to properties GIDs.

Definition at line 43 of file PropertyGIDsManager.h.

Member Function Documentation

static PropertyGID fires::PropertyGIDsManager::getPropertyGID ( const std::string &  label)
static

Converts from property name to property GID.

If the property has not been used before a new GID is assigned. If the number of properties exceed the maximum value possible an exception is reaised

Parameters
labelName of the property
Returns
GID of the property

Referenced by fires::PropertyManager::registerProperty(), and fires::DependenciesManager::setUpdater().

+ Here is the caller graph for this function:

static const std::string& fires::PropertyGIDsManager::getPropertyLabel ( PropertyGID  gid)
static

Converts from property property GID to property name.

Parameters
gidGID of the property
Returns
Name of the property

The documentation for this class was generated from the following file: