LLVM  6.0.0svn
Public Member Functions | Protected Attributes | List of all members
llvm::sys::fs::basic_file_status Class Reference

Represents the result of a call to directory_iterator::status(). More...

#include "llvm/Support/FileSystem.h"

Inheritance diagram for llvm::sys::fs::basic_file_status:
Inheritance graph
[legend]
Collaboration diagram for llvm::sys::fs::basic_file_status:
Collaboration graph
[legend]

Public Member Functions

 basic_file_status ()=default
 
 basic_file_status (file_type Type)
 
file_type type () const
 
perms permissions () const
 
TimePoint getLastAccessedTime () const
 
TimePoint getLastModificationTime () const
 
void type (file_type v)
 
void permissions (perms p)
 

Protected Attributes

file_type Type = file_type::status_error
 
perms Perms = perms_not_known
 

Detailed Description

Represents the result of a call to directory_iterator::status().

This is a subset of the information returned by a regular sys::fs::status() call, and represents the information provided by Windows FileFirstFile/FindNextFile.

Definition at line 148 of file FileSystem.h.

Constructor & Destructor Documentation

◆ basic_file_status() [1/2]

llvm::sys::fs::basic_file_status::basic_file_status ( )
default

◆ basic_file_status() [2/2]

llvm::sys::fs::basic_file_status::basic_file_status ( file_type  Type)
inlineexplicit

Definition at line 170 of file FileSystem.h.

References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size.

Member Function Documentation

◆ getLastAccessedTime()

TimePoint llvm::sys::fs::basic_file_status::getLastAccessedTime ( ) const

◆ getLastModificationTime()

TimePoint llvm::sys::fs::basic_file_status::getLastModificationTime ( ) const

◆ permissions() [1/2]

perms llvm::sys::fs::basic_file_status::permissions ( ) const
inline

Definition at line 191 of file FileSystem.h.

Referenced by llvm::NewArchiveMember::getFile(), and llvm::sys::fs::getPermissions().

◆ permissions() [2/2]

void llvm::sys::fs::basic_file_status::permissions ( perms  p)
inline

Definition at line 215 of file FileSystem.h.

◆ type() [1/2]

file_type llvm::sys::fs::basic_file_status::type ( ) const
inline

◆ type() [2/2]

void llvm::sys::fs::basic_file_status::type ( file_type  v)
inline

Definition at line 214 of file FileSystem.h.

Member Data Documentation

◆ Perms

perms llvm::sys::fs::basic_file_status::Perms = perms_not_known
protected

Definition at line 165 of file FileSystem.h.

◆ Type

file_type llvm::sys::fs::basic_file_status::Type = file_type::status_error
protected

Definition at line 164 of file FileSystem.h.


The documentation for this class was generated from the following file: