libstdc++
std::messages Class Reference
Inheritance diagram for std::messages:

List of all members.

Public Types

Public Member Functions

Static Public Attributes

Protected Member Functions

Static Protected Member Functions

Protected Attributes

Friends


Detailed Description

Primary class template 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.


Member Typedef Documentation

typedef _CharT std::messages::char_type

Public typedefs.

Reimplemented in std::messages_byname.

Definition at line 1701 of file locale_facets_nonio.h.

Public typedefs.

Reimplemented in std::messages_byname.

Definition at line 1702 of file locale_facets_nonio.h.


Constructor & Destructor Documentation

std::messages::messages ( size_t  __refs = 0) [explicit]

Constructor performs initialization.

This is the constructor provided by the standard.

Parameters:
refsPassed to the base facet class.

Definition at line 45 of file messages_members.h.

std::messages::messages ( __c_locale  __cloc,
const char *  __s,
size_t  __refs = 0 
) [explicit]

Internal constructor. Not for general use.

This is a constructor for use by the library itself to set up new locales.

Parameters:
clocThe C locale.
sThe name of a locale.
refsRefcount to pass to the base class.

Definition at line 51 of file messages_members.h.

std::messages::~messages ( ) [protected, virtual]

Destructor.

Definition at line 80 of file messages_members.h.


Member Data Documentation

Numpunct facet id.

Definition at line 1713 of file locale_facets_nonio.h.


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