7 #ifndef __DATA_STREAM_READ_FILE_H__
8 #define __DATA_STREAM_READ_FILE_H__
22 size_t nbElement(0lu);
24 if(nbElement == 0lu || !b){
return b;}
25 for(
size_t i(0lu); i < nbElement && b; ++i){
44 size_t nbElement(0lu);
46 if(nbElement == 0lu || !b){
return b;}
47 for(
size_t i(0lu); i < nbElement && b; ++i){
57 template<
typename T,
typename U>
66 size_t nbElement(0lu);
68 if(nbElement == 0lu || !b){
return b;}
69 for(
size_t i(0lu); i < nbElement && b; ++i){
74 data[tmpFirst] = tmpSecond;
81 template<
typename T,
typename U>
93 data = std::pair<T, U>(tmpFirst, tmpSecond);
static bool data_stream(FILE *&ds, std::list< T > &data)
Get the size of a class std::list T.
static bool data_stream(FILE *&ds, std::map< T, U > &data)
Get the size of a class std::list T.
static bool data_stream(FILE *&ds, std::pair< T, U > &data)
Get the size of a class std::list T.
static bool data_stream(FILE *&ds, std::vector< T > &data)
Get the size of a class std::vector T.
Generic DataStream class.
static bool data_stream(Stream &ds, T &data)
Dummy function to catch if a type is not specialised.