libwps::StreamIO Class Reference

Public Member Functions

 StreamIO (StorageIO *io, DirEntry *entry)
 
 ~StreamIO ()
 
unsigned long size ()
 
unsigned long tell ()
 
unsigned long read (unsigned char *data, unsigned long maxlen)
 
unsigned long read (unsigned long pos, unsigned char *data, unsigned long maxlen)
 

Public Attributes

StorageIOio
 
DirEntryentry
 
std::string fullName
 
bool eof
 
bool fail
 

Private Member Functions

 StreamIO (const StreamIO &)
 
StreamIOoperator= (const StreamIO &)
 
void updateCache ()
 

Private Attributes

std::vector< unsigned long > blocks
 
unsigned long m_pos
 
std::vector< unsigned char > cache_data
 
unsigned long cache_size
 
unsigned long cache_pos
 

Constructor & Destructor Documentation

◆ StreamIO() [1/2]

libwps::StreamIO::StreamIO ( libwps::StorageIO s,
libwps::DirEntry e 
)

◆ ~StreamIO()

libwps::StreamIO::~StreamIO ( )

◆ StreamIO() [2/2]

libwps::StreamIO::StreamIO ( const StreamIO )
private

Member Function Documentation

◆ operator=()

StreamIO& libwps::StreamIO::operator= ( const StreamIO )
private

◆ read() [1/2]

unsigned long libwps::StreamIO::read ( unsigned char *  data,
unsigned long  maxlen 
)

◆ read() [2/2]

unsigned long libwps::StreamIO::read ( unsigned long  pos,
unsigned char *  data,
unsigned long  maxlen 
)

◆ size()

unsigned long libwps::StreamIO::size ( )

◆ tell()

unsigned long libwps::StreamIO::tell ( )

Referenced by read().

◆ updateCache()

void libwps::StreamIO::updateCache ( )
private

Referenced by StreamIO().

Member Data Documentation

◆ blocks

std::vector<unsigned long> libwps::StreamIO::blocks
private

Referenced by read(), and StreamIO().

◆ cache_data

std::vector<unsigned char> libwps::StreamIO::cache_data
private

Referenced by StreamIO(), and updateCache().

◆ cache_pos

unsigned long libwps::StreamIO::cache_pos
private

Referenced by updateCache().

◆ cache_size

unsigned long libwps::StreamIO::cache_size
private

Referenced by StreamIO(), and updateCache().

◆ entry

DirEntry* libwps::StreamIO::entry

◆ eof

bool libwps::StreamIO::eof

◆ fail

bool libwps::StreamIO::fail

◆ fullName

std::string libwps::StreamIO::fullName

◆ io

StorageIO* libwps::StreamIO::io

Referenced by read(), and StreamIO().

◆ m_pos

unsigned long libwps::StreamIO::m_pos
private

Referenced by read(), tell(), and updateCache().


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

Generated on Sat Oct 20 2018 10:26:42 for libwps by doxygen 1.8.13