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 _Crt_new_delete 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
58  : messages_base(_Refs)
59  { // construct from current locale
60  _BEGIN_LOCINFO(_Lobj)
61  _Init(_Lobj);
62  _END_LOCINFO()
63  }
messages_base(size_t _Refs=0)
Definition: xlocmes:23
void _Init(const _Locinfo &)
Definition: xlocmes:93
template<class _Elem >
messages< _Elem >::messages ( const _Locinfo _Lobj,
size_t  _Refs = 0 
)
inline
66  : messages_base(_Refs)
67  { // construct from specified locale
68  _Init(_Lobj);
69  }
messages_base(size_t _Refs=0)
Definition: xlocmes:23
void _Init(const _Locinfo &)
Definition: xlocmes:93
template<class _Elem >
messages< _Elem >::messages ( const char _Locname,
size_t  _Refs = 0 
)
inlineprotected
82  : messages_base(_Refs)
83  { // construct from specified locale
84  _BEGIN_LOCINFO(_Lobj(_Locname))
85  _Init(_Lobj);
86  _END_LOCINFO()
87  }
messages_base(size_t _Refs=0)
Definition: xlocmes:23
void _Init(const _Locinfo &)
Definition: xlocmes:93
template<class _Elem >
virtual __CLR_OR_THIS_CALL messages< _Elem >::~messages ( )
inlineprotectedvirtual
90  { // destroy the object
91  }

Member Function Documentation

template<class _Elem >
static size_t messages< _Elem >::_Getcat ( const locale::facet **  _Ppf = 0,
const locale _Ploc = 0 
)
inlinestatic
73  { // return locale category mask and construct standard facet
74  if (_Ppf != 0 && *_Ppf == 0)
75  *_Ppf = new messages<_Elem>(
76  _Locinfo(_Ploc->c_str()));
77  return (_X_MESSAGES);
78  }
Definition: xlocinfo:53
_Ret_z_ const char * c_str() const
Definition: xlocale:424
#define _X_MESSAGES
Definition: xlocinfo.h:44
Definition: xlocmes:31
template<class _Elem >
void messages< _Elem >::_Init ( const _Locinfo )
inlineprotected
94  { // initialize from _Locinfo object (do nothing)
95  }
template<class _Elem >
void messages< _Elem >::close ( catalog  _Catval) const
inline
51  { // close catalog
52  do_close(_Catval);
53  }
virtual void __CLR_OR_THIS_CALL do_close(catalog) const
Definition: xlocmes:108
template<class _Elem >
virtual void __CLR_OR_THIS_CALL messages< _Elem >::do_close ( catalog  ) const
inlineprotectedvirtual
109  { // close catalog (do nothing)
110  }
template<class _Elem >
virtual string_type __CLR_OR_THIS_CALL messages< _Elem >::do_get ( catalog  ,
int  ,
int  ,
const string_type _Dflt 
) const
inlineprotectedvirtual
104  { // get message from set in catalog (return default)
105  return (_Dflt);
106  }
template<class _Elem >
virtual catalog __CLR_OR_THIS_CALL messages< _Elem >::do_open ( const string ,
const locale  
) const
inlineprotectedvirtual
98  { // open catalog (do nothing)
99  return (-1);
100  }
template<class _Elem >
string_type messages< _Elem >::get ( catalog  _Catval,
int  _Set,
int  _Message,
const string_type _Dflt 
) const
inline
46  { // get message from set in catalog
47  return (do_get(_Catval, _Set, _Message, _Dflt));
48  }
_Set(0)
virtual string_type __CLR_OR_THIS_CALL do_get(catalog, int, int, const string_type &_Dflt) const
Definition: xlocmes:102
template<class _Elem >
catalog messages< _Elem >::open ( const string _Catname,
const locale _Loc 
) const
inline
40  { // open catalog
41  return (do_open(_Catname, _Loc));
42  }
virtual catalog __CLR_OR_THIS_CALL do_open(const string &, const locale &) const
Definition: xlocmes:97

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: