![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::time_input_facet — Facet for format-based input.
// 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; };
time_input_facet
public
construct/copy/destruct(const format, :: ref_arg = );Constructor that takes a format string for a ptime.
(const format, const date_parser, const sv_parser, const per_parser, const date_gen_parser, :: ref_arg = );
(:: ref_arg = );sets default formats for ptime, local_date_time, and
time_duration
time_input_facet
public member functionsvoid (const const format);Set the format for
time_duration
. void ();
void ();
InItrT (InItrT & sitr, InItrT & stream_end, ios_arg, period_type & p) ;
InItrT (InItrT & sitr, InItrT & stream_end, ios_arg, td) ;
InItrT (InItrT & sitr, InItrT & stream_end, ios_arg, t) ;Parses a time object from the input stream.
InItrT (InItrT & sitr, InItrT & stream_end, ios_arg, t, tz_str) ;Expects a time_zone in the input stream.
time_input_facet
protected member functionsInItrT (InItrT & sitr, InItrT & stream_end, ios_arg, t, tz_str, bool time_is_local) ;
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.
void (InItrT & sitr, InItrT & stream_end, frac) ;Helper function for parsing a fractional second type from the stream.