Pothos  0.7.0-gf7fbae99
The Pothos dataflow programming software suite
Public Types | Public Member Functions | List of all members
Pothos::Archive::OStreamArchiver Class Reference

#include <StreamArchiver.hpp>

Public Types

typedef std::true_type isSave
 Tell the invoker that this archiver saves. More...
 

Public Member Functions

 OStreamArchiver (std::ostream &os)
 
template<typename T >
void operator & (const T &value)
 
template<typename T >
void operator<< (const T &value)
 
void writeBytes (const void *buff, const size_t len)
 

Detailed Description

The output stream archiver serializes types to an output stream.

Member Typedef Documentation

◆ isSave

Tell the invoker that this archiver saves.

Constructor & Destructor Documentation

◆ OStreamArchiver()

Pothos::Archive::OStreamArchiver::OStreamArchiver ( std::ostream &  os)

Create an output stream archiver

Parameters
osthe stream to write to

Member Function Documentation

◆ operator &()

template<typename T >
void Pothos::Archive::OStreamArchiver::operator& ( const T &  value)

Serialize value with the & operator

Parameters
valuethe value to serialize

◆ operator<<()

template<typename T >
void Pothos::Archive::OStreamArchiver::operator<< ( const T &  value)

Serialize value with the stream operator

Parameters
valuethe value to serialize

◆ writeBytes()

void Pothos::Archive::OStreamArchiver::writeBytes ( const void *  buff,
const size_t  len 
)

Directly write an array of bytes to the output stream


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