![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::date_names_put — Output facet base class for gregorian dates.
// In header: <boost/date_time/date_names_put.hpp> template<typename Config, typename charT = char, typename OutputIterator = charT> > class date_names_put : public { public: // types typedef OutputIterator ; typedef ; typedef ; typedef ; typedef ; typedef charT > ; typedef charT ; // construct/copy/destruct (); // public member functions (void) ; void (, ) ; void (, ) ; void (, ) ; void (, ) ; void (, ) ; bool () ; void () ; void () ; void () ; () ; () ; // protected member functions void (, ) ; void (, ) ; void (, ) ; void (, ) ; void (, ) ; bool () ; void () ; void () ; void () ; () ; () ; void (, const charT *const) ; void (, const ) ; // public data members static const default_special_value_names; static const separator; static id; // Generate storage location for a std::locale::id. };
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).
date_names_put
public member functions(void) ;
void ( oitr, sv) ;
void ( oitr, moy) ;
void ( oitr, moy) ;
void ( oitr, wd) ;
void ( oitr, wd) ;
bool () ;
void ( oitr) ;
void ( oitr) ;char between year-month
void ( oitr) ;Char to separate month-day.
() ;Determines the order to put the date elements.
() ;Determines if month is displayed as integer, short or long string.
date_names_put
protected member functionsvoid ( oitr, moy) ;Default facet implementation uses month_type defaults.
void ( oitr, moy) ;Default facet implementation uses month_type defaults.
void ( oitr, sv) ;Default facet implementation for special value types.
void (, ) ;
void (, ) ;
bool () ;
void ( oitr) ;
void ( oitr) ;char between year-month
void ( oitr) ;Char to separate month-day.
() ;Default for date order.
() ;Default month format.
void ( oi, const charT *const s) ;
void ( oi, const s1) ;