Class OpenFile

Inheritance Relationships

Derived Type

Class Documentation

class gkfs::filemap::OpenFile

Subclassed by gkfs::filemap::OpenDir

Public Functions

OpenFile(const std::string &path, int flags, FileType type = FileType::regular)
~OpenFile() = default
std::string path() const
void path(const std::string &path_)
unsigned long pos()
void pos(unsigned long pos_)
bool get_flag(OpenFile_flags flag)
void set_flag(OpenFile_flags flag, bool value)
FileType type() const

Protected Attributes

FileType type_
std::string path_
std::array<bool, static_cast<int>(OpenFile_flags::flag_count)> flags_ = {{false}}
unsigned long pos_
std::mutex pos_mutex_
std::mutex flag_mutex_