messages Class Template Reference

#include <locale_facets.h>

Inheritance diagram for messages:

Inheritance graph
Collaboration diagram for messages:

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

Public Types

Public Member Functions

Static Public Attributes

Protected Member Functions

Static Protected Member Functions

Protected Attributes


Member Typedef Documentation

typedef CharT char_type
 

Public typedefs.

Definition at line 4263 of file locale_facets.h.

typedef basic_string<CharT> string_type
 

Public typedefs.

Definition at line 4264 of file locale_facets.h.


Constructor & Destructor Documentation

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.

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.

virtual ~messages  )  [protected, virtual]
 

Destructor.


Member Data Documentation

locale::id id [static]
 

Numpunct facet id.

Definition at line 4459 of file locale_facets.h.


The documentation for this class was generated from the following file:
Generated on Sun Sep 12 15:50:22 2004 for libstdc++ source by doxygen 1.3.8