Remote Call Framework 3.4
SF::IStream Class Referenceabstract

Base class for input streams using SF serialization. Use operator >>() to deserialize objects from the stream. More...

#include <Stream.hpp>

Inheritance diagram for SF::IStream:
SF::IBinaryStream

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 >
IStreamoperator>> (T &t)
 Deserialize an object from the stream. More...
 
template<typename T >
IStreamoperator>> (const T &t)
 Deserialize an object from the stream. More...
 

Detailed Description

Base class for input streams using SF serialization. Use operator >>() to deserialize objects from the stream.

Constructor & Destructor Documentation

◆ IStream()

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.

Member Function Documentation

◆ getRuntimeVersion()

int SF::IStream::getRuntimeVersion ( )

Gets the RCF runtime version associated with this stream.

◆ getArchiveVersion()

int SF::IStream::getArchiveVersion ( )

Gets the archive version associated with this stream.

◆ setArchiveVersion()

void SF::IStream::setArchiveVersion ( int  archiveVersion)

Sets the archive version associated with this stream.

◆ setRuntimeVersion()

void SF::IStream::setRuntimeVersion ( int  runtimeVersion)

Sets the RCF runtime version associated with this stream.

◆ operator>>() [1/2]

template<typename T >
IStream & SF::IStream::operator>> ( T &  t)

Deserialize an object from the stream.

◆ operator>>() [2/2]

template<typename T >
IStream & SF::IStream::operator>> ( const T &  t)

Deserialize an object from the stream.


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