Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xstream::xdr::istream Class Reference

Input xdr stream class. More...

#include <xdr.h>

Public Member Functions

 istream (streambuf *sb)
 construct using a streambuf More...
 
 istream (const std::istream &os)
 construct using an istream More...
 
istreamoperator>> (int32_t &v)
 
istreamoperator>> (uint32_t &v)
 
istreamoperator>> (int64_t &v)
 
istreamoperator>> (uint64_t &v)
 
istreamoperator>> (float &v)
 
istreamoperator>> (double &v)
 
istreamoperator>> (string &v)
 
template<typename A , typename B >
istreamoperator>> (pair< A, B > &p)
 Deserializes STL pair containers from xdr. More...
 
template<typename T >
istreamoperator>> (vector< T > &t)
 Deserializes STL vector containers from xdr. More...
 

Private Attributes

streambuf * _sb
 

Detailed Description

Input xdr stream class.

Just a thin wrapper for streambuf to deserialize all the datatypes

Definition at line 127 of file xdr.h.

Constructor & Destructor Documentation

xstream::xdr::istream::istream ( streambuf *  sb)
inline

construct using a streambuf

Definition at line 137 of file xdr.h.

xstream::xdr::istream::istream ( const std::istream &  os)
inline

construct using an istream

Definition at line 143 of file xdr.h.

Member Function Documentation

istream & xstream::xdr::istream::operator>> ( int32_t &  v)

Definition at line 163 of file xdr.cpp.

istream & xstream::xdr::istream::operator>> ( uint32_t &  v)

Definition at line 144 of file xdr.cpp.

References _sb, and c.

istream & xstream::xdr::istream::operator>> ( int64_t &  v)

Definition at line 198 of file xdr.cpp.

istream & xstream::xdr::istream::operator>> ( uint64_t &  v)

Definition at line 179 of file xdr.cpp.

References _sb, and c.

istream & xstream::xdr::istream::operator>> ( float &  v)

Definition at line 214 of file xdr.cpp.

istream & xstream::xdr::istream::operator>> ( double &  v)

Definition at line 222 of file xdr.cpp.

istream & xstream::xdr::istream::operator>> ( string v)

Definition at line 128 of file xdr.cpp.

References _sb, pad, and string.

template<typename A , typename B >
istream& xstream::xdr::istream::operator>> ( pair< A, B > &  p)
inline

Deserializes STL pair containers from xdr.

Definition at line 162 of file xdr.h.

template<typename T >
istream& xstream::xdr::istream::operator>> ( vector< T > &  t)
inline

Deserializes STL vector containers from xdr.

Definition at line 173 of file xdr.h.

Member Data Documentation

streambuf* xstream::xdr::istream::_sb
private

Definition at line 130 of file xdr.h.

Referenced by operator>>().


The documentation for this class was generated from the following files: