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

Output xdr stream class. More...

#include <xdr.h>

Public Member Functions

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

Private Attributes

streambuf * _sb
 

Detailed Description

Output xdr stream class.

Just a thin wrapper for streambuf to serialize all the datatypes

Definition at line 62 of file xdr.h.

Constructor & Destructor Documentation

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

construct using a streambuf

Definition at line 71 of file xdr.h.

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

construct using an ostream

Definition at line 78 of file xdr.h.

Member Function Documentation

ostream & xstream::xdr::ostream::operator<< ( int32_t  v)

Definition at line 49 of file xdr.cpp.

ostream & xstream::xdr::ostream::operator<< ( uint32_t  v)

Definition at line 31 of file xdr.cpp.

References _sb, and c.

ostream & xstream::xdr::ostream::operator<< ( int64_t  v)

Definition at line 61 of file xdr.cpp.

ostream & xstream::xdr::ostream::operator<< ( uint64_t  v)

Definition at line 73 of file xdr.cpp.

References _sb, and c.

ostream & xstream::xdr::ostream::operator<< ( float  v)

Definition at line 100 of file xdr.cpp.

ostream & xstream::xdr::ostream::operator<< ( double  v)

Definition at line 117 of file xdr.cpp.

ostream & xstream::xdr::ostream::operator<< ( const string v)

Definition at line 17 of file xdr.cpp.

References _sb, and pad.

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

Serializes STL pair containers to xdr.

Definition at line 97 of file xdr.h.

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

Serializes STL vector containers to xdr.

Definition at line 108 of file xdr.h.

Member Data Documentation

streambuf* xstream::xdr::ostream::_sb
private

Definition at line 65 of file xdr.h.

Referenced by operator<<().


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