SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
Go to the source code of this file.
Classes | |
struct | SLIOBuffer |
Utility struct that holds a pointer and its length. More... | |
class | SLIOStream |
Interface for accessing external data using streams. More... | |
Namespaces | |
SLFileStorage | |
Collection of functions to open, use and close streams. | |
Macros | |
#define | SL_STORAGE_FS |
Enumerations | |
enum | SLIOStreamKind { IOK_generic , IOK_image , IOK_model , IOK_shader , IOK_font , IOK_config } |
Enum of file kinds. More... | |
enum | SLIOStreamMode { IOM_read , IOM_write } |
Enum of stream opening modes. More... | |
Functions | |
SLIOStream * | SLFileStorage::open (std::string path, SLIOStreamKind kind, SLIOStreamMode mode) |
Opens a file stream for I/O operations. More... | |
void | SLFileStorage::close (SLIOStream *stream) |
Closes and deletes a stream. More... | |
bool | SLFileStorage::exists (std::string path, SLIOStreamKind kind) |
Checks whether a given file exists. More... | |
SLIOBuffer | SLFileStorage::readIntoBuffer (std::string path, SLIOStreamKind kind) |
Reads an entire file into memory. More... | |
std::string | SLFileStorage::readIntoString (std::string path, SLIOStreamKind kind) |
Reads an entire file into a string. More... | |
void | SLFileStorage::writeString (std::string path, SLIOStreamKind kind, const std::string &string) |
Writes a string to a file. More... | |
Definition in file SLFileStorage.h.
#define SL_STORAGE_FS |
Definition at line 17 of file SLFileStorage.h.
enum SLIOStreamKind |
Enum of file kinds.
Enumerator | |
---|---|
IOK_generic | |
IOK_image | |
IOK_model | |
IOK_shader | |
IOK_font | |
IOK_config |
Definition at line 37 of file SLFileStorage.h.
enum SLIOStreamMode |
Enum of stream opening modes.
Enumerator | |
---|---|
IOM_read | |
IOM_write |
Definition at line 48 of file SLFileStorage.h.