gcu::LocalizedStringValue Class Reference

#include <gcu/value.h>

Inheritance diagram for gcu::LocalizedStringValue:

gcu::Value

List of all members.

Public Member Functions

 LocalizedStringValue ()
virtual ~LocalizedStringValue ()
char const * GetAsString () const
char const * GetLocalizedString (char const *lang) 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:
lang a 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:

Generated on Fri Sep 24 15:58:47 2010 for The Gnome Chemistry Utils by  doxygen 1.5.9