#include <file.hpp>
|
| File (const char *filename) |
|
| File (const File &f)=delete |
|
File & | operator= (const File &)=delete |
|
virtual Error | open () override |
|
virtual int | close () override |
|
virtual int | seek (off_t offset, int whence) override |
|
virtual int | read (void *buf, size_t count) override |
|
virtual off_t | filesize () override |
|
| Stream (const char *filename) |
|
virtual Error | open ()=0 |
|
virtual int | close ()=0 |
|
virtual int | seek (off_t offset, int whence)=0 |
|
virtual int | read (void *buf, size_t count)=0 |
|
virtual off_t | filesize ()=0 |
|
Error | get_error () |
|
const std::string & | get_path () const |
|
uint8_t | readByte () noexcept(false) |
|
file IO stream
Definition at line 36 of file file.hpp.
◆ File()
OpenRaw::IO::File::File |
( |
const char * |
filename | ) |
|
Contruct the file
- Parameters
-
filename | the full pathname for the file |
Definition at line 33 of file file.cpp.
◆ ~File()
OpenRaw::IO::File::~File |
( |
| ) |
|
|
virtual |
◆ close()
int OpenRaw::IO::File::close |
( |
| ) |
|
|
overridevirtual |
◆ filesize()
off_t OpenRaw::IO::File::filesize |
( |
| ) |
|
|
overridevirtual |
◆ open()
◆ read()
int OpenRaw::IO::File::read |
( |
void * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
overridevirtual |
◆ seek()
int OpenRaw::IO::File::seek |
( |
off_t |
offset, |
|
|
int |
whence |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following files: