SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
SLIOStream implementation for reading from browser local storage. More...
#include <SLIOLocalStorage.h>
Public Member Functions | |
SLIOReaderLocalStorage (std::string path) | |
~SLIOReaderLocalStorage () | |
Public Member Functions inherited from SLIOReaderMemory | |
SLIOReaderMemory (std::string path) | |
size_t | read (void *buffer, size_t size) |
size_t | tell () |
bool | seek (size_t offset, Origin origin) |
size_t | size () |
Public Member Functions inherited from SLIOStream | |
virtual | ~SLIOStream ()=default |
virtual size_t | write (const void *buffer, size_t size) |
virtual void | flush () |
Additional Inherited Members | |
Public Types inherited from SLIOStream | |
enum | Origin { IOO_beg , IOO_cur , IOO_end } |
Protected Attributes inherited from SLIOReaderMemory | |
std::string | _path |
size_t | _position |
SLIOStream implementation for reading from browser local storage.
The constructor loads the file from local storage into memory using the JavaScript API provided by the web browser.
Definition at line 29 of file SLIOLocalStorage.h.
SLIOReaderLocalStorage::SLIOReaderLocalStorage | ( | std::string | path | ) |
Definition at line 25 of file SLIOLocalStorage.cpp.
SLIOReaderLocalStorage::~SLIOReaderLocalStorage | ( | ) |
Definition at line 51 of file SLIOLocalStorage.cpp.