#include <locale_facets.h>
Inheritance diagram for std::messages< _CharT >:
Public Types | |
typedef _CharT | char_type |
Public typedefs. | |
typedef basic_string< _CharT > | string_type |
Public Member Functions | |
messages (size_t __refs=0) | |
Constructor performs initialization. | |
messages (__c_locale __cloc, const char *__s, size_t __refs=0) | |
Internal constructor. Not for general use. | |
catalog | open (const basic_string< char > &__s, const locale &__loc) const |
catalog | open (const basic_string< char > &, const locale &, const char *) const |
string_type | get (catalog __c, int __set, int __msgid, const string_type &__s) const |
void | close (catalog __c) const |
Static Public Attributes | |
locale::id | id |
Numpunct facet id. | |
Protected Member Functions | |
virtual | ~messages () |
Destructor. | |
virtual catalog | do_open (const basic_string< char > &, const locale &) const |
virtual string_type | do_get (catalog, int, int, const string_type &__dfault) const |
virtual void | do_close (catalog) const |
char * | _M_convert_to_char (const string_type &__msg) const |
string_type | _M_convert_from_char (char *) const |
Protected Attributes | |
__c_locale | _M_c_locale_messages |
const char * | _M_name_messages |
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 4728 of file locale_facets.h.
|
Public typedefs.
Reimplemented in std::messages_byname< _CharT >. Definition at line 4734 of file locale_facets.h. |
|
Reimplemented in std::messages_byname< _CharT >. Definition at line 4735 of file locale_facets.h. |
|
Constructor performs initialization. This is the constructor provided by the standard.
|
|
Internal constructor. Not for general use. This is a constructor for use by the library itself to set up new locales.
|
|
Destructor.
|
|
Definition at line 4889 of file locale_facets.h. |
|
Definition at line 4881 of file locale_facets.h. |
|
Definition at line 4830 of file locale_facets.h. |
|
Referenced by std::moneypunct< _CharT, _Intl >::do_neg_format(). |
|
Referenced by std::moneypunct< _CharT, _Intl >::do_pos_format(). |
|
Referenced by std::moneypunct< _CharT, _Intl >::do_negative_sign(). |
|
Definition at line 4819 of file locale_facets.h. |
|
|
|
Definition at line 4783 of file locale_facets.h. |
|
Definition at line 4741 of file locale_facets.h. |
|
Definition at line 4742 of file locale_facets.h. |
|
Numpunct facet id.
Definition at line 4930 of file locale_facets.h. |