The Gnome Chemistry Utils  0.14.0
Public Member Functions | List of all members
gcu::LocalizedStringValue Class Reference

#include <gcu/value.h>

Inheritance diagram for gcu::LocalizedStringValue:
gcu::Value

Public Member Functions

 LocalizedStringValue ()
virtual ~LocalizedStringValue ()
char const * GetAsString () const
char const * GetLocalizedString (char const *lang) const
- Public Member Functions inherited from gcu::Value
 Value ()
virtual ~Value ()
virtual double GetAsDouble () const

Detailed Description

Used to store translatable strings.

Definition at line 196 of file value.h.

Constructor & Destructor Documentation

gcu::LocalizedStringValue::LocalizedStringValue ( )

Default constructor

virtual gcu::LocalizedStringValue::~LocalizedStringValue ( )
virtual

Default destructor

Member Function Documentation

char const* gcu::LocalizedStringValue::GetAsString ( ) const
virtual
Returns
the string translated to the current locale if known, otherwise, the untranslated string.

Reimplemented from gcu::Value.

char const* gcu::LocalizedStringValue::GetLocalizedString ( char const *  lang) const
Parameters
langa locale name.
Returns
the string translated to the requested locale if known, otherwise, the untranslated string.

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