Base class for input streams using SF serialization. Use operator >>() to deserialize objects from the stream. More...
#include <Stream.hpp>
Public Member Functions | |
IStream (std::istream &is, std::size_t archiveSize=0, int runtimeVersion=0, int archiveVersion=0) | |
Constructs an IStream from a std::istream. Serialized data will be read from the std::istream. More... | |
int | getRuntimeVersion () |
Gets the RCF runtime version associated with this stream. More... | |
int | getArchiveVersion () |
Gets the archive version associated with this stream. More... | |
void | setArchiveVersion (int archiveVersion) |
Sets the archive version associated with this stream. More... | |
void | setRuntimeVersion (int runtimeVersion) |
Sets the RCF runtime version associated with this stream. More... | |
template<typename T > | |
IStream & | operator>> (T &t) |
Deserialize an object from the stream. More... | |
template<typename T > | |
IStream & | operator>> (const T &t) |
Deserialize an object from the stream. More... | |
Base class for input streams using SF serialization. Use operator >>() to deserialize objects from the stream.
SF::IStream::IStream | ( | std::istream & | is, |
std::size_t | archiveSize = 0 , |
||
int | runtimeVersion = 0 , |
||
int | archiveVersion = 0 |
||
) |
Constructs an IStream from a std::istream. Serialized data will be read from the std::istream.
int SF::IStream::getRuntimeVersion | ( | ) |
Gets the RCF runtime version associated with this stream.
int SF::IStream::getArchiveVersion | ( | ) |
Gets the archive version associated with this stream.
void SF::IStream::setArchiveVersion | ( | int | archiveVersion | ) |
Sets the archive version associated with this stream.
void SF::IStream::setRuntimeVersion | ( | int | runtimeVersion | ) |
Sets the RCF runtime version associated with this stream.
IStream & SF::IStream::operator>> | ( | T & | t | ) |
Deserialize an object from the stream.
IStream & SF::IStream::operator>> | ( | const T & | t | ) |
Deserialize an object from the stream.