#include <file.h>
Static Public Member Functions | |
static void | copy (const std::string &from, const std::string &to, bool copy_always) |
static std::shared_ptr< File > | create_always (const std::string &filename, FileAccess access=FileAccess::read_write) |
static std::shared_ptr< File > | create_new (const std::string &filename, FileAccess access=FileAccess::read_write) |
static bool | exists (const std::string &filename) |
static std::shared_ptr< File > | open_always (const std::string &filename, FileAccess access=FileAccess::read_write) |
static std::shared_ptr< File > | open_existing (const std::string &filename, FileAccess access=FileAccess::read) |
static DataBufferPtr | read_all_bytes (const std::string &filename) |
static std::string | read_all_text (const std::string &filename) |
static void | remove (const std::string &filename) |
static void | write_all_bytes (const std::string &filename, const DataBufferPtr &data) |
static void | write_all_text (const std::string &filename, const std::string &text) |
Additional Inherited Members | |
![]() | |
virtual | ~IODevice () |
virtual void | close () |
bool | is_big_endian_mode () const |
long long | position () const |
void | read (void *data, int size) |
double | read_double () |
float | read_float () |
int16_t | read_int16 () |
int32_t | read_int32 () |
int8_t | read_int8 () |
template<typename T > | |
T | read_type () |
uint16_t | read_uint16 () |
uint32_t | read_uint32 () |
uint8_t | read_uint8 () |
virtual long long | seek (long long position)=0 |
virtual long long | seek_from_current (long long offset)=0 |
virtual long long | seek_from_end (long long offset)=0 |
void | set_big_endian_mode (bool value=true) |
virtual long long | size () const =0 |
virtual int | try_read (void *data, int size)=0 |
virtual void | write (const void *data, int size)=0 |
void | write_double (double v) |
void | write_float (float v) |
void | write_int16 (int16_t v) |
void | write_int32 (int32_t v) |
void | write_int64 (int64_t v) |
void | write_int8 (int8_t v) |
template<typename T > | |
void | write_type (T v) |
void | write_uint16 (uint16_t v) |
void | write_uint32 (uint32_t v) |
void | write_uint64 (uint64_t v) |
void | write_uint8 (uint8_t v) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |