Namespaces
Variants

std:: messages

From cppreference.net
헤더에 정의됨 <locale>
template < class CharT >
class messages ;

클래스 템플릿 std::messages 는 GNU gettext 또는 POSIX catgets 에서 제공하는 것과 같은 메시지 카탈로그로부터 문자열을 검색하는 기능을 캡슐화하는 표준 로케일 패싯입니다.

메시지의 소스는 구현에 따라 정의됩니다.

cpp/locale/messages base cpp/locale/locale/facet std-messages-inheritance.svg

상속 다이어그램

목차

특수화

표준 라이브러리는 다음과 같은 특수화를 제공함을 보장합니다 (이들은 모든 locale 객체에 의해 구현되어야 하는 요구사항 입니다):

헤더 파일에 정의됨 <locale>
std :: messages < char > narrow 문자열 메시지 카탈로그에 접근
std :: messages < wchar_t > wide 문자열 메시지 카탈로그에 접근

중첩 타입

유형 정의
char_type CharT
string_type std:: basic_string < CharT >

데이터 멤버

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

멤버 함수

새로운 messages 패싯을 생성
(public member function)
messages 패싯을 소멸
(protected member function)
do_open 을 호출
(public member function)
do_get 을 호출
(public member function)
do_close 을 호출
(public member function)

보호된 멤버 함수

[virtual]
명명된 메시지 카탈로그를 엽니다
(가상 protected 멤버 함수)
[virtual]
열린 메시지 카탈로그에서 메시지를 검색합니다
(가상 protected 멤버 함수)
[virtual]
메시지 카탈로그를 닫습니다
(가상 protected 멤버 함수)

std:: messages_base 로부터 상속됨

중첩 타입

타입 정의
catalog 지정되지 않은 부호 있는 정수 타입

참고 항목

메시지 카탈로그 타입을 정의함
(클래스)
명명된 로케일에 대한 시스템 제공 std::messages 를 나타냄
(클래스 템플릿)