// In header: <boost/date_time/date_facet.hpp>
template<typename date_type,typename CharT,typename InItrT =std::istreambuf_iterator<CharT,std::char_traits<CharT>>>classdate_input_facet:publicfacet{public:// typestypedefdate_type::duration_typeduration_type;typedefdate_type::day_of_week_typeday_of_week_type;typedefdate_type::day_typeday_type;typedefdate_type::month_typemonth_type;typedefdate_type::year_typeyear_type;typedefboost::date_time::period<date_type,duration_type>period_type;typedefstd::basic_string<CharT>string_type;typedefCharTchar_type;typedefboost::date_time::period_parser<date_type,CharT>period_parser_type;typedefboost::date_time::special_values_parser<date_type,CharT>special_values_parser_type;typedefstd::vector<std::basic_string<CharT>>input_collection_type;typedefformat_date_parser<date_type,CharT>format_date_parser_type;typedefdate_generator_parser<date_type,CharT>date_gen_parser_type;typedefpartial_date<date_type>partial_date_type;typedefnth_kday_of_month<date_type>nth_kday_type;typedeffirst_kday_of_month<date_type>first_kday_type;typedeflast_kday_of_month<date_type>last_kday_type;typedeffirst_kday_after<date_type>kday_after_type;typedeffirst_kday_before<date_type>kday_before_type;// construct/copy/destructexplicitdate_input_facet(::size_t=0);explicitdate_input_facet(conststring_type&,::size_t=0);explicitdate_input_facet(conststring_type&,constformat_date_parser_type&,constspecial_values_parser_type&,constperiod_parser_type&,constdate_gen_parser_type&,::size_t=0);// public member functionsvoidformat(constchar_type*const);virtualvoidset_iso_format();virtualvoidset_iso_extended_format();voidmonth_format(constchar_type*const);voidweekday_format(constchar_type*const);voidyear_format(constchar_type*const);voidperiod_parser(period_parser_type);voidshort_weekday_names(constinput_collection_type&);voidlong_weekday_names(constinput_collection_type&);voidshort_month_names(constinput_collection_type&);voidlong_month_names(constinput_collection_type&);voiddate_gen_element_strings(constinput_collection_type&);voiddate_gen_element_strings(conststring_type&,conststring_type&,conststring_type&,conststring_type&,conststring_type&,conststring_type&,conststring_type&,conststring_type&,conststring_type&);voidspecial_values_parser(special_values_parser_type);InItrTget(InItrT&,InItrT&,std::ios_base&,date_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,month_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,day_of_week_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,day_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,year_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,duration_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,period_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,nth_kday_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,partial_date_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,first_kday_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,last_kday_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,kday_before_type&)const;InItrTget(InItrT&,InItrT&,std::ios_base&,kday_after_type&)const;// public data membersstaticconstchar_typelong_weekday_format;staticconstchar_typeshort_weekday_format;staticconstchar_typelong_month_format;staticconstchar_typeshort_month_format;staticconstchar_typefour_digit_year_format;staticconstchar_typetwo_digit_year_format;staticconstchar_typedefault_period_separator;staticconstchar_typestandard_format_specifier;staticconstchar_typeiso_format_specifier;staticconstchar_typeiso_format_extended_specifier;staticconstchar_typedefault_date_format;staticstd::locale::idid;};
Статья Class template date_input_facet раздела The Boost C++ Libraries BoostBook Documentation Subset Library Reference может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.