Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::date_time::ostream_ymd_formatter< ymd_type, facet_type, charT > Class Template Reference

Convert ymd to a standard string formatting policies. More...

#include <date_formatting_locales.hpp>

Public Types

typedef ymd_type::month_type month_type
 
typedef
ostream_month_formatter
< facet_type, charT > 
month_formatter_type
 
typedef std::basic_ostream< charT > ostream_type
 
typedef std::basic_string< charT > foo_type
 

Static Public Member Functions

static void ymd_put (ymd_type ymd, ostream_type &os, const facet_type &f)
 Convert ymd to a standard string formatting policies. More...
 

Detailed Description

template<class ymd_type, class facet_type, class charT = char>
class boost::date_time::ostream_ymd_formatter< ymd_type, facet_type, charT >

Convert ymd to a standard string formatting policies.

Member Typedef Documentation

template<class ymd_type , class facet_type , class charT = char>
typedef std::basic_string<charT> boost::date_time::ostream_ymd_formatter< ymd_type, facet_type, charT >::foo_type
template<class ymd_type , class facet_type , class charT = char>
typedef ostream_month_formatter<facet_type, charT> boost::date_time::ostream_ymd_formatter< ymd_type, facet_type, charT >::month_formatter_type
template<class ymd_type , class facet_type , class charT = char>
typedef ymd_type::month_type boost::date_time::ostream_ymd_formatter< ymd_type, facet_type, charT >::month_type
template<class ymd_type , class facet_type , class charT = char>
typedef std::basic_ostream<charT> boost::date_time::ostream_ymd_formatter< ymd_type, facet_type, charT >::ostream_type

Member Function Documentation

template<class ymd_type , class facet_type , class charT = char>
static void boost::date_time::ostream_ymd_formatter< ymd_type, facet_type, charT >::ymd_put ( ymd_type  ymd,
ostream_type os,
const facet_type &  f 
)
inlinestatic

Convert ymd to a standard string formatting policies.

This is standard code for handling date formatting with year-month-day based date information. This function uses the format_type to control whether the string will contain separator characters, and if so what the character will be. In addtion, it can format the month as either an integer or a string as controled by the formatting policy

References boost::date_time::ostream_month_formatter< facet_type, charT >::format_month(), boost::date_time::ymd_order_dmy, boost::date_time::ymd_order_iso, and boost::date_time::ymd_order_us.

Referenced by boost::date_time::ostream_date_formatter< date_type, facet_type, charT >::date_put().


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