.TH "std::messages< _CharT >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::messages< _CharT > \- Primary class template messages\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBstd::locale::facet\fP, and \fBstd::messages_base\fP\&. .PP Inherited by \fBstd::messages_byname< _CharT >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "\fBtypedef\fP int \fBcatalog\fP" .br .in -1c .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "\fBtypedef\fP _CharT \fBchar_type\fP" .br .RI "Public typedefs\&. " .ti -1c .RI "\fBtypedef\fP \fBbasic_string\fP< _CharT > \fBstring_type\fP" .br .RI "Public typedefs\&. " .in -1c .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBmessages\fP (__c_locale \fB__cloc\fP, \fBconst\fP char *\fB__s\fP, size_t \fB__refs\fP=0)" .br .RI "Internal constructor\&. Not for general use\&. " .ti -1c .RI "\fBmessages\fP (size_t \fB__refs\fP=0)" .br .RI "Constructor performs initialization\&. " .ti -1c .RI "\fBvoid\fP \fBclose\fP (catalog __c) \fBconst\fP" .br .ti -1c .RI "\fBstring_type\fP \fBget\fP (catalog __c, int \fB__set\fP, int \fB__msgid\fP, \fBconst\fP \fBstring_type\fP &\fB__s\fP) \fBconst\fP" .br .ti -1c .RI "catalog \fBopen\fP (\fBconst\fP \fBbasic_string\fP< char > &, \fBconst\fP \fBlocale\fP &, \fBconst\fP char *) \fBconst\fP" .br .ti -1c .RI "catalog \fBopen\fP (\fBconst\fP \fBbasic_string\fP< char > &\fB__s\fP, \fBconst\fP \fBlocale\fP &\fB__loc\fP) \fBconst\fP" .br .in -1c .SS "Static Public Attributes" .in +1c .ti -1c .RI "\fBstatic\fP \fBlocale::id\fP \fBid\fP" .br .RI "Numpunct facet id\&. " .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fBvirtual\fP \fB~messages\fP ()" .br .RI "Destructor\&. " .ti -1c .RI "\fBstring_type\fP \fB_M_convert_from_char\fP (char *) \fBconst\fP" .br .ti -1c .RI "char * \fB_M_convert_to_char\fP (\fBconst\fP \fBstring_type\fP &\fB__msg\fP) \fBconst\fP" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBdo_close\fP (catalog) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBdo_close\fP (catalog) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBdo_close\fP (catalog) \fBconst\fP" .br .ti -1c .RI "\fBstring\fP \fBdo_get\fP (catalog, int, int, \fBconst\fP \fBstring\fP &) \fBconst\fP" .br .RI "Specializations for required instantiations\&. " .ti -1c .RI "\fBvirtual\fP \fBstring_type\fP \fBdo_get\fP (catalog, int, int, \fBconst\fP \fBstring_type\fP &\fB__dfault\fP) \fBconst\fP" .br .ti -1c .RI "\fBwstring\fP \fBdo_get\fP (catalog, int, int, \fBconst\fP \fBwstring\fP &) \fBconst\fP" .br .ti -1c .RI "\fBvirtual\fP catalog \fBdo_open\fP (\fBconst\fP \fBbasic_string\fP< char > &, \fBconst\fP \fBlocale\fP &) \fBconst\fP" .br .ti -1c .RI "\fBmessages\fP< char >::catalog \fBdo_open\fP (\fBconst\fP \fBbasic_string\fP< char > &, \fBconst\fP \fBlocale\fP &) \fBconst\fP" .br .ti -1c .RI "\fBmessages\fP< wchar_t >::catalog \fBdo_open\fP (\fBconst\fP \fBbasic_string\fP< char > &, \fBconst\fP \fBlocale\fP &) \fBconst\fP" .br .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "\fBstatic\fP __c_locale \fB_S_clone_c_locale\fP (__c_locale &\fB__cloc\fP) \fBthrow\fP ()" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fB_S_create_c_locale\fP (__c_locale &\fB__cloc\fP, \fBconst\fP char *\fB__s\fP, __c_locale \fB__old\fP=0)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fB_S_destroy_c_locale\fP (__c_locale &\fB__cloc\fP)" .br .ti -1c .RI "\fBstatic\fP __c_locale \fB_S_get_c_locale\fP ()" .br .ti -1c .RI "\fBstatic\fP \fBconst\fP char * \fB_S_get_c_name\fP () \fBthrow\fP ()" .br .ti -1c .RI "\fBstatic\fP __c_locale \fB_S_lc_ctype_c_locale\fP (__c_locale \fB__cloc\fP, \fBconst\fP char *\fB__s\fP)" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "__c_locale \fB_M_c_locale_messages\fP" .br .ti -1c .RI "\fBconst\fP char * \fB_M_name_messages\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template<\fBtypename\fP _CharT> .br class 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\&. .PP 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\&. .PP 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\&. .SH "Member Typedef Documentation" .PP .SS "template<\fBtypename\fP _CharT > \fBtypedef\fP _CharT \fBstd::messages\fP< _CharT >::char_type" .PP Public typedefs\&. .SS "template<\fBtypename\fP _CharT > \fBtypedef\fP \fBbasic_string\fP<_CharT> \fBstd::messages\fP< _CharT >::string_type" .PP Public typedefs\&. .SH "Constructor & Destructor Documentation" .PP .SS "template<\fBtypename\fP _CharT > \fBstd::messages\fP< _CharT >::messages (size_t __refs = \fC0\fP)\fC [explicit]\fP" .PP Constructor performs initialization\&. This is the constructor provided by the standard\&. .PP \fBParameters\fP .RS 4 \fI__refs\fP Passed to the base facet class\&. .RE .PP .SS "template<\fBtypename\fP _CharT > \fBstd::messages\fP< _CharT >::messages (__c_locale __cloc, \fBconst\fP char * __s, size_t __refs = \fC0\fP)\fC [explicit]\fP" .PP Internal constructor\&. Not for general use\&. This is a constructor for use by the library itself to set up new locales\&. .PP \fBParameters\fP .RS 4 \fI__cloc\fP The C locale\&. .br \fI__s\fP The name of a locale\&. .br \fI__refs\fP Refcount to pass to the base class\&. .RE .PP .SS "template<\fBtypename\fP _CharT > \fBstd::messages\fP< _CharT >::~\fBmessages\fP ()\fC [protected]\fP, \fC [virtual]\fP" .PP Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBstring\fP \fBstd::messages\fP< char >::do_get (catalog, int, int, \fBconst\fP \fBstring\fP &) const\fC [protected]\fP" .PP Specializations for required instantiations\&. .SH "Member Data Documentation" .PP .SS "template<\fBtypename\fP _CharT > \fBlocale::id\fP \fBstd::messages\fP< _CharT >::id\fC [static]\fP" .PP Numpunct facet id\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.