Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx::filesystem_t::FileStatus Class Reference

A class to store file type and permissions. More...

#include <ssgx_filesystem_t.h>

Public Member Functions

 FileStatus () noexcept
 Construct a FileStatus and initialize it.
 
 FileStatus (FileType ft, Perms prms=Perms::Unknown) noexcept
 Construct a FileStatus and initialize it.
 
 FileStatus (const FileStatus &) noexcept=default
 A copy constructor.
 
 FileStatus (FileStatus &&) noexcept=default
 A move constructor.
 
 ~FileStatus ()
 Destruction.
 
FileStatusoperator= (const FileStatus &) noexcept=default
 A copy assignment operator.
 
FileStatusoperator= (FileStatus &&) noexcept=default
 A move assignment operator.
 
FileType Type () const noexcept
 Return the file type of file.
 
Perms Permissions () const noexcept
 Return the permissions of file.
 
void Type (FileType ft) noexcept
 Modify the file type in FileStatus.
 
void Permissions (Perms p) noexcept
 Modify the permissions in FileStatus.
 

Detailed Description

A class to store file type and permissions.

Constructor & Destructor Documentation

◆ FileStatus() [1/4]

ssgx::filesystem_t::FileStatus::FileStatus ( )
inlinenoexcept

Construct a FileStatus and initialize it.

◆ FileStatus() [2/4]

ssgx::filesystem_t::FileStatus::FileStatus ( FileType ft,
Perms prms = Perms::Unknown )
inlineexplicitnoexcept

Construct a FileStatus and initialize it.

◆ FileStatus() [3/4]

ssgx::filesystem_t::FileStatus::FileStatus ( const FileStatus & )
defaultnoexcept

A copy constructor.

◆ FileStatus() [4/4]

ssgx::filesystem_t::FileStatus::FileStatus ( FileStatus && )
defaultnoexcept

A move constructor.

◆ ~FileStatus()

ssgx::filesystem_t::FileStatus::~FileStatus ( )
inline

Destruction.

Member Function Documentation

◆ operator=() [1/2]

FileStatus & ssgx::filesystem_t::FileStatus::operator= ( const FileStatus & )
defaultnoexcept

A copy assignment operator.

Returns
A FileStatus object copied from another FileStatus object

◆ operator=() [2/2]

FileStatus & ssgx::filesystem_t::FileStatus::operator= ( FileStatus && )
defaultnoexcept

A move assignment operator.

Returns
A FileStatus object moved from another FileStatus object

◆ Permissions() [1/2]

Perms ssgx::filesystem_t::FileStatus::Permissions ( ) const
inlinenoexcept

Return the permissions of file.

Returns
Permissions (octal number)

◆ Permissions() [2/2]

void ssgx::filesystem_t::FileStatus::Permissions ( Perms p)
inlinenoexcept

Modify the permissions in FileStatus.

Parameters
[in]pInput permissions (Octal number)

◆ Type() [1/2]

FileType ssgx::filesystem_t::FileStatus::Type ( ) const
inlinenoexcept

Return the file type of file.

Returns
File type

◆ Type() [2/2]

void ssgx::filesystem_t::FileStatus::Type ( FileType ft)
inlinenoexcept

Modify the file type in FileStatus.

Parameters
[in]ftInput file type

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