Logo Search packages:      
Sourcecode: passenger version File versions  Download package

boost::date_time::date_facet< date_type, CharT, OutItrT > Class Template Reference

#include <date_facet.hpp>

List of all members.


Detailed Description

template<class date_type, class CharT, class OutItrT = std::ostreambuf_iterator<CharT, std::char_traits<CharT> >>
class boost::date_time::date_facet< date_type, CharT, OutItrT >

Class that provides format based I/O facet for date types.

This class allows the formatting of dates by using format string. Format strings are:

Default month format == b Default weekday format == a

Definition at line 45 of file date_facet.hpp.


Public Types

typedef CharT char_type
typedef
date_generator_formatter
< date_type, CharT > 
date_gen_formatter_type
typedef date_type::day_of_week_type day_of_week_type
typedef date_type::day_type day_type
typedef date_type::duration_type duration_type
typedef first_kday_of_month
< date_type > 
first_kday_type
typedef std::vector
< std::basic_string< CharT > > 
input_collection_type
typedef first_kday_after
< date_type > 
kday_after_type
typedef first_kday_before
< date_type > 
kday_before_type
typedef last_kday_of_month
< date_type > 
last_kday_type
typedef date_type::month_type month_type
typedef nth_kday_of_month
< date_type > 
nth_kday_type
typedef partial_date< date_type > partial_date_type
typedef
boost::date_time::period_formatter
< CharT > 
period_formatter_type
typedef
boost::date_time::period
< date_type, duration_type > 
period_type
typedef
boost::date_time::special_values_formatter
< CharT > 
special_values_formatter_type
typedef std::basic_string< CharT > string_type

Public Member Functions

 date_facet (const char_type *format_str, period_formatter_type per_formatter=period_formatter_type(), special_values_formatter_type sv_formatter=special_values_formatter_type(), date_gen_formatter_type dg_formatter=date_gen_formatter_type(),::size_t ref_count=0)
 date_facet (const char_type *format_str, const input_collection_type &short_names,::size_t ref_count=0)
 date_facet (::size_t a_ref=0)
void date_gen_phrase_strings (const input_collection_type &new_strings, typename date_gen_formatter_type::phrase_elements beg_pos=date_gen_formatter_type::first)
void format (const char_type *const format_str)
void long_month_names (const input_collection_type &long_names)
void long_weekday_names (const input_collection_type &long_names)
void month_format (const char_type *const format_str)
void period_formatter (period_formatter_type per_formatter)
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const kday_after_type &fka) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const kday_before_type &fkb) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const last_kday_type &lkd) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const first_kday_type &fkd) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const nth_kday_type &nkd) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const partial_date_type &pd) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const period_type &p) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const day_of_week_type &dow) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const day_type &day) const
 puts the day of month
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const month_type &m) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const duration_type &dd) const
OutItrT put (OutItrT next, std::ios_base &a_ios, char_type fill_char, const date_type &d) const
virtual void set_iso_extended_format ()
virtual void set_iso_format ()
void short_month_names (const input_collection_type &short_names)
void short_weekday_names (const input_collection_type &short_names)
void special_values_formatter (const special_values_formatter_type &svf)
void weekday_format (const char_type *const format_str)

Static Public Attributes

static const char_type default_date_format [9]
static const char_type default_period_separator [4] = { ' ', '/', ' '}
static std::locale::id id
static const char_type iso_format_extended_specifier [9]
static const char_type iso_format_specifier [7]
static const char_type long_month_format [3] = {'%','B'}
static const char_type long_weekday_format [3] = {'%','A'}
static const char_type short_month_format [3] = {'%','b'}
static const char_type short_weekday_format [3] = {'%','a'}
static const char_type standard_format_specifier [3]

Protected Member Functions

virtual OutItrT do_put_special (OutItrT next, std::ios_base &, char_type, const boost::date_time::special_values sv) const
virtual OutItrT do_put_tm (OutItrT next, std::ios_base &a_ios, char_type fill_char, const tm &tm_value, string_type a_format) const
tm init_tm (tm &tm_value) const
 Helper function to initialize all fields in a tm struct.

Protected Attributes

date_gen_formatter_type m_date_gen_formatter
string_type m_format
string_type m_month_format
input_collection_type m_month_long_names
input_collection_type m_month_short_names
period_formatter_type m_period_formatter
special_values_formatter_type m_special_values_formatter
string_type m_weekday_format
input_collection_type m_weekday_long_names
input_collection_type m_weekday_short_names

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

Generated by  Doxygen 1.6.0   Back to index