...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::date_time::all_date_names_put — A date name output facet that takes an array of char* to define strings.
// In header: <boost/date_time/date_names_put.hpp> template<typename Config, typename charT = char, typename OutputIterator = std::ostreambuf_iterator<charT> > class all_date_names_put : public boost::date_time::date_names_put< Config, charT, OutputIterator > { public: // types typedef OutputIterator iter_type; typedef Config::month_enum month_enum; typedef Config::weekday_enum weekday_enum; typedef Config::special_value_enum special_value_enum; // construct/copy/destruct all_date_names_put(const charT *const , const charT *const , const charT *const , const charT *const , const charT *const , charT = '-', ymd_order_spec = ymd_order_iso, month_format_spec = month_as_short_string); // public member functions const charT *const * get_short_month_names() const; const charT *const * get_long_month_names() const; const charT *const * get_special_value_names() const; const charT *const * get_short_weekday_names() const; const charT *const * get_long_weekday_names() const; // protected member functions void do_put_month_short(iter_type &, month_enum) const; void do_put_month_long(iter_type &, month_enum) const; void do_put_special_value(iter_type &, special_value_enum) const; void do_put_weekday_short(iter_type &, weekday_enum) const; void do_put_weekday_long(iter_type &, weekday_enum) const; void do_month_sep_char(iter_type &) const; void do_day_sep_char(iter_type &) const; ymd_order_spec do_date_order() const; month_format_spec do_month_format() const; };
all_date_names_put
public
construct/copy/destructall_date_names_put(const charT *const month_short_names, const charT *const month_long_names, const charT *const special_value_names, const charT *const weekday_short_names, const charT *const weekday_long_names, charT separator_char = '-', ymd_order_spec order_spec = ymd_order_iso, month_format_spec month_format = month_as_short_string);
all_date_names_put
protected member functionsvoid do_put_month_short(iter_type & oitr, month_enum moy) const;Generic facet that takes array of chars.
void do_put_month_long(iter_type & oitr, month_enum moy) const;Long month names.
void do_put_special_value(iter_type & oitr, special_value_enum sv) const;Special values names.
void do_put_weekday_short(iter_type & oitr, weekday_enum wd) const;
void do_put_weekday_long(iter_type & oitr, weekday_enum wd) const;
void do_month_sep_char(iter_type & oitr) const;char between year-month
void do_day_sep_char(iter_type & oitr) const;Char to separate month-day.
ymd_order_spec do_date_order() const;Set the date ordering.
month_format_spec do_month_format() const;Set the date ordering.