Share via


file_status 클래스

file_type 및 파일 perms를 래핑합니다.

구문

class file_status;

생성자

생성자 Description
file_status file_type 및 파일 퍼머에 대한 래퍼를 생성합니다.

멤버 함수

멤버 함수 설명
type file_type를 가져오거나 설정합니다.
permissions 파일 사용 권한을 가져오거나 설정합니다.

연산자

연산자 설명
operator= 기본 멤버 대입 연산자가 예상대로 작동합니다.

요구 사항

헤더:<파일 시스템>

네임스페이스: std::experimental::filesystem, std::experimental::filesystem

file_status::file_status

file_type 및 파일 퍼머에 대한 래퍼를 생성합니다.

explicit file_status(
   file_type ftype = file_type::none,
   perms mask = perms::unknown) noexcept;

file_status(const file_status&) noexcept = default;

file_status(file_status&&) noexcept = default;

~file_status() noexcept = default;

매개 변수

ftype
지정됨 file_type, 기본값: file_type::none.

마스크
지정된 파일 perms의 기본값은 .입니다 perms::unknown.

file_status
저장된 개체입니다.

file_status::operator=

기본 멤버 대입 연산자가 예상대로 작동합니다.

file_status& operator=(const file_status&) noexcept = default;
file_status& operator=(file_status&&) nexcept = default;

매개 변수

file_status
file_status에 복사되는 file_status입니다.

type

file_type를 가져오거나 설정합니다.

file_type type() const noexcept
void type(file_type ftype) noexcept

매개 변수

ftype
file_type로 지정됩니다.

permissions

파일 사용 권한을 가져오거나 설정합니다.

setter를 사용하여 파일을 readonly 만들거나 특성을 제거 readonly 합니다.

perms permissions() const noexcept
void permissions(perms mask) noexcept

매개 변수

마스크
perms로 지정됩니다.

참고 항목

헤더 파일 참조
path 클래스
<filesystem>