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, 
         typename OutputIterator> 
class date_names_put : public  {
public:
  // types
  typedef              ;         
  typedef          ;        
  typedef          ;        
  typedef        ;      
  typedef  ;
  typedef  ;       
  typedef                       ;         

  // construct/copy/destruct
  ();

  // public member functions
   () ;
   (, ) ;
   (, ) ;
   (, ) ;
   (, ) ;
   (, ) ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;

  // protected member functions
   (, ) ;
   (, ) ;
   (, ) ;
   (, ) ;
   (, ) ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   (, ) ;
   (, ) ;

  // public data members
  static  default_special_value_names;
  static  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.  () ;
  2.  ( oitr,  sv) ;
  3.  ( oitr,  moy) ;
  4.  ( oitr,  moy) ;
  5.  ( oitr,  wd) ;
  6.  ( oitr,  wd) ;
  7.  () ;
  8.  ( oitr) ;
  9.  ( oitr) ;
    char between year-month
  10.  ( 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.  ( oitr,  moy) ;
    Default facet implementation uses month_type defaults.
  2.  ( oitr,  moy) ;
    Default facet implementation uses month_type defaults.
  3.  
    ( oitr,  sv) ;
    Default facet implementation for special value types.
  4.  (, ) ;
  5.  (, ) ;
  6.  () ;
  7.  ( oitr) ;
  8.  ( oitr) ;
    char between year-month
  9.  ( oitr) ;
    Char to separate month-day.
  10.  () ;
    Default for date order.
  11.  () ;
    Default month format.
  12.  ( oi,  s) ;
  13.  ( oi,  s1) ;

PrevUpHomeNext