7 #ifndef __DATA_STREAM_WRITE_FILE_H__
8 #define __DATA_STREAM_WRITE_FILE_H__
23 size_t nbElement(data.size());
25 if(nbElement == 0lu || !b){
return b;}
30 for(
typename std::vector<T>::iterator it(data.begin()); it != data.end(); ++it){
48 size_t nbElement(data.size());
50 if(nbElement == 0lu || !b){
return b;}
51 for(
typename std::list<T>::iterator it(data.begin()); it != data.end(); ++it){
59 template<
typename T,
typename U>
68 size_t nbElement(data.size());
70 if(nbElement == 0lu || !b){
return b;}
71 for(
typename std::map<T, U>::iterator it(data.begin()); it != data.end(); ++it){
80 template<
typename T,
typename U>
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.