Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
locale
has_facet
isalnum
isalpha
iscntrl
isdigit
isgraph
islower
isprint
ispunct
isspace
isupper
isxdigit
locale
tolower
toupper
use_facet
standard facets:
codecvt
codecvt_base
codecvt_byname
collate
collate_byname
ctype
ctype_base
ctype_byname
messages
messages_base
messages_byname
moneypunct
moneypunct_byname
money_base
money_get
money_put
numpunct
numpunct_byname
num_get
num_put
time_base
time_get
time_get_byname
time_put
time_put_byname
messages
messages::messages
public member functions:
messages::close
messages::get
messages::open
public member types:
messages::catalog
messages::char_type
messages::string_type
protected members:
messages::do_close
messages::do_get
messages::do_open
messages::~messages


messages::get

public member function
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.

The specifics of this function are dependent on the library implementation.

During its operation, the version of this function in the generic template simply calls the virtual protected member do_get, which is the member function in charge of performing the actions described above.

Parameters

cat
Value returned by a previous call to messages::open.
catalog is a member type, alias of int.
set
Set.
msgid
Message id.
dfault
Default message, returned if no specific message is found in the catalog.
It may also be used by a particular library implementation to identify a message.

Return value

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

See also