SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLIOFetch.h
Go to the documentation of this file.
1 /**
2  * \file SLIOFetch.h
3  * \date October 2022
4  * \authors Marino von Wattenwyl
5  * \copyright http://opensource.org/licenses/GPL-3.0
6  * \remarks Please use clangformat to format the code. See more code style on
7  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
8 */
9 
10 #ifndef SLPROJECT_SLIOFETCH_H
11 #define SLPROJECT_SLIOFETCH_H
12 
13 #include <SLFileStorage.h>
14 #include <SLIOMemory.h>
15 
16 #ifdef SL_STORAGE_WEB
17 //! SLIOStream implementation for downloading files from a web server
18 /*!
19  * The constructor downloads the file via HTTP and stores it in memory. When
20  * downloading, a loading screen is displayed to the user because it blocks
21  * the entire application.
22  */
23 //-----------------------------------------------------------------------------
25 {
26 public:
27  static bool exists(std::string url);
28 
29  SLIOReaderFetch(std::string url);
31 };
32 //-----------------------------------------------------------------------------
33 #endif
34 
35 #endif // SLPROJECT_SLIOFETCH_H
SLIOStream implementation for downloading files from a web server.
Definition: SLIOFetch.h:25
SLIOReaderFetch(std::string url)
Definition: SLIOFetch.cpp:34
static bool exists(std::string url)
Definition: SLIOFetch.cpp:19
SLIOStream implementation for reading from memory.
Definition: SLIOMemory.h:28