std::messages< _CharT > Class Template Reference

Inheritance diagram for std::messages< _CharT >:

Inheritance graph
List of all members.

Detailed Description

template<typename _CharT>
class std::messages< _CharT >

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 4364 of file locale_facets.h.

Public Types

Public Member Functions

Static Public Attributes

Protected Member Functions

Static Protected Member Functions

Protected Attributes

Friends


Member Typedef Documentation

template<typename _CharT>
typedef _CharT std::messages< _CharT >::char_type

Public typedefs.

Reimplemented in std::messages_byname< _CharT >.

Definition at line 4370 of file locale_facets.h.

template<typename _CharT>
typedef basic_string<_CharT> std::messages< _CharT >::string_type

Public typedefs.

Reimplemented in std::messages_byname< _CharT >.

Definition at line 4371 of file locale_facets.h.


Constructor & Destructor Documentation

template<typename _CharT>
std::messages< _CharT >::messages ( size_t  __refs = 0  )  [explicit]

Constructor performs initialization.

This is the constructor provided by the standard.

Parameters:
refs Passed to the base facet class.

Definition at line 45 of file messages_members.h.

template<typename _CharT>
std::messages< _CharT >::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:
cloc The "C" locale.
s The name of a locale.
refs Refcount to pass to the base class.

Definition at line 51 of file messages_members.h.

References std::messages< _CharT >::_M_c_locale_messages, and std::messages< _CharT >::_M_name_messages.

template<typename _CharT>
std::messages< _CharT >::~messages (  )  [protected, virtual]

Destructor.

Definition at line 75 of file messages_members.h.

References std::messages< _CharT >::_M_c_locale_messages, and std::messages< _CharT >::_M_name_messages.


Member Data Documentation

template<typename _CharT>
locale::id std::messages< _CharT >::id [static]

Numpunct facet id.

Definition at line 4382 of file locale_facets.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 1 13:17:57 2007 for libstdc++ by  doxygen 1.5.1