#include <Wt/WLocalizedStrings>

Public Member Functions | |
| virtual | ~WLocalizedStrings () |
| Destructor. | |
| virtual void | refresh () |
| Rereads the message resources. | |
| virtual void | hibernate () |
| Purges memory resources, if possible. | |
| virtual bool | resolveKey (const std::string &key, std::string &result)=0 |
| Resolves a key in the current locale. | |
This abstract class provides the content to localized WStrings, by resolving the key to a string using the current application locale.
| void Wt::WLocalizedStrings::refresh | ( | ) | [virtual] |
Rereads the message resources.
Purge any cached key/values, if applicable.
The default implementation does nothing.
Reimplemented in Wt::WCombinedLocalizedStrings, and Wt::WMessageResourceBundle.
| void Wt::WLocalizedStrings::hibernate | ( | ) | [virtual] |
Purges memory resources, if possible.
This is called afer event handling, and is an opportunity to conserve memory inbetween events, by freeing memory used for cached key/value bindings, if applicable.
The default implementation does nothing.
Reimplemented in Wt::WCombinedLocalizedStrings, and Wt::WMessageResourceBundle.
| virtual bool Wt::WLocalizedStrings::resolveKey | ( | const std::string & | key, | |
| std::string & | result | |||
| ) | [pure virtual] |
Resolves a key in the current locale.
This method is used by WString to obtain the UTF8 value corresponding to a key in the current locale.
Returns true if the key could be resolved. The value is written in result, encoded using UTF8.
Implemented in Wt::WCombinedLocalizedStrings, and Wt::WMessageResourceBundle.
1.5.6