SLProject 4.0.000
SLIOStream Class Reference

Interface for accessing external data using streams. More...

#include <SLFileStorage.h>

Public Types

enum  Origin { IOO_beg , IOO_cur , IOO_end }
 

Public Member Functions

virtual ~SLIOStream ()=default
 
virtual size_t read (void *buffer, size_t size)
 
virtual size_t write (const void *buffer, size_t size)
 
virtual size_t tell ()
 
virtual bool seek (size_t offset, Origin origin)
 
virtual size_t size ()
 
virtual void flush ()
 

Detailed Description

Interface for accessing external data using streams.

SLIOStream provides an interface to access files which may be stored in the native file system, on a remote server, in memory, etc. Streams should not be instantiated by users of the class, but by SLFileStorage::open, which selects the appropriate stream implementation for a given kind and mode.

Member Enumeration Documentation

◆ Origin

Enumerator
IOO_beg 
IOO_cur 
IOO_end 

Constructor & Destructor Documentation

◆ ~SLIOStream()

virtual SLIOStream::~SLIOStream ( )
virtualdefault

Member Function Documentation

◆ flush()

virtual void SLIOStream::flush ( )
inlinevirtual

◆ read()

virtual size_t SLIOStream::read ( void *  buffer,
size_t  size 
)
inlinevirtual

◆ seek()

virtual bool SLIOStream::seek ( size_t  offset,
Origin  origin 
)
inlinevirtual

◆ size()

virtual size_t SLIOStream::size ( )
inlinevirtual

◆ tell()

virtual size_t SLIOStream::tell ( )
inlinevirtual

◆ write()

virtual size_t SLIOStream::write ( const void *  buffer,
size_t  size 
)
inlinevirtual

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