#include <file.hpp>

Public Types | |
| typedef int32_t | offset_t |
| Type specifying an offset into files and their sizes. | |
Public Member Functions | |
| static_assert (is_signed< offset_t >::conforms,"offset_t must be a signed integer") | |
| virtual | ~file (void) |
| Empty virtual destructor to enforce derived virtual destructors. | |
| virtual int | open (const std::string &filename, bool readonly=false)=0 |
| virtual int | close (void)=0 |
| virtual const char * | name (void) const =0 |
| virtual bool | is_open (void) const =0 |
| virtual bool | is_readonly (void) const =0 |
| virtual offset_t | size (void) const =0 |
| virtual offset_t | read (uint8_t *buffer, offset_t offset, offset_t number)=0 |
| virtual offset_t | write (uint8_t *buffer, offset_t offset, offset_t number)=0 |
| virtual int | flush (void)=0 |