libstdc++
std::time_put Class Reference
Inheritance diagram for std::time_put:

List of all members.

Public Types

Public Member Functions

Static Public Attributes

Protected Member Functions

Static Protected Member Functions

Friends


Detailed Description

Primary class template time_put.

This facet encapsulates the code to format and output dates and times according to formats used by strftime().

The time_put template uses protected virtual functions to provide the actual results. The public accessors forward the call to the virtual functions. These virtual functions are hooks for developers to implement the behavior they require from the time_put facet.


Member Typedef Documentation

typedef _CharT std::time_put::char_type

Public typedefs.

Reimplemented in std::time_put_byname.

Definition at line 721 of file locale_facets_nonio.h.

typedef _OutIter std::time_put::iter_type

Public typedefs.

Reimplemented in std::time_put_byname.

Definition at line 722 of file locale_facets_nonio.h.


Constructor & Destructor Documentation

std::time_put::time_put ( size_t  __refs = 0) [inline, explicit]

Constructor performs initialization.

This is the constructor provided by the standard.

Parameters:
refsPassed to the base facet class.

Definition at line 736 of file locale_facets_nonio.h.

virtual std::time_put::~time_put ( ) [inline, protected, virtual]

Destructor.

Definition at line 782 of file locale_facets_nonio.h.


Member Function Documentation

_OutIter std::time_put::do_put ( iter_type  __s,
ios_base __io,
char_type  __fill,
const tm *  __tm,
char  __format,
char  __mod 
) const [protected, virtual]

Format and output a time or date.

This function formats the data in struct tm according to the provided format char and optional modifier. This function is a hook for derived classes to change the value returned.

See also:
put() for more details.
Parameters:
sThe stream to write to.
ioSource of locale.
fillchar_type to use for padding.
tmStruct tm with date and time info to format.
formatFormat char.
modOptional modifier char.
Returns:
Iterator after writing.

Definition at line 1178 of file locale_facets_nonio.tcc.

References std::ios_base::_M_getloc().

Referenced by std::time_put< _CharT, _OutIter >::put().

_OutIter std::time_put::put ( iter_type  __s,
ios_base __io,
char_type  __fill,
const tm *  __tm,
const _CharT *  __beg,
const _CharT *  __end 
) const

Format and output a time or date.

This function formats the data in struct tm according to the provided format string. The format string is interpreted as by strftime().

Parameters:
sThe stream to write to.
ioSource of locale.
fillchar_type to use for padding.
tmStruct tm with date and time info to format.
begStart of format string.
endEnd of format string.
Returns:
Iterator after writing.

Definition at line 1143 of file locale_facets_nonio.tcc.

References std::ios_base::_M_getloc().

iter_type std::time_put::put ( iter_type  __s,
ios_base __io,
char_type  __fill,
const tm *  __tm,
char  __format,
char  __mod = 0 
) const [inline]

Format and output a time or date.

This function formats the data in struct tm according to the provided format char and optional modifier. The format and modifier are interpreted as by strftime(). It does so by returning time_put::do_put().

Parameters:
sThe stream to write to.
ioSource of locale.
fillchar_type to use for padding.
tmStruct tm with date and time info to format.
formatFormat char.
modOptional modifier char.
Returns:
Iterator after writing.

Definition at line 775 of file locale_facets_nonio.h.


Member Data Documentation

Numpunct facet id.

Definition at line 726 of file locale_facets_nonio.h.


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