Facet for handling message catalogs. More...
This facet encapsulates the code to retrieve messages from message catalogs. The only thing defined by the standard for this facet is the interface. All underlying functionality is implementation-defined.
This library currently implements 3 versions of the message facet. The first version (gnu) is a wrapper around gettext, provided by libintl. The second version (ieee) is a wrapper around catgets. The final version (default) does no actual translation. These implementations are only provided for char and wchar_t instantiations.
The messages template uses protected virtual functions to provide the actual results. The public accessors forward the call to the virtual functions. These virtual functions are hooks for developers to implement the behavior they require from the messages facet.
Definition at line 4317 of file locale_facets.h.
typedef _CharT char_type |
Public typedefs.
Reimplemented in messages_byname< _CharT >.
Definition at line 4323 of file locale_facets.h.
typedef basic_string<_CharT> string_type |
Public typedefs.
Reimplemented in messages_byname< _CharT >.
Definition at line 4324 of file locale_facets.h.
messages | ( | size_t | __refs = 0 |
) | [explicit] |
Constructor performs initialization.
This is the constructor provided by the standard.
refs | Passed to the base facet class. |
messages | ( | __c_locale | __cloc, | |
const char * | __s, | |||
size_t | __refs = 0 | |||
) | [explicit] |
virtual ~messages | ( | ) | [protected, virtual] |
Destructor.
locale::id id [inline, static] |
Numpunct facet id.
Definition at line 4335 of file locale_facets.h.