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

A date name output facet that takes an array of char* to define strings. More...

#include <date_names_put.hpp>

Inheritance diagram for boost::date_time::all_date_names_put< Config, charT, OutputIterator >:
Collaboration diagram for boost::date_time::all_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
 
typedef Config::month_type month_type
 
typedef std::basic_string< charT > string_type
 
typedef charT char_type
 

Public Member Functions

 all_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)
 
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
 
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
 Generic facet that takes array of chars. More...
 
virtual void do_put_month_long (iter_type &oitr, month_enum moy) const
 Long month names. More...
 
virtual void do_put_special_value (iter_type &oitr, special_value_enum sv) const
 Special values names. More...
 
virtual void do_put_weekday_short (iter_type &oitr, weekday_enum wd) const
 
virtual void do_put_weekday_long (iter_type &oitr, weekday_enum wd) 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
 Set the date ordering. More...
 
virtual month_format_spec do_month_format () const
 Set the date ordering. More...
 
virtual bool do_has_date_sep_chars () const
 
virtual void do_year_sep_char (iter_type &oitr) const
 
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::all_date_names_put< Config, charT, OutputIterator >

A date name output facet that takes an array of char* to define strings.

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
inherited
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef OutputIterator boost::date_time::all_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::all_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
inherited
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef Config::special_value_enum boost::date_time::all_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
inherited
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
typedef Config::weekday_enum boost::date_time::all_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::all_date_names_put< Config, charT, OutputIterator >::all_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 
)
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
inlineinherited

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
inlineinherited
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual ymd_order_spec boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_date_order ( ) const
inlineprotectedvirtual

Set the date ordering.

Reimplemented from boost::date_time::date_names_put< Config, charT, OutputIterator >.

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::all_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
inlineprotectedvirtualinherited
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual month_format_spec boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_month_format ( ) const
inlineprotectedvirtual

Set the date ordering.

Reimplemented from boost::date_time::date_names_put< Config, charT, OutputIterator >.

template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::all_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::all_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::all_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::all_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::all_date_names_put< Config, charT, OutputIterator >::do_put_weekday_long ( iter_type oitr,
weekday_enum  wd 
) const
inlineprotectedvirtual
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
virtual void boost::date_time::all_date_names_put< Config, charT, OutputIterator >::do_put_weekday_short ( iter_type oitr,
weekday_enum  wd 
) 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
inlineprotectedvirtualinherited
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
const charT* const* boost::date_time::all_date_names_put< Config, charT, OutputIterator >::get_long_month_names ( ) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
const charT* const* boost::date_time::all_date_names_put< Config, charT, OutputIterator >::get_long_weekday_names ( ) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
const charT* const* boost::date_time::all_date_names_put< Config, charT, OutputIterator >::get_short_month_names ( ) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
const charT* const* boost::date_time::all_date_names_put< Config, charT, OutputIterator >::get_short_weekday_names ( ) const
inline
template<class Config , class charT = char, class OutputIterator = std::ostreambuf_iterator<charT>>
const charT* const* boost::date_time::all_date_names_put< Config, charT, OutputIterator >::get_special_value_names ( ) const
inline
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
inlineinherited
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
inlineinherited

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
inlineinherited
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
inlineinherited
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
inlineinherited
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
inlineinherited
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 charT *const  s 
) const
inlineprotectedinherited
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
inlineprotectedinherited

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
inlineinherited
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
inlineinherited
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
inlineinherited

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
staticinherited
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
staticinherited

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
staticinherited
Initial value:
=
{'-', '\0'}

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