Cafu Engine
cf::Network::InStreamT Class Reference

This class is used for reading data from a StateT instance (deserialization). More...

#include "State.hpp"

Public Member Functions

 InStreamT (const StateT &State)
 Creates a stream for reading data from the given state. More...
 
void Restart ()
 Re-initializes reading from the stream. More...
 
InStreamT & operator>> (char &b)
 Reads a data item of the given type from the stream. More...
 
InStreamT & operator>> (uint8_t &b)
 
InStreamT & operator>> (unsigned short &w)
 
InStreamT & operator>> (int32_t &i)
 
InStreamT & operator>> (uint32_t &ui)
 
InStreamT & operator>> (uint64_t &ui)
 
InStreamT & operator>> (float &f)
 
InStreamT & operator>> (double &d)
 
InStreamT & operator>> (bool &b)
 
InStreamT & operator>> (char *s)
 
InStreamT & operator>> (std::string &s)
 
template<class T >
InStreamT & operator>> (ArrayT< T > &A)
 

Detailed Description

This class is used for reading data from a StateT instance (deserialization).

TODO: Optimize handling of strings and bools.

Constructor & Destructor Documentation

cf::Network::InStreamT::InStreamT ( const StateT &  State)
inline

Creates a stream for reading data from the given state.

Member Function Documentation

InStreamT& cf::Network::InStreamT::operator>> ( char &  b)
inline

Reads a data item of the given type from the stream.

void cf::Network::InStreamT::Restart ( )
inline

Re-initializes reading from the stream.


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