#include <locale_facets.h>
Inheritance diagram for time_get:
The time_get template uses protected virtual functions to provide the actual results. The public accessors forward the call to the virtual functions. These virtual functions are hooks for developers to implement the behavior they require from the time_get facet.
Definition at line 2984 of file locale_facets.h.
|
Public typedefs. Definition at line 2990 of file locale_facets.h. Referenced by time_get::do_get_date(), time_get::do_get_monthname(), time_get::do_get_time(), and time_get::do_get_weekday(). |
|
Public typedefs. Definition at line 2991 of file locale_facets.h. Referenced by time_get::do_get_date(), time_get::do_get_monthname(), time_get::do_get_time(), time_get::do_get_weekday(), and time_get::do_get_year(). |
|
Constructor performs initialization. This is the constructor provided by the standard.
|
|
Destructor. Definition at line 3162 of file locale_facets.h. |
|
Return preferred order of month, day, and year. This function returns an enum from timebase::dateorder giving the preferred ordering if the format "x" given to time_put::put() only uses month, day, and year. If the format "x" for the associated locale uses other fields, this function returns timebase::dateorder::noorder. NOTE: The library always returns noorder at the moment.
References time_get::do_date_order(). |
|
Return preferred order of month, day, and year. This function returns an enum from timebase::dateorder giving the preferred ordering if the format "x" given to time_put::put() only uses month, day, and year. This function is a hook for derived classes to change the value returned.
Referenced by time_get::date_order(). |
|
Parse input date string. This function parses a date according to the format "X" and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
References time_get::char_type, ios_base::iostate, and time_get::iter_type. Referenced by time_get::get_date(). |
|
Parse input month string. This function parses a month name and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
References time_get::char_type, ios_base::iostate, and time_get::iter_type. Referenced by time_get::get_monthname(). |
|
Parse input time string. This function parses a time according to the format "x" and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
References time_get::char_type, ios_base::iostate, and time_get::iter_type. Referenced by time_get::get_time(). |
|
Parse input weekday string. This function parses a weekday name and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
References time_get::char_type, ios_base::iostate, and time_get::iter_type. Referenced by time_get::get_weekday(). |
|
Parse input year string. This function reads up to 4 characters to parse a year string and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
References ios_base::iostate, time_get::iter_type, and ctype_abstract_base::narrow(). Referenced by time_get::get_year(). |
|
Parse input date string. This function parses a date according to the format "X" and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_date(). If there is a valid date string according to format "X", tm will be filled in accordingly and the returned iterator will point to the first character beyond the date string. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
References time_get::do_get_date(), and ios_base::iostate. |
|
Parse input month string. This function parses a month name and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_monthname(). Parsing starts by parsing an abbreviated month name. If a valid abbreviation is followed by a character that would lead to the full month name, parsing continues until the full name is found or an error occurs. Otherwise parsing finishes at the end of the abbreviated name. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
References time_get::do_get_monthname(), and ios_base::iostate. |
|
Parse input time string. This function parses a time according to the format "x" and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_time(). If there is a valid time string according to format "x", tm will be filled in accordingly and the returned iterator will point to the first character beyond the time string. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
References time_get::do_get_time(), and ios_base::iostate. |
|
Parse input weekday string. This function parses a weekday name and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_weekday(). Parsing starts by parsing an abbreviated weekday name. If a valid abbreviation is followed by a character that would lead to the full weekday name, parsing continues until the full name is found or an error occurs. Otherwise parsing finishes at the end of the abbreviated name. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
References time_get::do_get_weekday(), and ios_base::iostate. |
|
Parse input year string. This function reads up to 4 characters to parse a year string and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_year(). 4 consecutive digits are interpreted as a full year. If there are exactly 2 consecutive digits, the library interprets this as the number of years since 1900. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
References time_get::do_get_year(), and ios_base::iostate. |
|
Numpunct facet id. Definition at line 3293 of file locale_facets.h. |