7 #ifndef __DATA_STREAM_READ_MESSAGE_H__
8 #define __DATA_STREAM_READ_MESSAGE_H__
23 size_t nbElement(0lu);
25 if(nbElement == 0lu || !b){
return b;}
26 for(
size_t i(0lu); i < nbElement && b; ++i){
45 size_t nbElement(0lu);
47 if(nbElement == 0lu || !b){
return b;}
48 for(
size_t i(0lu); i < nbElement && b; ++i){
58 template<
typename T,
typename U>
67 size_t nbElement(0lu);
69 if(nbElement == 0lu || !b){
return b;}
70 for(
size_t i(0lu); i < nbElement && b; ++i){
75 data[tmpFirst] = tmpSecond;
82 template<
typename T,
typename U>
94 data = std::pair<T, U>(tmpFirst, tmpSecond);
DataStreamType * DataStreamIter
static bool data_stream(DataStreamIter &ds, std::list< T > &data)
Get the size of a class std::list T.
static bool data_stream(DataStreamIter &ds, std::map< T, U > &data)
Get the size of a class std::list T.
static bool data_stream(DataStreamIter &ds, std::pair< T, U > &data)
Get the size of a class std::list T.
static bool data_stream(DataStreamIter &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.