Standard C++ Library Reference ISO/IEC (VERSION3)
make use of set, message, and dflt in doing so. It returns a copy of dflt on failure. Otherwise, it returns a copy of
the specified message sequence.
messages::do_open
virtual catalog do_open(const string& catname,
const locale& loc) const;
The protected member function endeavors to open a message catalog whose name is catname. It may make use of the
locale loc in doing so. It returns a value that compares less than zero on failure. Otherwise, the returned value can be
used as the first argument on a later call to get. It should in any case be used as the argument on a later call to close.
messages::get
string_type get(catalog catval, int set, int message,
const string_type& dflt) const;
The member function returns do_get(catval, set, message, dflt);.
messages::messages
explicit messages(size_t refs = 0);
The constructor initializes its base object with locale::facet(refs).
messages::open
catalog open(const string& catname,
const locale& loc) const;
The member function returns do_open(catname, loc);.
messages::string_type
typedef basic_string<Elem> string_type;
The type describes a specialization of template class basic_string whose objects can store copies of the message
sequences.
messages_base
class m-essages_base {
typedef int catalog;
};
The class describes a type common to all specializations of template class messages. The type catalog is a synonym
for type int that describes the possible return values from messages::do_open.
messages_byname
template<class Elem>
class messages_byname : public messages<Elem> {
public:
explicit messages_byname(const char *locname,
size_t refs = 0);
protected: