Cafu Engine
cf::Network::OutStreamT Class Reference

This class is used for writing data into a StateT instance (serialization). More...

#include "State.hpp"

Public Member Functions

 OutStreamT (StateT &State, bool Overwrite=true)
 Creates a stream for writing data into the given state. More...
 
OutStreamToperator<< (char b)
 Writes a data item of the given type into the stream. More...
 
OutStreamToperator<< (uint8_t b)
 
OutStreamToperator<< (unsigned short w)
 
OutStreamToperator<< (int32_t i)
 
OutStreamToperator<< (uint32_t ui)
 
OutStreamToperator<< (uint64_t ui)
 
OutStreamToperator<< (float f)
 
OutStreamToperator<< (double d)
 
OutStreamToperator<< (bool b)
 
OutStreamToperator<< (const char *s)
 
OutStreamToperator<< (const std::string &str)
 
template<class T >
OutStreamToperator<< (const ArrayT< T > &A)
 

Detailed Description

This class is used for writing data into a StateT instance (serialization).

TODO: Optimize handling of strings and bools.

Constructor & Destructor Documentation

cf::Network::OutStreamT::OutStreamT ( StateT State,
bool  Overwrite = true 
)
inline

Creates a stream for writing data into the given state.

Member Function Documentation

OutStreamT& cf::Network::OutStreamT::operator<< ( char  b)
inline

Writes a data item of the given type into the stream.


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