UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OutputFileStream Class Reference

#include <SerialFile.hpp>

Inheritance diagram for OutputFileStream:
OutputStream

Public Member Functions

 OutputFileStream (int fildes, ByteOrder arch)
 
void put_arch_signature ()
 
- Public Member Functions inherited from OutputStream
 OutputStream (ByteOrder arch)
 
virtual ~OutputStream ()
 
ByteOrder arch () const
 
virtual void put_any (AtomType atom_type, unsigned count, const void *src=NULL)
 
void set_debug_level (int dl)
 
int get_debug_level () const
 

Protected Member Functions

virtual void put_data (size_t nbytes, const void *src)
 

Protected Attributes

int fd
 
int offset
 

Detailed Description

Basic class for serialization of an object contents to external media storage represented as UNIX file (pipe, socket).

Constructor & Destructor Documentation

OutputFileStream::OutputFileStream ( int  fildes,
ByteOrder  arch 
)

Architecture specifics must be known just after construction

Member Function Documentation

void OutputFileStream::put_arch_signature ( )

Put information about architecture to the stream (see InputFileStream::get_arch_signature())

virtual void OutputFileStream::put_data ( size_t  nbytes,
const void *  src 
)
protectedvirtual

Raw method to put data of given size to the stream; src is always != NULL

Implements OutputStream.

Member Data Documentation

int OutputFileStream::fd
protected

Stored file descriptor.

int OutputFileStream::offset
protected

Offset counter.


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