Remote Call Framework 3.0
SF::OStream Class Referenceabstract

Base class for output streams using SF serialization. Use operator <<() to serialize objects into the stream. More...

#include <Stream.hpp>

Inheritance diagram for SF::OStream:
SF::OBinaryStream

Public Member Functions

 OStream (std::ostream &os, int runtimeVersion=0, int archiveVersion=0)
 Constructs an OStream from a std::ostream. Serialized data will be written to the std::ostream. 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 >
OStreamoperator<< (const T &t)
 Serialize an object to the stream. More...
 

Detailed Description

Base class for output streams using SF serialization. Use operator <<() to serialize objects into the stream.

Constructor & Destructor Documentation

◆ OStream()

SF::OStream::OStream ( std::ostream &  os,
int  runtimeVersion = 0,
int  archiveVersion = 0 
)

Constructs an OStream from a std::ostream. Serialized data will be written to the std::ostream.

Member Function Documentation

◆ getRuntimeVersion()

int SF::OStream::getRuntimeVersion ( )

Gets the RCF runtime version associated with this stream.

◆ getArchiveVersion()

int SF::OStream::getArchiveVersion ( )

Gets the archive version associated with this stream.

◆ setArchiveVersion()

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

Sets the archive version associated with this stream.

◆ setRuntimeVersion()

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

Sets the RCF runtime version associated with this stream.

◆ operator<<()

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

Serialize an object to the stream.


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