public member function
<locale>

std::messages::get

string_type get (catalog cat, int set, int msgid,
                 const string_type& dfault) const;
Get message from catalog
Retrieves the message identified by set, msgid, and dfault in the catalog cat.

Internally, this function simply calls the virtual protected member do_get, which retrieves the message.

Specifics about the default behavior of this function depend on each particular library implementation.

Parameters

cat
Catalog identifier: This value shall have been obtained by a previous call to messages::open.
Member type catalog is an alias of the fundamental type int, inherited from messages_base.
set
Parameter set: The interpretation of this parameter depends on the specific implementation.
msgid
Parameter message-id: The interpretation of this parameter depends on the specific implementation.
dfault
Default message, returned if no specific message with the parameters above is found in the catalog.
It may also be used by a particular library implementations to identify a message, along set and msgid.

Return value

A string with the message retrieved, or dfault if no message matching the arguments is found in the catalog.
Member type string_type is a basic_string type with the same character type as the facet (defined as an alias of basic_string<charT>, where charT is messages's template parameter).

See also