class template
<locale>
std::messages
template <class charT> class messages;
Facet to access message catalogs
|  |
messages |
|  |
|
The
messages standard facet is used to read individual strings from a message catalog.
The specifics on how messages are organized in a catalog are dependent on the library implementation.
messages objects are prevented to be locally constructed by having a protected destructor. Only those installed in
locale objects should be used through mechanisms such as
use_facet.
This template class has one template parameter, representing the character type with which the facet works. This template parameter is referred in this entire reference as
charT.
Public members
It includes the following public member functions:
- (constructor)
- messages constructor (public member function)
- open
- Open message catalog (public member function)
- get
- Get message from catalog (public member function)
- close
- Closse message catalog (public member function)
It also declares the following types:
- char_type
- Character type (public member type)
- string_type
- String type (public member type)
And inherits the following type:
- catalog
- Catalog type (public member type)
Virtual protected members
The class defines the virtual protected members in charge of implementing the expected behavior of their respective public member functions:
- do_open
- Open message catalog [virtual] (protected virtual member function)
- do_get
- Get message from catalog [virtual] (protected virtual member function)
- do_close
- Close message catalog (protected virtual member function)
Along with the class destructor:
- (destructor)
- messagess destructor (protected member function)