Megosztás a következőn keresztül:


messages Class

The template class describes an object that can serve as a locale facet to retrieve localized messages from a catalog of internationalized messages for a given locale.

Currently, while the messages class is implemented, there are no messages.

template <class CharType>
   class messages : public messages_base;

Parameters

  • CharType
    The type used within a program to encode characters in a locale.

Remarks

As with any locale facet, the static object ID has an initial stored value of zero. The first attempt to access its stored value stores a unique positive value in id.

This facet basically opens a catalog of messages defined in the base class messages_base, retrieves the information required, and closes the catalog.

Constructors

messages

The message facet constructor function.

Typedefs

char_type

A character type that is used display messages.

string_type

A type that describes a string of type basic_string containing characters of type CharType.

Member Functions

close

Closes the message catalog.

do_close

A virtual function called to lose the message catalog.

do_get

A virtual function called to retrieve the message catalog.

do_open

A virtual function called to open the message catalog.

get

Retrieves the message catalog.

open

Opens the message catalog.

Requirements

Header: <locale>

Namespace: std

See Also

Reference

<locale>

messages_base Class

Thread Safety in the C++ Standard Library