Public Types | |
| enum | Result { Ok, OpenFailed, NotOLE, BadOLE, UnknownError } |
Public Member Functions | |
| IStorage (librevenge::RVNGInputStream *is) | |
| ~IStorage () | |
| DirEntry * | entry (unsigned ind) |
| returns a directory entry corresponding to a index More... | |
| DirEntry * | entry (const std::string &name) |
| returns a directory entry corresponding to a name More... | |
| unsigned | index (const std::string &name) |
| returns a directory entry corresponding to a index More... | |
| unsigned | revision () const |
| returns the OLE revision More... | |
| bool | hasRootTypePc () const |
| returns true if it is a pc file More... | |
| bool | isSubStream (const std::string &name, bool &isDir) |
| returns true if the entry exists in the OLE, if so fills isDir More... | |
| std::vector< std::string > | getSubStreamList (unsigned ind=0, bool retrieveAll=false) |
| returns the list of subStream given a dirEntry index More... | |
| bool | isStructured () |
| std::vector< std::string > | getSubStreamNamesList () |
| void | load () |
| bool | use_big_block_for (unsigned long size) const |
| unsigned long | loadBigBlocks (std::vector< unsigned long > const &blocks, unsigned char *buffer, unsigned long maxlen) |
| unsigned long | loadBigBlock (unsigned long block, unsigned char *buffer, unsigned long maxlen) |
| unsigned long | loadSmallBlocks (std::vector< unsigned long > const &blocks, unsigned char *buffer, unsigned long maxlen) |
| unsigned long | loadSmallBlock (unsigned long block, unsigned char *buffer, unsigned long maxlen) |
Public Attributes | |
| librevenge::RVNGInputStream * | m_input |
| Result | m_result |
| Header | m_header |
| DirTree | m_dirtree |
| AllocTable | m_bbat |
| AllocTable | m_sbat |
| std::vector< unsigned long > | m_sb_blocks |
Protected Attributes | |
| bool | m_isLoad |
Private Member Functions | |
| IStorage (const IStorage &) | |
| IStorage & | operator= (const IStorage &) |
|
explicit |
|
inline |
|
private |
|
inline |
returns a directory entry corresponding to a index
Referenced by libwps_OLE::IStream::createOleFromDirectory(), and libwps_OLE::IStream::IStream().
|
inline |
returns a directory entry corresponding to a name
|
inline |
returns the list of subStream given a dirEntry index
Referenced by libwps_OLE::IStream::createOleFromDirectory().
| std::vector< std::string > libwps_OLE::IStorage::getSubStreamNamesList | ( | ) |
Referenced by libwps_OLE::WPSOLEStream::WPSOLEStream().
|
inline |
returns true if it is a pc file
Referenced by libwps_OLE::IStream::createOleFromDirectory().
|
inline |
returns a directory entry corresponding to a index
Referenced by libwps_OLE::IStream::createOleFromDirectory().
| bool libwps_OLE::IStorage::isStructured | ( | ) |
| bool libwps_OLE::IStorage::isSubStream | ( | const std::string & | name, |
| bool & | isDir | ||
| ) |
returns true if the entry exists in the OLE, if so fills isDir
| void libwps_OLE::IStorage::load | ( | ) |
| unsigned long libwps_OLE::IStorage::loadBigBlock | ( | unsigned long | block, |
| unsigned char * | buffer, | ||
| unsigned long | maxlen | ||
| ) |
Referenced by load(), loadSmallBlocks(), and libwps_OLE::IStream::readUsingStorage().
| unsigned long libwps_OLE::IStorage::loadBigBlocks | ( | std::vector< unsigned long > const & | blocks, |
| unsigned char * | buffer, | ||
| unsigned long | maxlen | ||
| ) |
Referenced by load(), and loadBigBlock().
| unsigned long libwps_OLE::IStorage::loadSmallBlock | ( | unsigned long | block, |
| unsigned char * | buffer, | ||
| unsigned long | maxlen | ||
| ) |
Referenced by libwps_OLE::IStream::readUsingStorage().
| unsigned long libwps_OLE::IStorage::loadSmallBlocks | ( | std::vector< unsigned long > const & | blocks, |
| unsigned char * | buffer, | ||
| unsigned long | maxlen | ||
| ) |
Referenced by loadSmallBlock().
|
inline |
returns the OLE revision
Referenced by libwps_OLE::IStream::createOleFromDirectory().
|
inline |
Referenced by libwps_OLE::IStream::IStream(), and libwps_OLE::IStream::readUsingStorage().
| AllocTable libwps_OLE::IStorage::m_bbat |
| DirTree libwps_OLE::IStorage::m_dirtree |
Referenced by getSubStreamNamesList(), isSubStream(), load(), and libwps_OLE::OStorage::updateToSave().
| Header libwps_OLE::IStorage::m_header |
Referenced by IStorage(), load(), and libwps_OLE::OStorage::updateToSave().
| librevenge::RVNGInputStream* libwps_OLE::IStorage::m_input |
Referenced by load(), and loadBigBlocks().
|
protected |
Referenced by load().
| Result libwps_OLE::IStorage::m_result |
Referenced by getSubStreamNamesList(), isStructured(), and load().
| std::vector<unsigned long> libwps_OLE::IStorage::m_sb_blocks |
Referenced by load(), loadSmallBlocks(), and libwps_OLE::OStorage::updateToSave().
| AllocTable libwps_OLE::IStorage::m_sbat |