librevenge::IStream Class Reference documentation

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
librevenge::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
IStorage * | m_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 &)
IStream & | operator= (const IStream &)

## Private Attributes
std::vector< unsigned long > | m_blocks
unsigned long | m_pos
std::vector< unsigned char > | m_data

## Constructor & Destructor Documentation

librevenge::IStream::IStream | ( | librevenge::IStorage * | s,
|  | std::string const & | name
| ) |  |

librevenge::IStream::~IStream | ( |  | ) |
| inline

librevenge::IStream::IStream | ( | const IStream & |  | ) |
| private

## Member Function Documentation

bool librevenge::IStream::createOleFromDirectory | ( | IStorage * | io,
|  | std::string const & | name
| ) |  |
| protected

create the data corresponding to a directory

Referenced by IStream().

IStream& librevenge::IStream::operator= | ( | const IStream & |  | ) |
| private

unsigned long librevenge::IStream::read | ( | unsigned char * | data,
|  | unsigned long | maxlen
| ) |  |
| inline

Referenced by createOleFromDirectory().

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

Referenced by createOleFromDirectory().

unsigned long librevenge::IStream::tell | ( |  | ) | const
| inline

Referenced by read().

## Member Data Documentation

std::vector<unsigned long> librevenge::IStream::m_blocks
| private

Referenced by IStream().

std::vector<unsigned char> librevenge::IStream::m_data
| private

Referenced by read().

IStorage* librevenge::IStream::m_iStorage

Referenced by IStream().

std::string librevenge::IStream::m_name

unsigned long librevenge::IStream::m_pos
| private

Referenced by read(), and tell().

unsigned long librevenge::IStream::m_size

the stream size

Referenced by IStream(), and size().

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

- RVNGOLEStream.cpp