SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
SLIOStream implementation for downloading files from a web server. More...
#include <SLIOFetch.h>
Public Member Functions | |
SLIOReaderFetch (std::string url) | |
~SLIOReaderFetch () | |
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 () |
Static Public Member Functions | |
static bool | exists (std::string url) |
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 downloading files from a web server.
The constructor downloads the file via HTTP and stores it in memory. When downloading, a loading screen is displayed to the user because it blocks the entire application.
Definition at line 24 of file SLIOFetch.h.
SLIOReaderFetch::SLIOReaderFetch | ( | std::string | url | ) |
Definition at line 34 of file SLIOFetch.cpp.
SLIOReaderFetch::~SLIOReaderFetch | ( | ) |
Definition at line 59 of file SLIOFetch.cpp.
|
static |
Definition at line 19 of file SLIOFetch.cpp.