Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template time_input_facet

boost::date_time::time_input_facet — Facet for format-based input.

Synopsis

// In header: <boost/date_time/time_facet.hpp>

template<typename time_type, typename CharT, 
         typename InItrT = CharT, CharT> > > 
class time_input_facet : public  {
public:
  // types
  typedef                                                                ;                 
  typedef                                                       ;        
  typedef                                         ;    
  typedef boost::date_time::period<                           ;               
  typedef boost::date_time::date_input_facet< typename CharT, InItrT > ;                 
  typedef                                                            ;        
  typedef                                                                ;                 
  typedef                                                               ;                
  typedef                                                                 ;                  
  typedef                                                              ;               
  typedef                                                         ;                 
  typedef                                                                ;                 
  typedef                                                  ;   
  typedef                                                       ;        
  typedef                                               ;
  typedef                                                     ;      
  typedef                                ;             

  // construct/copy/destruct
  (const , :: = );
  (const , 
                            const , 
                            const , 
                            const , 
                            const , :: = );
  (:: = );

  // public member functions
  void (const const);
  void ();
  void ();
  InItrT (InItrT &, InItrT &, , period_type &) ;
  InItrT (InItrT &, InItrT &, , ) ;
  InItrT (InItrT &, InItrT &, , ) ;
  InItrT (InItrT &, InItrT &, , , 
                        ) ;

  // protected member functions
  InItrT (InItrT &, InItrT &, , , , 
             bool) ;
  template<typename temporal_type> 
    InItrT (InItrT &, InItrT &, temporal_type &, 
                                = '\0') ;
  void (InItrT &, InItrT &, ) ;

  // private member functions
  template<typename int_type> 
     (, const unsigned short) ;

  // public data members
  static const  fractional_seconds_format;
  static const  fractional_seconds_or_none_format;
  static const  seconds_with_fractional_seconds_format;
  static const  seconds_format;
  static const  standard_format;
  static const  zone_abbrev_format;
  static const  zone_name_format;
  static const  zone_iso_format;
  static const  zone_iso_extended_format;
  static const  duration_seperator;
  static const  iso_time_format_specifier;
  static const  iso_time_format_extended_specifier;
  static const  default_time_input_format;
  static const  default_time_duration_format;
  static  id;
};

Description

time_input_facet public construct/copy/destruct

  1. (const  format, :: ref_arg = );
    Constructor that takes a format string for a ptime.
  2. (const  format, 
                              const  date_parser, 
                              const  sv_parser, 
                              const  per_parser, 
                              const  date_gen_parser, 
                              :: ref_arg = );
  3. (:: ref_arg = );
    sets default formats for ptime, local_date_time, and time_duration

time_input_facet public member functions

  1. void (const const format);
    Set the format for time_duration.
  2. void ();
  3. void ();
  4. InItrT (InItrT & sitr, InItrT & stream_end,  ios_arg, 
               period_type & p) ;
  5. InItrT (InItrT & sitr, InItrT & stream_end,  ios_arg, 
                td) ;
  6. InItrT (InItrT & sitr, InItrT & stream_end,  ios_arg, 
                t) ;
    Parses a time object from the input stream.
  7. InItrT (InItrT & sitr, InItrT & stream_end, 
                           ios_arg,  t, 
                           tz_str) ;
    Expects a time_zone in the input stream.

time_input_facet protected member functions

  1. InItrT (InItrT & sitr, InItrT & stream_end,  ios_arg, 
                t,  tz_str, bool time_is_local) ;
  2. template<typename temporal_type> 
      InItrT (InItrT & sitr, InItrT & stream_end, 
                                 temporal_type & tt,  c = '\0') ;
    Helper function to check for special_value.

    First character may have been consumed during original parse attempt. Parameter 'c' should be a copy of that character. Throws ios_base::failure if parse fails.

  3. void (InItrT & sitr, InItrT & stream_end, 
                          frac) ;
    Helper function for parsing a fractional second type from the stream.

time_input_facet private member functions

  1. template<typename int_type> 
       ( val, const unsigned short places) ;
    Helper function to adjust trailing zeros when parsing fractional digits.

PrevUpHomeNext