libwps_OLE::IStream Class Reference

Public Member Functions

 IStream (IStorage *io, std::string const &name)
 
 ~IStream ()
 
unsigned long size () const
 
unsigned long tell () const
 
unsigned long read (unsigned char *data, unsigned long maxlen)
 

Public Attributes

IStoragem_iStorage
 
unsigned long m_size
 the stream size More...
 
std::string m_name
 

Protected Member Functions

bool createOleFromDirectory (IStorage *io, std::string const &name)
 create the data corresponding to a directory More...
 
unsigned long readUsingStorage (unsigned long pos, unsigned char *data, unsigned long maxlen)
 try to read maxlen data using m_iStorage More...
 
unsigned long readData (unsigned long pos, unsigned char *data, unsigned long maxlen)
 try to read maxlen data using m_data More...
 

Private Member Functions

 IStream (const IStream &)
 
IStreamoperator= (const IStream &)
 

Private Attributes

std::vector< unsigned long > m_blocks
 
unsigned long m_pos
 
std::vector< unsigned char > m_data
 

Constructor & Destructor Documentation

libwps_OLE::IStream::IStream ( libwps_OLE::IStorage s,
std::string const &  name 
)
libwps_OLE::IStream::~IStream ( )
inline
libwps_OLE::IStream::IStream ( const IStream )
private

Member Function Documentation

bool libwps_OLE::IStream::createOleFromDirectory ( IStorage io,
std::string const &  name 
)
protected

create the data corresponding to a directory

Referenced by IStream().

IStream& libwps_OLE::IStream::operator= ( const IStream )
private
unsigned long libwps_OLE::IStream::read ( unsigned char *  data,
unsigned long  maxlen 
)
inline

Referenced by createOleFromDirectory().

unsigned long libwps_OLE::IStream::readData ( unsigned long  pos,
unsigned char *  data,
unsigned long  maxlen 
)
protected

try to read maxlen data using m_data

Referenced by read().

unsigned long libwps_OLE::IStream::readUsingStorage ( unsigned long  pos,
unsigned char *  data,
unsigned long  maxlen 
)
protected

try to read maxlen data using m_iStorage

Referenced by read().

unsigned long libwps_OLE::IStream::size ( ) const
inline

Referenced by createOleFromDirectory().

unsigned long libwps_OLE::IStream::tell ( ) const
inline

Referenced by read().

Member Data Documentation

std::vector<unsigned long> libwps_OLE::IStream::m_blocks
private

Referenced by IStream().

std::vector<unsigned char> libwps_OLE::IStream::m_data
private

Referenced by read().

IStorage* libwps_OLE::IStream::m_iStorage

Referenced by IStream().

std::string libwps_OLE::IStream::m_name
unsigned long libwps_OLE::IStream::m_pos
private

Referenced by read(), and tell().

unsigned long libwps_OLE::IStream::m_size

the stream size

Referenced by IStream(), and size().


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

Generated on Fri Jun 2 2023 06:42:51 for libwps by doxygen 1.8.10