ReactOS  0.4.14-dev-1036-g3c5b10f
time_put< _Ch, _OutIt > Class Template Reference

#include <_facets_fwd.h>

Inheritance diagram for time_put< _Ch, _OutIt >:
Collaboration diagram for time_put< _Ch, _OutIt >:

Public Types

typedef _Ch char_type
 
typedef _OutIt iter_type
 
- Public Types inherited from time_base
enum  dateorder {
  no_order, dmy, mdy, ymd,
  ydm
}
 

Public Member Functions

 time_put (size_t __refs=0)
 
_OutIt put (iter_type __s, ios_base &__f, _Ch __fill, const tm *__tmb, const _Ch *__pat, const _Ch *__pat_end) const
 
_OutIt put (iter_type __s, ios_base &__f, _Ch __fill, const tm *__tmb, char __format, char __modifier=0) const
 

Static Public Attributes

static locale::id id
 

Protected Member Functions

 time_put (const char *__name, size_t __refs)
 
 time_put (_Locale_time *__time)
 
 ~time_put ()
 
virtual iter_type do_put (iter_type __s, ios_base &__f, char_type, const tm *__tmb, char __format, char) const
 
- Protected Member Functions inherited from locale::facet
 facet (size_t __init_count=0)
 
virtual ~facet ()
 
- Protected Member Functions inherited from _Refcount_Base
 _Refcount_Base (__stl_atomic_t __n)
 
__stl_atomic_t _M_incr ()
 
__stl_atomic_t _M_decr ()
 

Detailed Description

template<class _Ch, class _OutIt>
class time_put< _Ch, _OutIt >

Definition at line 49 of file _facets_fwd.h.

Member Typedef Documentation

◆ char_type

template<class _Ch, class _OutIt>
typedef _Ch time_put< _Ch, _OutIt >::char_type

Definition at line 250 of file _time_facets.h.

◆ iter_type

template<class _Ch, class _OutIt>
typedef _OutIt time_put< _Ch, _OutIt >::iter_type

Definition at line 251 of file _time_facets.h.

Constructor & Destructor Documentation

◆ time_put() [1/3]

template<class _Ch, class _OutIt>
time_put< _Ch, _OutIt >::time_put ( size_t  __refs = 0)
inlineexplicit

Definition at line 253 of file _time_facets.h.

253  : locale::facet(__refs)
254  {}

◆ time_put() [2/3]

template<class _Ch, class _OutIt>
time_put< _Ch, _OutIt >::time_put ( const char __name,
size_t  __refs 
)
inlineprotected

Definition at line 267 of file _time_facets.h.

268  : locale::facet(__refs), _STLP_PRIV time_init<_Ch>(__name)
269  {}
#define _STLP_PRIV
Definition: _dm.h:70

◆ time_put() [3/3]

template<class _Ch, class _OutIt>
time_put< _Ch, _OutIt >::time_put ( _Locale_time __time)
inlineprotected

Definition at line 270 of file _time_facets.h.

271  : _STLP_PRIV time_init<_Ch>(__time)
272  {}
#define _STLP_PRIV
Definition: _dm.h:70

◆ ~time_put()

template<class _Ch, class _OutIt>
time_put< _Ch, _OutIt >::~time_put ( )
inlineprotected

Definition at line 273 of file _time_facets.h.

273 {}

Member Function Documentation

◆ do_put()

template<class _Ch, class _OutIt>
_OutputIter time_put< _Ch, _OutputIter >::do_put ( iter_type  __s,
ios_base __f,
char_type  ,
const tm __tmb,
char  __format,
char   
) const
protectedvirtual

Definition at line 426 of file _time_facets.c.

428  {
429  const ctype<_Ch>& __ct = use_facet<ctype<_Ch> >(__f.getloc());
430  _STLP_BASIC_IOSTRING(_Ch) __buf;
431  _STLP_PRIV __write_formatted_time(__buf, __ct, __format, __modifier, this->_M_timeinfo, __tmb);
432  return copy(__buf.begin(), __buf.end(), __s);
433 }
_Check_return_ wchar_t _Ch
Definition: string.h:647
locale getloc() const
Definition: _ios_base.h:143
#define _STLP_BASIC_IOSTRING(_CharT)
Definition: _ctype.h:58
_STLP_MOVE_TO_PRIV_NAMESPACE _STLP_DECLSPEC void _STLP_CALL __write_formatted_time(__iostring &, const ctype< char > &__ct, char __format, char __modifier, const _Time_Info &__table, const tm *__t)
#define _STLP_PRIV
Definition: _dm.h:70
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
Definition: copy.c:51

Referenced by time_put< _Ch, _OutIt >::put().

◆ put() [1/2]

template<class _Ch, class _OutIt>
_OutIt time_put< _Ch, _OutIt >::put ( iter_type  __s,
ios_base __f,
_Ch  __fill,
const tm __tmb,
const _Ch __pat,
const _Ch __pat_end 
) const

Referenced by main().

◆ put() [2/2]

template<class _Ch, class _OutIt>
_OutIt time_put< _Ch, _OutIt >::put ( iter_type  __s,
ios_base __f,
_Ch  __fill,
const tm __tmb,
char  __format,
char  __modifier = 0 
) const
inline

Definition at line 260 of file _time_facets.h.

262  { return do_put(__s, __f, __fill, __tmb, __format, __modifier); }
virtual iter_type do_put(iter_type __s, ios_base &__f, char_type, const tm *__tmb, char __format, char) const
Definition: _time_facets.c:426
void __fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val, const input_iterator_tag &, _Distance *)
Definition: _algobase.h:417

Member Data Documentation

◆ id

template<class _Ch, class _OutIt>
locale::id time_put< _CharT, _OutputIterator >::id
static

Definition at line 264 of file _time_facets.h.


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