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
InputStream Class Referenceabstract

#include <Serial.hpp>

Inheritance diagram for InputStream:
InputFileStream

Public Member Functions

virtual ByteOrder arch () const =0
 
virtual void get_any (AtomType atom_type, unsigned count, void *dst=NULL)
 
void set_debug_level (int dl)
 
int get_debug_level () const
 

Protected Member Functions

virtual void get_data (size_t nbytes, void *dst)=0
 

Detailed Description

Basic class for deserialization from some input source.

Member Function Documentation

virtual ByteOrder InputStream::arch ( ) const
pure virtual

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

Implemented in InputFileStream.

virtual void InputStream::get_any ( AtomType  atom_type,
unsigned  count,
void *  dst = NULL 
)
virtual

Handy method to get arbitrary data (except EXOBJREF) to local CPU representation buffer. dst=NULL means skip this data.

virtual void InputStream::get_data ( size_t  nbytes,
void *  dst 
)
protectedpure virtual

Raw method to get data of given size from the stream; dst=NULL means skip the data

Implemented in InputFileStream.

int InputStream::get_debug_level ( ) const
inline

Get debug level (0 means off)

void InputStream::set_debug_level ( int  dl)
inline

Set debug level (0 means off)


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