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

#include <mount.h>

Public Member Functions

 Mount ()
 
 Mount (const Mount &other)=delete
 
Mountoperator= (const Mount &other)=delete
 
 Mount (Mount &&other)
 
Mountoperator= (Mount &&other)
 
Status status () const
 
bool ok () const
 
bool exists (const char *path) const
 
Stat stat (const char *path) const
 
Status remove (const char *path)
 
Status rename (const char *pathFrom, const char *pathTo)
 
Status mkdir (const char *path)
 
Status rmdir (const char *path)
 
Directory opendir (const char *path)
 
std::unique_ptr< MultipassInputStreamfopen (const char *path)
 
std::unique_ptr< OutputStreamfopenForWrite (const char *path, FileUpdatePolicy update_policy)
 
bool isReadOnly () const
 
void close ()
 

Friends

class Filesystem
 

Detailed Description

Definition at line 14 of file mount.h.

Constructor & Destructor Documentation

◆ Mount() [1/3]

roo_io::Mount::Mount ( )
inline

Definition at line 17 of file mount.h.

◆ Mount() [2/3]

roo_io::Mount::Mount ( const Mount other)
delete

◆ Mount() [3/3]

roo_io::Mount::Mount ( Mount &&  other)
inline

Definition at line 23 of file mount.h.

Member Function Documentation

◆ close()

void roo_io::Mount::close ( )
inline

Definition at line 250 of file mount.h.

References roo_io::kNotMounted, and roo_io::kOk.

◆ exists()

bool roo_io::Mount::exists ( const char path) const
inline

Definition at line 57 of file mount.h.

References roo_io::Stat::exists(), and stat().

◆ fopen()

std::unique_ptr< MultipassInputStream > roo_io::Mount::fopen ( const char path)
inline

Definition at line 212 of file mount.h.

References roo_io::InputError(), and roo_io::kOk.

Referenced by roo_io::FileResource::open().

◆ fopenForWrite()

std::unique_ptr< OutputStream > roo_io::Mount::fopenForWrite ( const char path,
FileUpdatePolicy  update_policy 
)
inline

Definition at line 236 of file mount.h.

References roo_io::kOk, roo_io::kReadOnlyFilesystem, and roo_io::OutputError().

◆ isReadOnly()

bool roo_io::Mount::isReadOnly ( ) const
inline

Definition at line 245 of file mount.h.

◆ mkdir()

Status roo_io::Mount::mkdir ( const char path)
inline

Definition at line 146 of file mount.h.

References roo_io::kOk, and roo_io::kReadOnlyFilesystem.

◆ ok()

bool roo_io::Mount::ok ( ) const
inline

Definition at line 53 of file mount.h.

References roo_io::kOk, and status().

◆ opendir()

Directory roo_io::Mount::opendir ( const char path)
inline

Definition at line 191 of file mount.h.

References roo_io::kOk.

◆ operator=() [1/2]

Mount & roo_io::Mount::operator= ( const Mount other)
delete

◆ operator=() [2/2]

Mount & roo_io::Mount::operator= ( Mount &&  other)
inline

Definition at line 30 of file mount.h.

◆ remove()

Status roo_io::Mount::remove ( const char path)
inline

Definition at line 96 of file mount.h.

References roo_io::kOk, and roo_io::kReadOnlyFilesystem.

◆ rename()

Status roo_io::Mount::rename ( const char pathFrom,
const char pathTo 
)
inline

Definition at line 122 of file mount.h.

References roo_io::kOk, and roo_io::kReadOnlyFilesystem.

◆ rmdir()

Status roo_io::Mount::rmdir ( const char path)
inline

Definition at line 169 of file mount.h.

References roo_io::kOk, and roo_io::kReadOnlyFilesystem.

◆ stat()

Stat roo_io::Mount::stat ( const char path) const
inline

Definition at line 76 of file mount.h.

References roo_io::kOk.

Referenced by exists().

◆ status()

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

Definition at line 46 of file mount.h.

References roo_io::kNotMounted, and roo_io::kOk.

Referenced by ok().

Friends And Related Symbol Documentation

◆ Filesystem

Definition at line 256 of file mount.h.


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