Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
stream Struct Referenceabstract

Legacy file system streams. More...

#include <stream.hpp>

Inheritance diagram for stream:
filestream gzstream utf8stream

Public Types

typedef off_t offset
 

Public Member Functions

virtual ~stream ()
 
virtual void close ()=0
 
virtual bool end ()=0
 
virtual offset tell ()
 
virtual offset rawtell ()
 
virtual bool seek (offset pos, int whence=SEEK_SET)
 
virtual offset size ()
 
virtual offset rawsize ()
 
virtual size_t read (void *buf, size_t len)
 
virtual size_t write (const void *buf, size_t len)
 
virtual bool flush ()
 
virtual int getchar ()
 
virtual bool putchar (int n)
 
virtual bool getline (char *str, size_t len)
 
virtual bool putstring (const char *str)
 
virtual bool putline (const char *str)
 
virtual size_t printf (const char *fmt,...) PRINTFARGS(2
 
virtual size_t virtual uint getcrc ()
 
template<class T >
size_t put (const T *v, size_t n)
 
template<class T >
bool put (T n)
 
template<class T >
bool putlil (T n)
 
template<class T >
bool putbig (T n)
 
template<class T >
size_t get (T *v, size_t n)
 
template<class T >
get ()
 
template<class T >
getlil ()
 
template<class T >
getbig ()
 

Detailed Description

Legacy file system streams.

Use the filesystem module for new code.

Member Typedef Documentation

typedef off_t stream::offset

Constructor & Destructor Documentation

virtual stream::~stream ( )
inlinevirtual

Member Function Documentation

virtual void stream::close ( )
pure virtual

Implemented in utf8stream, gzstream, and filestream.

virtual bool stream::end ( )
pure virtual

Implemented in utf8stream, gzstream, and filestream.

Referenced by gzstream::checkheader(), and ai::loadwaypoints().

virtual bool stream::flush ( )
inlinevirtual

Reimplemented in utf8stream, gzstream, and filestream.

Referenced by utf8stream::flush(), and gzstream::flushbuf().

template<class T >
size_t stream::get ( T *  v,
size_t  n 
)
inline

References read().

Referenced by streambuf< T >::get().

template<class T >
T stream::get ( )
inline

References read().

template<class T >
T stream::getbig ( )
inline

References bigswap().

virtual int stream::getchar ( )
inlinevirtual

Reimplemented in filestream.

References read().

Referenced by load_world(), loadblendmap(), loadc(), loadents(), loadviewcells(), and ai::loadwaypoints().

virtual size_t virtual uint stream::getcrc ( )
inlinevirtual

Reimplemented in gzstream.

Referenced by load_world(), and loadents().

template<class T >
T stream::getlil ( )
inline
bool stream::getline ( char *  str,
size_t  len 
)
virtual
size_t stream::printf ( const char *  fmt,
  ... 
)
virtual
template<class T >
size_t stream::put ( const T *  v,
size_t  n 
)
inline

References write().

Referenced by streambuf< T >::put().

template<class T >
bool stream::put ( n)
inline

References write().

template<class T >
bool stream::putbig ( n)
inline

References bigswap().

Referenced by savepng(), and writepngchunk().

virtual bool stream::putchar ( int  n)
inlinevirtual
template<class T >
bool stream::putlil ( n)
inline
virtual bool stream::putline ( const char *  str)
inlinevirtual

References putchar(), and putstring().

Referenced by editor::save(), and writehistory().

virtual bool stream::putstring ( const char *  str)
inlinevirtual

Reimplemented in filestream.

References write().

Referenced by putline().

virtual offset stream::rawsize ( )
inlinevirtual

Reimplemented in gzstream.

References size().

virtual offset stream::rawtell ( )
inlinevirtual

Reimplemented in gzstream.

References tell().

Referenced by server::writedemo().

virtual size_t stream::read ( void buf,
size_t  len 
)
inlinevirtual
virtual bool stream::seek ( offset  pos,
int  whence = SEEK_SET 
)
inlinevirtual
stream::offset stream::size ( )
virtual
virtual offset stream::tell ( )
inlinevirtual
virtual size_t stream::write ( const void buf,
size_t  len 
)
inlinevirtual

The documentation for this struct was generated from the following files: