Compartir a través de


messages::do_get

A virtual function called to retrieve the message catalog.

virtual string_type do_get(
    catalog _Catval, 
    int _Set, 
    int _Message,
    const string_type& _Dfault
) const;

Parameters

  • _Catval
    The identification value specifying the message catalog to be searched.

  • _Set
    The first identified used to locate a message in a message catalog.

  • _Message
    The second identified used to locate a message in a message catalog.

  • _Dfault
    The string to be returned on failure.

Return Value

It returns a copy of _Dfault on failure. Otherwise, it returns a copy of the specified message sequence.

Remarks

The protected member function tries to obtain a message sequence from the message catalog _Catval. It may make use of _Set, _Message, and _Dfault in doing so.

Example

See the example for get, which calls do_get.

Requirements

Header: <locale>

Namespace: std

See Also

Reference

messages Class

Other Resources

messages Members