Namespaces
Variants
Views
Actions

std::messages

From cppreference.com
< cpp‎ | locale
Revision as of 23:09, 31 May 2013 by P12bot (Talk | contribs)

Defined in header <locale>
template< class CharT >
class messages;

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

cpp/locale/messages basecpp/locale/locale/facetstd-messages-inheritance.svg
About this image

Inheritance diagram

Two specializations are provided by the standard library and are implemented by all locale objects created in a C++ program:

Defined in header <locale>
std::messages<char> accesses narrow string message catalog
std::messages<wchar_t> accesses wide string message catalog

Contents

Member types

Member type Definition
char_type CharT
string_type std::basic_string<CharT>

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]

Member objects

static std::locale::id id
id of the locale
(public member object)

Protected member functions

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

Inherited from std::messages_base

Type Definition
catalog int

See also

defines messages catalog type
(class template)
creates a messages facet for the named locale
(class template)