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 | List of all members
OutputStream Class Referenceabstract

#include <Serial.hpp>

Inheritance diagram for OutputStream:
OutputFileStream

Public Member Functions

 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)=0
 

Detailed Description

Basic class for serialization of an object contents to external media storage.

Constructor & Destructor Documentation

OutputStream::OutputStream ( ByteOrder  arch)

Architecture specifics must be known just after construction

virtual OutputStream::~OutputStream ( )
virtual

Free the growing buffer

Member Function Documentation

ByteOrder OutputStream::arch ( ) const
inline

The way to find out byte order and more specific information about source of the stream

int OutputStream::get_debug_level ( ) const
inline

Get debug level (0 means off)

virtual void OutputStream::put_any ( AtomType  atom_type,
unsigned  count,
const void *  src = NULL 
)
virtual

Handy method to convert arbitrary data (except EXOBJREF) to * external data representation. Strings of CHAR_ASCII, CHAR_EBCDIC and CHAR_2 will be converted until EOS but not more than count characters.

virtual void OutputStream::put_data ( size_t  nbytes,
const void *  src 
)
protectedpure virtual

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

Implemented in OutputFileStream.

void OutputStream::set_debug_level ( int  dl)
inline

Set debug level (0 means off)


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