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
InputFileStream Class Reference

#include <SerialFile.hpp>

Inheritance diagram for InputFileStream:
InputStream

Public Member Functions

 InputFileStream (int fildes)
 
void get_arch_signature ()
 
virtual ByteOrder arch () const
 
- Public Member Functions inherited from InputStream
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)
 

Protected Attributes

ByteOrder byte_order
 
int fd
 
int offset
 

Detailed Description

Basic class for deserialization from UNIX file (pipe, socket) input source.

Constructor & Destructor Documentation

InputFileStream::InputFileStream ( int  fildes)

Create input file stream for given file descriptor.

Member Function Documentation

virtual ByteOrder InputFileStream::arch ( ) const
virtual

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

Implements InputStream.

void InputFileStream::get_arch_signature ( )

Get information about architecture from stream (see OutputFileStream::put_arch_signature())

virtual void InputFileStream::get_data ( size_t  nbytes,
void *  dst 
)
protectedvirtual

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

Implements InputStream.

Member Data Documentation

ByteOrder InputFileStream::byte_order
protected

Stored byte order.

int InputFileStream::fd
protected

Stored file descriptor.

int InputFileStream::offset
protected

Offset counter.


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