BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions
BeeeOn::LocaleImpl Class Referenceabstract

#include <LocaleImpl.h>

Inheritance diagram for BeeeOn::LocaleImpl:
BeeeOn::SystemLocaleImpl

Public Member Functions

virtual std::string language () const =0
 
virtual std::string country () const =0
 
virtual std::string displayName () const =0
 
virtual std::string toString () const =0
 

Detailed Description

Abstract representation of locale. This makes us independent on the target locale implementation.

Member Function Documentation

virtual std::string BeeeOn::LocaleImpl::country ( ) const
pure virtual

Returns country code of the locale.

Implemented in BeeeOn::SystemLocaleImpl.

virtual std::string BeeeOn::LocaleImpl::displayName ( ) const
pure virtual

Name to display to user.

It displays its name via its locale. Thus if the locale is en_US, you would get English (USA). If the locale is cs_CZ, the result would be Čeština (Česká republika).

Implemented in BeeeOn::SystemLocaleImpl.

virtual std::string BeeeOn::LocaleImpl::language ( ) const
pure virtual

Returns language code of the locale.

Implemented in BeeeOn::SystemLocaleImpl.

virtual std::string BeeeOn::LocaleImpl::toString ( ) const
pure virtual

String representation of the locale. It is usually a code like en_US.

Implemented in BeeeOn::SystemLocaleImpl.


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