std::messages< _CharT >(3cxx) | std::messages< _CharT >(3cxx) |
NAME¶
std::messages< _CharT > -SYNOPSIS¶
Inherits std::locale::facet, and std::messages_base. Inherited by std::messages_byname< _CharT >.Public Types¶
typedef int catalog
typedef _CharT char_type
Public Member Functions¶
messages (size_t __refs=0)
Static Public Attributes¶
static locale::id id
Protected Member Functions¶
virtual ~messages ()
Static Protected Member Functions¶
static __c_locale _S_clone_c_locale (__c_locale &__cloc) throw ()
Protected Attributes¶
__c_locale _M_c_locale_messages
Detailed Description¶
template<typename _CharT>singleton std::messages< _CharT >¶
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. Definition at line 1695 of file locale_facets_nonio.h.Member Typedef Documentation¶
template<typename _CharT > typedef _CharT std::messages< _CharT >::char_type¶
Public typedefs. Definition at line 1701 of file locale_facets_nonio.h.template<typename _CharT > typedef basic_string<_CharT> std::messages< _CharT >:: string_type¶
Public typedefs. Definition at line 1702 of file locale_facets_nonio.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 44 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 50 of file messages_members.h.
template<typename _CharT > std::messages< _CharT >::~messages () [protected], [virtual]¶
Destructor. Definition at line 79 of file messages_members.h.Member Data Documentation¶
template<typename _CharT > locale::id std::messages< _CharT >::id [static]¶
Numpunct facet id. Definition at line 1713 of file locale_facets_nonio.h.Author¶
Generated automatically by Doxygen for libstdc++ from the source code.Wed Jan 31 2018 | libstdc++ |