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::date_names_put< Config, charT, OutputIterator > Class Template Reference

Output facet base class for gregorian dates. More...

#include <date_names_put.hpp>

Inheritance diagram for boost::date_time::date_names_put< Config, charT, OutputIterator >:
Collaboration diagram for boost::date_time::date_names_put< Config, charT, OutputIterator >:

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
 

Detailed Description

template<class Config, class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
class boost::date_time::date_names_put< Config, charT, OutputIterator >

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

  • define an enumeration month_enum that enumerates the months. The enumeration should be '1' based eg: Jan==1
  • define as_short_string and as_long_string

(see langer & kreft p334).

Member Typedef Documentation

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef charT boost::date_time::date_names_put< Config, charT, OutputIterator >::char_type
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef OutputIterator boost::date_time::date_names_put< Config, charT, OutputIterator >::iter_type
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef Config::month_enum boost::date_time::date_names_put< Config, charT, OutputIterator >::month_enum
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef Config::month_type boost::date_time::date_names_put< Config, charT, OutputIterator >::month_type
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef Config::special_value_enum boost::date_time::date_names_put< Config, charT, OutputIterator >::special_value_enum
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef std::basic_string<charT> boost::date_time::date_names_put< Config, charT, OutputIterator >::string_type
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef Config::weekday_enum boost::date_time::date_names_put< Config, charT, OutputIterator >::weekday_enum

Constructor & Destructor Documentation

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
boost::date_time::date_names_put< Config, charT, OutputIterator >::date_names_put ( )
inline

Member Function Documentation

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
ymd_order_spec boost::date_time::date_names_put< Config, charT, OutputIterator >::date_order ( ) const
inline

Determines the order to put the date elements.

References boost::date_time::date_names_put< Config, charT, OutputIterator >::do_date_order().

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
void boost::date_time::date_names_put< Config, charT, OutputIterator >::day_sep_char ( iter_type oitr) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual ymd_order_spec boost::date_time::date_names_put< Config, charT, OutputIterator >::do_date_order ( ) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::date_names_put< Config, charT, OutputIterator >::do_day_sep_char ( iter_type oitr) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual bool boost::date_time::date_names_put< Config, charT, OutputIterator >::do_has_date_sep_chars ( ) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual month_format_spec boost::date_time::date_names_put< Config, charT, OutputIterator >::do_month_format ( ) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::date_names_put< Config, charT, OutputIterator >::do_month_sep_char ( iter_type oitr) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::date_names_put< Config, charT, OutputIterator >::do_put_month_long ( iter_type oitr,
month_enum  moy 
) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::date_names_put< Config, charT, OutputIterator >::do_put_month_short ( iter_type oitr,
month_enum  moy 
) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::date_names_put< Config, charT, OutputIterator >::do_put_special_value ( iter_type oitr,
special_value_enum  sv 
) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::date_names_put< Config, charT, OutputIterator >::do_put_weekday_long ( iter_type ,
weekday_enum   
) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::date_names_put< Config, charT, OutputIterator >::do_put_weekday_short ( iter_type ,
weekday_enum   
) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::date_names_put< Config, charT, OutputIterator >::do_year_sep_char ( iter_type oitr) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
bool boost::date_time::date_names_put< Config, charT, OutputIterator >::has_date_sep_chars ( ) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
month_format_spec boost::date_time::date_names_put< Config, charT, OutputIterator >::month_format ( ) const
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().

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
void boost::date_time::date_names_put< Config, charT, OutputIterator >::month_sep_char ( iter_type oitr) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
void boost::date_time::date_names_put< Config, charT, OutputIterator >::put_month_long ( iter_type oitr,
month_enum  moy 
) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
void boost::date_time::date_names_put< Config, charT, OutputIterator >::put_month_short ( iter_type oitr,
month_enum  moy 
) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
void boost::date_time::date_names_put< Config, charT, OutputIterator >::put_special_value ( iter_type oitr,
special_value_enum  sv 
) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
void boost::date_time::date_names_put< Config, charT, OutputIterator >::put_string ( iter_type oi,
const string_type s1 
) const
inlineprotected

References boost::end.

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
void boost::date_time::date_names_put< Config, charT, OutputIterator >::put_weekday_long ( iter_type oitr,
weekday_enum  wd 
) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
void boost::date_time::date_names_put< Config, charT, OutputIterator >::put_weekday_short ( iter_type oitr,
weekday_enum  wd 
) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
void boost::date_time::date_names_put< Config, charT, OutputIterator >::year_sep_char ( iter_type oitr) const
inline

Member Data Documentation

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
const date_names_put< Config, charT, OutputIterator >::char_type boost::date_time::date_names_put< Config, charT, OutputIterator >::default_special_value_names
static
Initial value:
= {
{'n','o','t','-','a','-','d','a','t','e','-','t','i','m','e'},
{'-','i','n','f','i','n','i','t','y'},
{'+','i','n','f','i','n','i','t','y'} }
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
std::locale::id boost::date_time::date_names_put< Config, charT, OutputIterator >::id
static

Generate storage location for a std::locale::id.

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
const date_names_put< Config, charT, OutputIterator >::char_type boost::date_time::date_names_put< Config, charT, OutputIterator >::separator
static
Initial value:
=
{'-', '\0'}

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