Facet for format-based input. More...
#include <time_facet.hpp>
Public Member Functions | |
time_input_facet (const string_type &format,::size_t ref_arg=0) | |
Constructor that takes a format string for a ptime. More... | |
time_input_facet (const string_type &format, const format_date_parser_type &date_parser, const special_values_parser_type &sv_parser, const period_parser_type &per_parser, const date_gen_parser_type &date_gen_parser,::size_t ref_arg=0) | |
time_input_facet (::size_t ref_arg=0) | |
sets default formats for ptime, local_date_time, and time_duration More... | |
void | time_duration_format (const char_type *const format) |
Set the format for time_duration. More... | |
virtual void | set_iso_format () |
virtual void | set_iso_extended_format () |
InItrT | get (InItrT &sitr, InItrT &stream_end, std::ios_base &ios_arg, period_type &p) const |
InItrT | get (InItrT &sitr, InItrT &stream_end, std::ios_base &ios_arg, time_duration_type &td) const |
InItrT | get (InItrT &sitr, InItrT &stream_end, std::ios_base &ios_arg, time_type &t) const |
Parses a time object from the input stream. More... | |
InItrT | get_local_time (InItrT &sitr, InItrT &stream_end, std::ios_base &ios_arg, time_type &t, string_type &tz_str) const |
Expects a time_zone in the input stream. More... | |
void | format (const char_type *const format_str) |
void | month_format (const char_type *const format_str) |
void | weekday_format (const char_type *const format_str) |
void | year_format (const char_type *const format_str) |
void | period_parser (period_parser_type per_parser) |
void | short_weekday_names (const input_collection_type &weekday_names) |
void | long_weekday_names (const input_collection_type &weekday_names) |
void | short_month_names (const input_collection_type &month_names) |
void | long_month_names (const input_collection_type &month_names) |
void | date_gen_element_strings (const input_collection_type &col) |
void | date_gen_element_strings (const string_type &first, const string_type &second, const string_type &third, const string_type &fourth, const string_type &fifth, const string_type &last, const string_type &before, const string_type &after, const string_type &of) |
void | special_values_parser (special_values_parser_type sv_parser) |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &, time_type::date_type &d) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &, month_type &m) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &, day_of_week_type &wd) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &, day_type &d) const |
Expects 1 or 2 digit day range: 1-31. More... | |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &, year_type &y) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &a_ios, duration_type &dd) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &a_ios, period_type &p) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &a_ios, nth_kday_type &nkd) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &a_ios, partial_date_type &pd) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &a_ios, first_kday_type &fkd) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &a_ios, last_kday_type &lkd) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &a_ios, kday_before_type &fkb) const |
InItrT | get (InItrT &from, InItrT &to, std::ios_base &a_ios, kday_after_type &fka) const |
Static Public Attributes | |
static const char_type * | fractional_seconds_format = time_formats<CharT>::fractional_seconds_format |
static const char_type * | fractional_seconds_or_none_format = time_formats<CharT>::fractional_seconds_or_none_format |
static const char_type * | seconds_with_fractional_seconds_format = time_formats<CharT>::seconds_with_fractional_seconds_format |
static const char_type * | seconds_format = time_formats<CharT>::seconds_format |
static const char_type * | standard_format = time_formats<CharT>::standard_format |
static const char_type * | zone_abbrev_format = time_formats<CharT>::zone_abbrev_format |
static const char_type * | zone_name_format = time_formats<CharT>::zone_name_format |
static const char_type * | zone_iso_format = time_formats<CharT>::zone_iso_format |
static const char_type * | zone_iso_extended_format = time_formats<CharT>::zone_iso_extended_format |
static const char_type * | duration_seperator = time_formats<CharT>::duration_seperator |
static const char_type * | iso_time_format_specifier = time_formats<CharT>::iso_time_format_specifier |
static const char_type * | iso_time_format_extended_specifier = time_formats<CharT>::iso_time_format_extended_specifier |
static const char_type * | default_time_input_format = time_formats<CharT>::default_time_input_format |
static const char_type * | default_time_duration_format = time_formats<CharT>::default_time_duration_format |
static std::locale::id | id |
static const char_type | long_weekday_format [3] |
static const char_type | short_weekday_format [3] |
static const char_type | long_month_format [3] |
static const char_type | short_month_format [3] |
static const char_type | four_digit_year_format [3] |
static const char_type | two_digit_year_format [3] |
static const char_type | default_period_separator [4] |
static const char_type | standard_format_specifier [3] |
static const char_type | iso_format_specifier [7] |
static const char_type | iso_format_extended_specifier [9] |
static const char_type | default_date_format [9] |
Protected Member Functions | |
InItrT | get (InItrT &sitr, InItrT &stream_end, std::ios_base &ios_arg, time_type &t, string_type &tz_str, bool time_is_local) const |
template<class temporal_type > | |
InItrT | check_special_value (InItrT &sitr, InItrT &stream_end, temporal_type &tt, char_type c='\0') const |
Helper function to check for special_value. More... | |
void | parse_frac_type (InItrT &sitr, InItrT &stream_end, fracional_seconds_type &frac) const |
Helper function for parsing a fractional second type from the stream. More... | |
Facet for format-based input.
typedef boost::date_time::date_input_facet<typename time_type::date_type, CharT, InItrT> boost::date_time::time_input_facet< time_type, CharT, InItrT >::base_type |
typedef base_type::char_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::char_type |
typedef string_type::const_iterator boost::date_time::time_input_facet< time_type, CharT, InItrT >::const_itr |
typedef base_type::duration_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::date_duration_type |
typedef base_type::date_gen_parser_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::date_gen_parser_type |
typedef time_type::date_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::date_type |
|
inherited |
typedef base_type::day_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::day_type |
|
inherited |
|
inherited |
typedef base_type::format_date_parser_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::format_date_parser_type |
typedef time_duration_type::fractional_seconds_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::fracional_seconds_type |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
typedef base_type::special_values_parser_type::match_results boost::date_time::time_input_facet< time_type, CharT, InItrT >::match_results |
typedef base_type::month_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::month_type |
|
inherited |
|
inherited |
typedef base_type::period_parser_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::period_parser_type |
typedef boost::date_time::period<time_type,time_duration_type> boost::date_time::time_input_facet< time_type, CharT, InItrT >::period_type |
typedef base_type::special_values_parser_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::special_values_parser_type |
typedef base_type::string_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::string_type |
typedef time_type::time_duration_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::time_duration_type |
typedef base_type::year_type boost::date_time::time_input_facet< time_type, CharT, InItrT >::year_type |
|
inlineexplicit |
Constructor that takes a format string for a ptime.
|
inlineexplicit |
|
inlineexplicit |
sets default formats for ptime, local_date_time, and time_duration
|
inlineprotected |
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.
References BOOST_DATE_TIME_UNREACHABLE_EXPRESSION, boost::multiprecision::backends::c, boost::date_time::date_input_facet< time_type::date_type, CharT, InItrT >::m_sv_parser, boost::date_time::special_values_parser< date_type, charT >::match(), and boost::throw_exception().
Referenced by boost::date_time::time_input_facet< time_type, CharT, InItrT >::get().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
References boost::date_time::date_input_facet< date_type, CharT, InItrT >::m_format, boost::date_time::date_input_facet< date_type, CharT, InItrT >::m_parser, boost::date_time::date_input_facet< date_type, CharT, InItrT >::m_sv_parser, and boost::date_time::format_date_parser< date_type, charT >::parse_date().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Expects 1 or 2 digit day range: 1-31.
References boost::date_time::date_input_facet< date_type, CharT, InItrT >::m_parser, and boost::date_time::format_date_parser< date_type, charT >::parse_var_day_of_month().
|
inlineinherited |
|
inlineinherited |
References BOOST_DATE_TIME_UNREACHABLE_EXPRESSION, boost::multiprecision::backends::c, boost::regex_constants::failbit, boost::date_time::date_input_facet< date_type, CharT, InItrT >::m_sv_parser, boost::date_time::special_values_parser< date_type, charT >::match(), boost::throw_exception(), and boost::phoenix::val().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
References boost::multiprecision::backends::c, boost::date_time::time_input_facet< time_type, CharT, InItrT >::check_special_value(), boost::locale::period::marks::hour, boost::accumulators::extract::min, boost::date_time::time_input_facet< time_type, CharT, InItrT >::parse_frac_type(), boost::date_time::sec, and boost::iostreams::bzip2::stream_end.
|
inline |
Parses a time object from the input stream.
References boost::iostreams::bzip2::stream_end, and boost::flyweights::t.
|
inlineprotected |
References boost::multiprecision::backends::c, boost::date_time::time_input_facet< time_type, CharT, InItrT >::check_special_value(), boost::locale::period::marks::day_of_year, boost::locale::period::marks::hour, boost::date_time::date_input_facet< time_type::date_type, CharT, InItrT >::m_format, boost::date_time::date_input_facet< time_type::date_type, CharT, InItrT >::m_parser, boost::date_time::date_input_facet< time_type::date_type, CharT, InItrT >::m_sv_parser, boost::date_time::special_values_parser< date_type, charT >::match(), boost::accumulators::extract::min, boost::date_time::not_a_date_time, boost::date_time::format_date_parser< date_type, charT >::parse_day_of_month(), boost::date_time::time_input_facet< time_type, CharT, InItrT >::parse_frac_type(), boost::date_time::format_date_parser< date_type, charT >::parse_month(), boost::date_time::format_date_parser< date_type, charT >::parse_weekday(), boost::date_time::format_date_parser< date_type, charT >::parse_year(), boost::asio::s, boost::date_time::sec, and boost::iostreams::bzip2::stream_end.
|
inline |
Expects a time_zone in the input stream.
References boost::iostreams::bzip2::stream_end, and boost::flyweights::t.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineprotected |
Helper function for parsing a fractional second type from the stream.
References boost::parallel::cache(), and boost::lexical_cast().
Referenced by boost::date_time::time_input_facet< time_type, CharT, InItrT >::get().
|
inlineinherited |
|
inlinevirtual |
|
inlinevirtual |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Set the format for time_duration.
References boost::date_time::date_input_facet< time_type::date_type, CharT, InItrT >::format().
|
inlineinherited |
|
inlineinherited |
|
staticinherited |
|
staticinherited |
|
static |
|
static |
|
static |
|
staticinherited |
|
static |
|
static |
|
static |
|
staticinherited |
|
staticinherited |
|
static |
|
static |
|
staticinherited |
|
staticinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
static |
|
static |
|
staticinherited |
|
staticinherited |
|
static |
|
staticinherited |
|
staticinherited |
|
static |
|
static |
|
static |
|
static |