VoiceMan
Public Member Functions | List of all members
AbstractLangIdResolver Class Referenceabstract

The abstract interface for all classes to get language objects by language identifier. More...

Inheritance diagram for AbstractLangIdResolver:
LangManager

Public Member Functions

virtual const LanggetLangById (LangId langId) const =0
 Returns language object by language ID. More...
 
virtual ~AbstractLangIdResolver ()
 The destructor.
 

Detailed Description

In daemon code language objects are usually identified by special language ID values . This interface declares method to translate such language identifiers to a valid language objects for further operations.

See also
Lang LangManager

Member Function Documentation

virtual const Lang* AbstractLangIdResolver::getLangById ( LangId  langId) const
pure virtual

This method checks if provided language identifier is valid and returns a pointer to corresponding language object or NULL otherwise.

Parameters
[in]langIdThe language identifier to get object by
Returns
The pointer to language object or NULL if language ID is unknown

Implemented in LangManager.