Namespaces
Variants

std:: time_get_byname

From cppreference.net
헤더 파일에 정의됨 <locale>
template <

class CharT,
class InputIt = std:: istreambuf_iterator < CharT >

> class time_get_byname : public std:: time_get < CharT, InputIt >

std::time_get_byname 는 생성 시 지정된 로캘의 시간 및 날짜 파싱 규칙을 캡슐화하는 std::time_get 패싯입니다.

목차

특수화

표준 라이브러리는 다음 타입 요구사항을 만족하는 모든 특수화를 제공함이 보장됩니다:

  • CharT char wchar_t 중 하나이며,
  • InputIt LegacyInputIterator 요구사항을 충족해야 합니다.

중첩 타입

유형 정의
char_type CharT
iter_type InputIt

멤버 함수

(constructor)
새로운 time_get_byname 패싯을 생성합니다
(public member function)
(destructor)
time_get_byname 패싯을 파괴합니다
(protected member function)

std::time_get_byname:: time_get_byname

explicit time_get_byname ( const char * name, std:: size_t refs = 0 ) ;
explicit time_get_byname ( const std:: string & name, std:: size_t refs = 0 ) ;
(C++11 이후)

name 로케일을 위한 새로운 std::time_get_byname 패싯을 생성합니다.

refs 는 리소스 관리에 사용됩니다: refs == 0 인 경우, 구현은 이 패싯을 포함하는 마지막 std::locale 객체가 소멸될 때 패싯을 파괴합니다. 그렇지 않으면 객체는 파괴되지 않습니다.

매개변수

name - 로케일의 이름
refs - 패싯에 연결되는 참조 횟수

std::time_get_byname:: ~time_get_byname

protected :
~time_get_byname ( ) ;

패싯을 파괴합니다.

std:: time_get 로부터 상속됨

중첩 타입

타입 정의
char_type CharT
iter_type InputIt

데이터 멤버

멤버 설명
std::locale::id id [static] 패싯 의 식별자

멤버 함수

do_date_order 를 호출함
( std::time_get<CharT,InputIt> 의 public 멤버 함수)
do_get_time 를 호출함
( std::time_get<CharT,InputIt> 의 public 멤버 함수)
do_get_date 를 호출함
( std::time_get<CharT,InputIt> 의 public 멤버 함수)
do_get_weekday 를 호출함
( std::time_get<CharT,InputIt> 의 public 멤버 함수)
do_get_monthname 를 호출함
( std::time_get<CharT,InputIt> 의 public 멤버 함수)
do_get_year 를 호출함
( std::time_get<CharT,InputIt> 의 public 멤버 함수)
(C++11)
do_get 를 호출함
( std::time_get<CharT,InputIt> 의 public 멤버 함수)

보호된 멤버 함수

[virtual]
일, 월, 년의 선호되는 순서를 얻음
( std::time_get<CharT,InputIt> 의 virtual protected 멤버 함수)
[virtual]
입력 스트림에서 시, 분, 초를 추출함
( std::time_get<CharT,InputIt> 의 virtual protected 멤버 함수)
[virtual]
입력 스트림에서 월, 일, 년을 추출함
( std::time_get<CharT,InputIt> 의 virtual protected 멤버 함수)
입력 스트림에서 요일 이름을 추출함
( std::time_get<CharT,InputIt> 의 virtual protected 멤버 함수)
입력 스트림에서 월 이름을 추출함
( std::time_get<CharT,InputIt> 의 virtual protected 멤버 함수)
[virtual]
입력 스트림에서 연도를 추출함
( std::time_get<CharT,InputIt> 의 virtual protected 멤버 함수)
[virtual] (C++11)
지정된 형식에 따라 입력 스트림에서 날짜/시간 구성 요소를 추출함
( std::time_get<CharT,InputIt> 의 virtual protected 멤버 함수)

std:: time_base 로부터 상속됨

중첩 타입

타입 정의
dateorder 날짜 순서 열거형 타입으로, no_order , dmy , mdy , ymd , ydm 값을 정의함

예제

참고 항목

입력 문자 시퀀스로부터 시간/날짜 값을 std::tm 으로 파싱합니다
(클래스 템플릿)
(C++11)
지정된 형식의 날짜/시간 값을 파싱합니다
(함수 템플릿)