Logo Search packages:      
Sourcecode: passenger version File versions  Download package

boost::date_time::time_input_facet< time_type, CharT, InItrT > Class Template Reference

#include <time_facet.hpp>

Inheritance diagram for boost::date_time::time_input_facet< time_type, CharT, InItrT >:

boost::date_time::date_input_facet< time_type::date_type, CharT, InItrT >

List of all members.


Detailed Description

template<class time_type, class CharT, class InItrT = std::istreambuf_iterator<CharT, std::char_traits<CharT> >>
class boost::date_time::time_input_facet< time_type, CharT, InItrT >

Facet for format-based input.

Definition at line 598 of file time_facet.hpp.


Public Types

typedef
boost::date_time::date_input_facet
< typename
time_type::date_type, CharT,
InItrT > 
base_type
typedef base_type::char_type char_type
typedef string_type::const_iterator const_itr
typedef base_type::duration_type date_duration_type
typedef
base_type::date_gen_parser_type 
date_gen_parser_type
typedef time_type::date_type date_type
typedef
time_type::date_type::day_of_week_type 
day_of_week_type
typedef base_type::day_type day_type
typedef
time_type::date_type::duration_type 
duration_type
typedef first_kday_of_month
< time_type::date_type > 
first_kday_type
typedef
base_type::format_date_parser_type 
format_date_parser_type
typedef
time_duration_type::fractional_seconds_type 
fracional_seconds_type
typedef std::vector
< std::basic_string< CharT > > 
input_collection_type
typedef first_kday_after
< time_type::date_type > 
kday_after_type
typedef first_kday_before
< time_type::date_type > 
kday_before_type
typedef last_kday_of_month
< time_type::date_type > 
last_kday_type
typedef
base_type::special_values_parser_type::match_results 
match_results
typedef base_type::month_type month_type
typedef nth_kday_of_month
< time_type::date_type > 
nth_kday_type
typedef partial_date
< time_type::date_type > 
partial_date_type
typedef
base_type::period_parser_type 
period_parser_type
typedef
boost::date_time::period
< time_type,
time_duration_type > 
period_type
typedef
base_type::special_values_parser_type 
special_values_parser_type
typedef base_type::string_type string_type
typedef
time_type::time_duration_type 
time_duration_type
typedef base_type::year_type year_type

Public Member Functions

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 date_gen_element_strings (const input_collection_type &col)
void format (const char_type *const format_str)
InItrT get (InItrT &from, InItrT &to, std::ios_base &a_ios, kday_after_type &fka) 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, last_kday_type &lkd) 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, partial_date_type &pd) 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, duration_type &dd) const
InItrT get (InItrT &from, InItrT &to, std::ios_base &, year_type &y) const
InItrT get (InItrT &from, InItrT &to, std::ios_base &, day_type &d) const
 Expects 1 or 2 digit day range: 1-31.
InItrT get (InItrT &from, InItrT &to, std::ios_base &, day_of_week_type &wd) const
InItrT get (InItrT &from, InItrT &to, std::ios_base &, month_type &m) const
InItrT get (InItrT &from, InItrT &to, std::ios_base &, time_type::date_type &d) const
InItrT get (InItrT &sitr, InItrT &stream_end, std::ios_base &a_ios, time_type &t) const
 Parses a time object from the input stream.
InItrT get (InItrT &sitr, InItrT &stream_end, std::ios_base &a_ios, time_duration_type &td) const
InItrT get (InItrT &sitr, InItrT &stream_end, std::ios_base &a_ios, period_type &p) const
InItrT get_local_time (InItrT &sitr, InItrT &stream_end, std::ios_base &a_ios, time_type &t, string_type &tz_str) const
 Expects a time_zone in the input stream.
void long_month_names (const input_collection_type &month_names)
void long_weekday_names (const input_collection_type &weekday_names)
void month_format (const char_type *const format_str)
void period_parser (period_parser_type per_parser)
virtual void set_iso_extended_format ()
virtual void set_iso_format ()
void short_month_names (const input_collection_type &month_names)
void short_weekday_names (const input_collection_type &weekday_names)
void special_values_parser (special_values_parser_type sv_parser)
void time_duration_format (const char_type *const format)
 Set the format for time_duration.
 time_input_facet (::size_t a_ref=0)
 sets default formats for ptime, local_date_time, and time_duration
 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 a_ref=0)
 time_input_facet (const string_type &format,::size_t a_ref=0)
 Constructor that takes a format string for a ptime.
void weekday_format (const char_type *const format_str)
void year_format (const char_type *const format_str)

Static Public Attributes

static const char_type default_date_format [9]
static const char_type default_period_separator [4]
static const char_type * default_time_duration_format = time_formats<CharT>::default_time_duration_format
static const char_type * default_time_input_format = time_formats<CharT>::default_time_input_format
static const char_type * duration_seperator = time_formats<CharT>::duration_seperator
static const char_type four_digit_year_format [3]
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 std::locale::id id
static const char_type iso_format_extended_specifier [9]
static const char_type iso_format_specifier [7]
static const char_type * iso_time_format_extended_specifier = time_formats<CharT>::iso_time_format_extended_specifier
static const char_type * iso_time_format_specifier = time_formats<CharT>::iso_time_format_specifier
static const char_type long_month_format [3]
static const char_type long_weekday_format [3]
static const char_type * seconds_format = time_formats<CharT>::seconds_format
static const char_type * seconds_with_fractional_seconds_format = time_formats<CharT>::seconds_with_fractional_seconds_format
static const char_type short_month_format [3]
static const char_type short_weekday_format [3]
static const char_type * standard_format = time_formats<CharT>::standard_format
static const char_type standard_format_specifier [3]
static const char_type two_digit_year_format [3]
static const char_type * zone_abbrev_format = time_formats<CharT>::zone_abbrev_format
static const char_type * zone_iso_extended_format = time_formats<CharT>::zone_iso_extended_format
static const char_type * zone_iso_format = time_formats<CharT>::zone_iso_format
static const char_type * zone_name_format = time_formats<CharT>::zone_name_format

Protected Member Functions

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.
InItrT get (InItrT &sitr, InItrT &stream_end, std::ios_base &a_ios, time_type &t, string_type &tz_str, bool time_is_local) const
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.

Protected Attributes

date_gen_parser_type m_date_gen_parser
string_type m_format
string_type m_month_format
format_date_parser_type m_parser
period_parser_type m_period_parser
special_values_parser_type m_sv_parser
string_type m_weekday_format
string_type m_year_format

Private Member Functions

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

Private Attributes

string_type m_time_duration_format

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index