std::messages - cppreference.com (original) (raw)

| | | | | ---------------------------------------- | | | | template< class CharT > class messages; | | |

Class template std::messages is a standard locale facet that encapsulates retrieval of strings from message catalogs, such as the ones provided by GNU gettext or by POSIX catgets.

The source of the messages is implementation-defined.

std-messages-inheritance.svg

Inheritance diagram

Contents

[edit] Specializations

The standard library is guaranteed to provide the following specializations (they are required to be implemented by any locale object):

std::messages<char> accesses narrow string message catalog
std::messages<wchar_t> accesses wide string message catalog

[edit] Nested types

[edit] Data members

[edit] Member functions

| | constructs a new messages facet (public member function) | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | destructs a messages facet (protected member function) | | | invokes do_open (public member function) [edit] | | | invokes do_get (public member function) [edit] | | | invokes do_close (public member function) [edit] |

[edit] Protected member functions

| | opens a named message catalog (virtual protected member function) [edit] | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | retrieves a message from an open message catalog (virtual protected member function) [edit] | | | closes a message catalog (virtual protected member function) [edit] |

Inherited from std::messages_base

Nested types

Type Definition
catalog an unspecified signed integer type

[edit] See also