#include <SimpleIO.h>
|
| template<typename C > |
| static bool | write (std::fstream *fileStream, C *object) |
| | write an object inside the file stream, this function will automatically test if the sent object (by pointer) inherit from BasicIO himself and then call his own write method. More...
|
| |
| template<typename C > |
| static bool | read (std::fstream *fileStream, C *object) |
| | read from a file stream to an object, this function will automatically test if the sent object (by pointer) inherit from BasicIO himself and then call his own read method. More...
|
| |
| template<typename C > |
| static bool | writeBuffer (std::fstream *fileStream, C *buffer, size_t size) |
| | write a table of objects inside the file stream, this function will automatically test for each object inherit from BasicIO themselves and then call there own write method. More...
|
| |
| template<typename C > |
| static bool | readBuffer (std::fstream *fileStream, C *buffer, size_t size) |
| | read from a file stream to a table of objects, this function will automatically test for each object inherit from BasicIO themselves and then call there own write method. More...
|
| |
template<typename C >
| bool SimpleIO::read |
( |
std::fstream * |
fileStream, |
|
|
C * |
object |
|
) |
| |
|
static |
read from a file stream to an object, this function will automatically test if the sent object (by pointer) inherit from BasicIO himself and then call his own read method.
- Parameters
-
| fileStream | file stream where to read. |
| object | pointer to the object we wanna read. |
- Returns
- Boolean if the result is a success or not.
template<typename C >
| bool SimpleIO::readBuffer |
( |
std::fstream * |
fileStream, |
|
|
C * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
static |
read from a file stream to a table of objects, this function will automatically test for each object inherit from BasicIO themselves and then call there own write method.
- Parameters
-
| fileStream | file stream where to read. |
| buffer | pointer to the table of objects we wanna read. |
| size | number of elements in the table. |
- Returns
- Boolean if the result is a success or not.
template<typename C >
| bool SimpleIO::write |
( |
std::fstream * |
fileStream, |
|
|
C * |
object |
|
) |
| |
|
static |
write an object inside the file stream, this function will automatically test if the sent object (by pointer) inherit from BasicIO himself and then call his own write method.
- Parameters
-
| fileStream | file stream where to write. |
| object | pointer to the object we wanna write. |
- Returns
- Boolean if the result is a success or not.
template<typename C >
| bool SimpleIO::writeBuffer |
( |
std::fstream * |
fileStream, |
|
|
C * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
static |
write a table of objects inside the file stream, this function will automatically test for each object inherit from BasicIO themselves and then call there own write method.
- Parameters
-
| fileStream | file stream where to write. |
| buffer | pointer to the table of objects we wanna write. |
| size | number of elements in the table. |
- Returns
- Boolean if the result is a success or not.
The documentation for this class was generated from the following files: