libwpd::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
std::string m_name

Protected Member Functions

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

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

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

Member Function Documentation

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

create the data corresponding to a directory

Referenced by IStream().

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

Referenced by createOleFromDirectory().

unsigned long libwpd::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 libwpd::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 libwpd::IStream::size ( ) const
inline

Referenced by createOleFromDirectory().

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

Referenced by read().

Member Data Documentation

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

Referenced by IStream().

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

Referenced by read().

IStorage* libwpd::IStream::m_iStorage

Referenced by IStream().

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

Referenced by read(), and tell().

unsigned long libwpd::IStream::m_size

the stream size

Referenced by IStream(), read(), and size().


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

Generated for libwpd by doxygen 1.8.1.2