STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
messages< _Elem > Class Template Reference
Inheritance diagram for messages< _Elem >:
messages_base locale::facet _Facet_base messages_byname< _Elem >

Public Types

typedef _Elem char_type
 
typedef basic_string< _Elem, char_traits< _Elem >, allocator< _Elem > > string_type
 
- Public Types inherited from messages_base
typedef int catalog
 

Public Member Functions

catalog open (const string &_Catname, const locale &_Loc) const
 
string_type get (catalog _Catval, int _Set, int _Message, const string_type &_Dflt) const
 
void close (catalog _Catval) const
 
 messages (size_t _Refs=0)
 
 messages (const _Locinfo &_Lobj, size_t _Refs=0)
 
- Public Member Functions inherited from messages_base
 messages_base (size_t _Refs=0)
 
- Public Member Functions inherited from locale::facet
virtual void __CLR_OR_THIS_CALL _Incref ()
 
virtual _Facet_base *__CLR_OR_THIS_CALL _Decref ()
 
__CLR_OR_THIS_CALL facet (const facet &)=delete
 
facet &__CLR_OR_THIS_CALL operator= (const facet &)=delete
 
- Public Member Functions inherited from _Facet_base
virtual __CLR_OR_THIS_CALL ~_Facet_base () _NOEXCEPT
 

Static Public Member Functions

static size_t _Getcat (const locale::facet **_Ppf=0, const locale *_Ploc=0)
 
- Static Public Member Functions inherited from locale::facet
static size_t __CLRCALL_OR_CDECL _Getcat (const facet **=0, const locale *=0)
 

Static Public Attributes

__PURE_APPDOMAIN_GLOBAL static _CRTIMP2_PURE locale::id id
 

Protected Member Functions

 messages (const char *_Locname, size_t _Refs=0)
 
virtual __CLR_OR_THIS_CALL ~messages () _NOEXCEPT
 
void _Init (const _Locinfo &)
 
virtual catalog __CLR_OR_THIS_CALL do_open (const string &, const locale &) const
 
virtual string_type __CLR_OR_THIS_CALL do_get (catalog, int, int, const string_type &_Dflt) const
 
virtual void __CLR_OR_THIS_CALL do_close (catalog) const
 
- Protected Member Functions inherited from locale::facet
__CLR_OR_THIS_CALL facet (size_t _Initrefs=0)
 
virtual __CLR_OR_THIS_CALL ~facet () _NOEXCEPT
 

Member Typedef Documentation

template<class _Elem >
typedef _Elem messages< _Elem >::char_type
template<class _Elem >
typedef basic_string<_Elem, char_traits<_Elem>, allocator<_Elem> > messages< _Elem >::string_type

Constructor & Destructor Documentation

template<class _Elem >
messages< _Elem >::messages ( size_t  _Refs = 0)
inlineexplicit
61  { // construct from current locale
62  _BEGIN_LOCINFO(_Lobj)
63  _Init(_Lobj);
64  _END_LOCINFO()
65  }
messages_base(size_t _Refs=0)
Definition: xlocmes:23
void _Init(const _Locinfo &)
Definition: xlocmes:95
_Atomic_counter_t _Refs
Definition: xlocale:157
template<class _Elem >
messages< _Elem >::messages ( const _Locinfo _Lobj,
size_t  _Refs = 0 
)
inline
69  { // construct from specified locale
70  _Init(_Lobj);
71  }
messages_base(size_t _Refs=0)
Definition: xlocmes:23
void _Init(const _Locinfo &)
Definition: xlocmes:95
_Atomic_counter_t _Refs
Definition: xlocale:157
template<class _Elem >
messages< _Elem >::messages ( const char *  _Locname,
size_t  _Refs = 0 
)
inlineprotected
85  { // construct from specified locale
86  _BEGIN_LOCINFO(_Lobj(_Locname))
87  _Init(_Lobj);
88  _END_LOCINFO()
89  }
messages_base(size_t _Refs=0)
Definition: xlocmes:23
void _Init(const _Locinfo &)
Definition: xlocmes:95
_Atomic_counter_t _Refs
Definition: xlocale:157
template<class _Elem >
virtual __CLR_OR_THIS_CALL messages< _Elem >::~messages ( )
inlineprotectedvirtual
92  { // destroy the object
93  }

Member Function Documentation

template<class _Elem >
static size_t messages< _Elem >::_Getcat ( const locale::facet **  _Ppf = 0,
const locale _Ploc = 0 
)
inlinestatic
75  { // return locale category mask and construct standard facet
76  if (_Ppf != 0 && *_Ppf == 0)
77  *_Ppf = _NEW_CRT messages<_Elem>(
78  _Locinfo(_Ploc->c_str()));
79  return (_X_MESSAGES);
80  }
#define _NEW_CRT
Definition: xdebug:69
Definition: xlocinfo:54
const char * c_str() const
Definition: xlocale:460
#define _X_MESSAGES
Definition: xlocinfo.h:44
Definition: xlocmes:33
template<class _Elem >
void messages< _Elem >::_Init ( const _Locinfo )
inlineprotected
96  { // initialize from _Locinfo object (do nothing)
97  }
template<class _Elem >
void messages< _Elem >::close ( catalog  _Catval) const
inline
53  { // close catalog
54  do_close(_Catval);
55  }
virtual void __CLR_OR_THIS_CALL do_close(catalog) const
Definition: xlocmes:110
template<class _Elem >
virtual void __CLR_OR_THIS_CALL messages< _Elem >::do_close ( catalog  ) const
inlineprotectedvirtual
111  { // close catalog (do nothing)
112  }
template<class _Elem >
virtual string_type __CLR_OR_THIS_CALL messages< _Elem >::do_get ( catalog  ,
int  ,
int  ,
const string_type _Dflt 
) const
inlineprotectedvirtual
106  { // get message from set in catalog (return default)
107  return (_Dflt);
108  }
template<class _Elem >
virtual catalog __CLR_OR_THIS_CALL messages< _Elem >::do_open ( const string ,
const locale  
) const
inlineprotectedvirtual
100  { // open catalog (do nothing)
101  return (-1);
102  }
template<class _Elem >
string_type messages< _Elem >::get ( catalog  _Catval,
int  _Set,
int  _Message,
const string_type _Dflt 
) const
inline
48  { // get message from set in catalog
49  return (do_get(_Catval, _Set, _Message, _Dflt));
50  }
virtual string_type __CLR_OR_THIS_CALL do_get(catalog, int, int, const string_type &_Dflt) const
Definition: xlocmes:104
template<class _Elem >
catalog messages< _Elem >::open ( const string _Catname,
const locale _Loc 
) const
inline
42  { // open catalog
43  return (do_open(_Catname, _Loc));
44  }
virtual catalog __CLR_OR_THIS_CALL do_open(const string &, const locale &) const
Definition: xlocmes:99

Member Data Documentation

template<class _Elem >
__PURE_APPDOMAIN_GLOBAL locale::id messages< _Elem >::id
static

The documentation for this class was generated from the following file: