Output facet base class for gregorian dates. More...
#include <date_names_put.hpp>
Public Types | |
typedef OutputIterator | iter_type |
typedef Config::month_type | month_type |
typedef Config::month_enum | month_enum |
typedef Config::weekday_enum | weekday_enum |
typedef Config::special_value_enum | special_value_enum |
typedef std::basic_string< charT > | string_type |
typedef charT | char_type |
Public Member Functions | |
date_names_put () | |
void | put_special_value (iter_type &oitr, special_value_enum sv) const |
void | put_month_short (iter_type &oitr, month_enum moy) const |
void | put_month_long (iter_type &oitr, month_enum moy) const |
void | put_weekday_short (iter_type &oitr, weekday_enum wd) const |
void | put_weekday_long (iter_type &oitr, weekday_enum wd) const |
bool | has_date_sep_chars () const |
void | year_sep_char (iter_type &oitr) const |
void | month_sep_char (iter_type &oitr) const |
char between year-month More... | |
void | day_sep_char (iter_type &oitr) const |
Char to separate month-day. More... | |
ymd_order_spec | date_order () const |
Determines the order to put the date elements. More... | |
month_format_spec | month_format () const |
Determines if month is displayed as integer, short or long string. More... | |
Static Public Attributes | |
static const char_type | default_special_value_names [3][17] |
static const char_type | separator [2] |
static std::locale::id | id |
Generate storage location for a std::locale::id. More... | |
Protected Member Functions | |
virtual void | do_put_month_short (iter_type &oitr, month_enum moy) const |
Default facet implementation uses month_type defaults. More... | |
virtual void | do_put_month_long (iter_type &oitr, month_enum moy) const |
Default facet implementation uses month_type defaults. More... | |
virtual void | do_put_special_value (iter_type &oitr, special_value_enum sv) const |
Default facet implementation for special value types. More... | |
virtual void | do_put_weekday_short (iter_type &, weekday_enum) const |
virtual void | do_put_weekday_long (iter_type &, weekday_enum) const |
virtual bool | do_has_date_sep_chars () const |
virtual void | do_year_sep_char (iter_type &oitr) const |
virtual void | do_month_sep_char (iter_type &oitr) const |
char between year-month More... | |
virtual void | do_day_sep_char (iter_type &oitr) const |
Char to separate month-day. More... | |
virtual ymd_order_spec | do_date_order () const |
Default for date order. More... | |
virtual month_format_spec | do_month_format () const |
Default month format. More... | |
void | put_string (iter_type &oi, const charT *const s) const |
void | put_string (iter_type &oi, const string_type &s1) const |
Output facet base class for gregorian dates.
This class is a base class for date facets used to localize the names of months and the names of days in the week.
Requirements of Config
(see langer & kreft p334).
typedef charT boost::date_time::date_names_put< Config, charT, OutputIterator >::char_type |
typedef OutputIterator boost::date_time::date_names_put< Config, charT, OutputIterator >::iter_type |
typedef Config::month_enum boost::date_time::date_names_put< Config, charT, OutputIterator >::month_enum |
typedef Config::month_type boost::date_time::date_names_put< Config, charT, OutputIterator >::month_type |
typedef Config::special_value_enum boost::date_time::date_names_put< Config, charT, OutputIterator >::special_value_enum |
typedef std::basic_string<charT> boost::date_time::date_names_put< Config, charT, OutputIterator >::string_type |
typedef Config::weekday_enum boost::date_time::date_names_put< Config, charT, OutputIterator >::weekday_enum |
|
inline |
|
inline |
Determines the order to put the date elements.
References boost::date_time::date_names_put< Config, charT, OutputIterator >::do_date_order().
|
inline |
Char to separate month-day.
References boost::date_time::date_names_put< Config, charT, OutputIterator >::do_day_sep_char().
|
inlineprotectedvirtual |
Default for date order.
Reimplemented in boost::date_time::all_date_names_put< Config, charT, OutputIterator >.
References boost::date_time::ymd_order_iso.
Referenced by boost::date_time::date_names_put< Config, charT, OutputIterator >::date_order().
|
inlineprotectedvirtual |
Char to separate month-day.
Reimplemented in boost::date_time::all_date_names_put< Config, charT, OutputIterator >.
References boost::date_time::date_names_put< Config, charT, OutputIterator >::put_string(), and boost::asio::s.
Referenced by boost::date_time::date_names_put< Config, charT, OutputIterator >::day_sep_char().
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Default month format.
Reimplemented in boost::date_time::all_date_names_put< Config, charT, OutputIterator >.
References boost::date_time::month_as_short_string.
Referenced by boost::date_time::date_names_put< Config, charT, OutputIterator >::month_format().
|
inlineprotectedvirtual |
char between year-month
Reimplemented in boost::date_time::all_date_names_put< Config, charT, OutputIterator >.
References boost::date_time::date_names_put< Config, charT, OutputIterator >::put_string(), and boost::asio::s.
Referenced by boost::date_time::date_names_put< Config, charT, OutputIterator >::month_sep_char().
|
inlineprotectedvirtual |
Default facet implementation uses month_type defaults.
Reimplemented in boost::date_time::all_date_names_put< Config, charT, OutputIterator >.
References boost::multiprecision::backends::c, and boost::date_time::date_names_put< Config, charT, OutputIterator >::put_string().
Referenced by boost::date_time::date_names_put< Config, charT, OutputIterator >::put_month_long().
|
inlineprotectedvirtual |
Default facet implementation uses month_type defaults.
Reimplemented in boost::date_time::all_date_names_put< Config, charT, OutputIterator >.
References boost::multiprecision::backends::c, and boost::date_time::date_names_put< Config, charT, OutputIterator >::put_string().
Referenced by boost::date_time::date_names_put< Config, charT, OutputIterator >::put_month_short().
|
inlineprotectedvirtual |
Default facet implementation for special value types.
Reimplemented in boost::date_time::all_date_names_put< Config, charT, OutputIterator >.
References boost::date_time::date_names_put< Config, charT, OutputIterator >::put_string(), and boost::asio::s.
Referenced by boost::date_time::date_names_put< Config, charT, OutputIterator >::put_special_value().
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inline |
|
inline |
Determines if month is displayed as integer, short or long string.
References boost::date_time::date_names_put< Config, charT, OutputIterator >::do_month_format().
|
inline |
char between year-month
References boost::date_time::date_names_put< Config, charT, OutputIterator >::do_month_sep_char().
|
inline |
|
inline |
|
inline |
|
inlineprotected |
References boost::end, and boost::xpressive::s1.
Referenced by boost::date_time::date_names_put< Config, charT, OutputIterator >::do_day_sep_char(), boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_day_sep_char(), boost::date_time::date_names_put< Config, charT, OutputIterator >::do_month_sep_char(), boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_month_sep_char(), boost::date_time::date_names_put< Config, charT, OutputIterator >::do_put_month_long(), boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_put_month_long(), boost::date_time::date_names_put< Config, charT, OutputIterator >::do_put_month_short(), boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_put_month_short(), boost::date_time::date_names_put< Config, charT, OutputIterator >::do_put_special_value(), boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_put_special_value(), boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_put_weekday_long(), boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_put_weekday_short(), and boost::date_time::date_names_put< Config, charT, OutputIterator >::do_year_sep_char().
|
inlineprotected |
References boost::end.
|
inline |
|
inline |
|
inline |
|
static |
|
static |
Generate storage location for a std::locale::id.
|
static |