Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template date_names_put

boost::date_time::date_names_put — Output facet base class for gregorian dates.

Synopsis

// 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. 
};

Description

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 construct/copy/destruct

  1. ();

date_names_put public member functions

  1.  (void) ;
  2. void ( oitr,  sv) ;
  3. void ( oitr,  moy) ;
  4. void ( oitr,  moy) ;
  5. void ( oitr,  wd) ;
  6. void ( oitr,  wd) ;
  7. bool () ;
  8. void ( oitr) ;
  9. void ( oitr) ;
    char between year-month
  10. void ( oitr) ;
    Char to separate month-day.
  11.  () ;
    Determines the order to put the date elements.
  12.  () ;
    Determines if month is displayed as integer, short or long string.

date_names_put protected member functions

  1. void ( oitr,  moy) ;
    Default facet implementation uses month_type defaults.
  2. void ( oitr,  moy) ;
    Default facet implementation uses month_type defaults.
  3. void 
    ( oitr,  sv) ;
    Default facet implementation for special value types.
  4. void (, ) ;
  5. void (, ) ;
  6. bool () ;
  7. void ( oitr) ;
  8. void ( oitr) ;
    char between year-month
  9. void ( oitr) ;
    Char to separate month-day.
  10.  () ;
    Default for date order.
  11.  () ;
    Default month format.
  12. void ( oi, const charT *const s) ;
  13. void ( oi, const  s1) ;

PrevUpHomeNext