#include <BasicSimpleLoadableIO.h>
|
virtual bool | onRead (std::fstream *fileStream) |
| function to be overloaded to set the action when reading from a stream. More...
|
|
virtual bool | onWrite (std::fstream *fileStream) const |
| function to be overloaded to set the action when writing from a stream. More...
|
|
void | setLoaded (bool loaded) |
| set if the current object is loaded or not. (use with caution) More...
|
|
void | setLoading (bool isLoading) |
| set if the current object is currently loading (use with caution) More...
|
|
virtual void | onLoad () |
| function to be overloaded to add action during the loading process. More...
|
|
virtual void | onUnload () |
| function to be overloaded to add action during the unloading process. More...
|
|
BasicSimpleLoadableIO::BasicSimpleLoadableIO |
( |
| ) |
|
BasicSimpleLoadableIO::~BasicSimpleLoadableIO |
( |
| ) |
|
bool BasicSimpleLoadableIO::onRead |
( |
std::fstream * |
fileStream | ) |
|
|
protectedvirtual |
function to be overloaded to set the action when reading from a stream.
- Parameters
-
fileStream | stream used to read load this object |
- Returns
- boolean to know if the operation is a success of not.
Reimplemented in Graphic::TextureLoadable< T >, and Graphic::FontLoadable.
bool BasicSimpleLoadableIO::onWrite |
( |
std::fstream * |
fileStream | ) |
const |
|
protectedvirtual |
function to be overloaded to set the action when writing from a stream.
- Parameters
-
fileStream | stream used to write this object |
- Returns
- boolean to know if the operation is a success of not.
Reimplemented in Graphic::TextureLoadable< T >, and Graphic::FontLoadable.
bool BasicSimpleLoadableIO::read |
( |
std::fstream * |
fileStream | ) |
|
load this object from a file stream
- Parameters
-
fileStream | stream used to read load this object |
- Returns
- boolean to know if the operation is a success of not.
bool BasicSimpleLoadableIO::write |
( |
std::fstream * |
fileStream | ) |
|
write this object as binary into a file stream
- Parameters
-
fileStream | stream used to write this object |
- Returns
- boolean to know if the operation is a success of not.
The documentation for this class was generated from the following files: