Simple++
Powerfull and lightning fast C++ Library
Static Public Member Functions | List of all members
SimpleIO Class Reference

#include <SimpleIO.h>

Inheritance diagram for SimpleIO:
IO

Static Public Member Functions

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...
 

Member Function Documentation

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
fileStreamfile stream where to read.
objectpointer 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
fileStreamfile stream where to read.
bufferpointer to the table of objects we wanna read.
sizenumber 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
fileStreamfile stream where to write.
objectpointer 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
fileStreamfile stream where to write.
bufferpointer to the table of objects we wanna write.
sizenumber 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: