roo_io
API Documentation for roo_io
Loading...
Searching...
No Matches
roo_io::Stat Class Reference

#include <stat.h>

Public Types

enum  Type { kNone , kDir , kFile }
 

Public Member Functions

 Stat (Type type, uint64_t size)
 
 Stat (Status error=kClosed)
 
bool exists () const
 
bool missing () const
 
bool failed () const
 
bool isFile () const
 
bool isDirectory () const
 
uint64_t size () const
 
Status status () const
 

Detailed Description

Definition at line 8 of file stat.h.

Member Enumeration Documentation

◆ Type

Enumerator
kNone 
kDir 
kFile 

Definition at line 10 of file stat.h.

Constructor & Destructor Documentation

◆ Stat() [1/2]

roo_io::Stat::Stat ( Type  type,
uint64_t  size 
)
inline

Definition at line 12 of file stat.h.

◆ Stat() [2/2]

roo_io::Stat::Stat ( Status  error = kClosed)
inline

Definition at line 14 of file stat.h.

Member Function Documentation

◆ exists()

bool roo_io::Stat::exists ( ) const
inline

◆ failed()

bool roo_io::Stat::failed ( ) const
inline

Definition at line 28 of file stat.h.

References exists(), and missing().

◆ isDirectory()

bool roo_io::Stat::isDirectory ( ) const
inline

Definition at line 35 of file stat.h.

References exists(), and kDir.

◆ isFile()

bool roo_io::Stat::isFile ( ) const
inline

Definition at line 31 of file stat.h.

References exists(), and kFile.

Referenced by roo_io::DeleteRecursively(), and roo_io::MkDirRecursively().

◆ missing()

bool roo_io::Stat::missing ( ) const
inline

Definition at line 22 of file stat.h.

References roo_io::kNotDirectory, and roo_io::kNotFound.

Referenced by failed().

◆ size()

uint64_t roo_io::Stat::size ( ) const
inline

Definition at line 38 of file stat.h.

◆ status()

Status roo_io::Stat::status ( ) const
inline

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