sprint 1-alpha
Public Member Functions
sprint::io::xstream Class Reference

a virtual IO class More...

#include <xstream.h>

Inherited by sprint::io::gzipf, sprint::io::xadapter< _Io >, sprint::io::xsocket, and sprint::io::xtarf.

List of all members.

Public Member Functions

virtual int write (const char *buf, unsigned int size)=0
 Write some data on the stream (if avail)
virtual int read (char *buf, unsigned int size)=0
 Read data from stream (if avail)
virtual file_size_t seek (file_size_t offset, seek_t type)=0
 Seek position (if available)
virtual file_size_t length ()=0
 Stream Lenght (or -1 if is undefined size)
virtual state_t state ()=0
 File state.
 operator bool ()
 is the stream valid?
bool good ()
 is the stream valid?
bool eof ()
 is reached the EOF?
int get ()
 read a single character from the stream
int put (char c)
 write a single char into the stream

Detailed Description

a virtual IO class


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines