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 | |
| DirEntry * | entry (const std::string &name) |
| returns a directory entry corresponding to a name | |
| unsigned | index (const std::string &name) |
| returns a directory entry corresponding to a index | |
| unsigned | revision () const |
| returns the OLE revision | |
| bool | hasRootTypePc () const |
| returns true if it is a pc file | |
| bool | isSubStream (const std::string &name, bool &isDir) |
| returns true if the entry exists in the OLE, if so fills isDir | |
| std::vector< std::string > | getSubStreamList (unsigned ind=0, bool retrieveAll=false) |
| returns the list of subStream given a dirEntry index | |
| 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) const |
| std::vector< unsigned char > | loadBigBlockChain (std::vector< unsigned long > const &blocks) const |
| unsigned long | loadBigBlock (unsigned long block, unsigned char *buffer, unsigned long maxlen) const |
| 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 |
Referenced by IStorage(), IStorage(), and operator=().
|
inline |
|
private |
|
inline |
returns a directory entry corresponding to a name
|
inline |
returns a directory entry corresponding to a index
Referenced by libwps_OLE::IStream::createOleFromDirectory().
|
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 | ( | ) |
Referenced by libwps_OLE::WPSOLEStream::WPSOLEStream().
| 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 | ( | ) |
Referenced by entry(), entry(), getSubStreamList(), getSubStreamNamesList(), index(), isStructured(), and isSubStream().
| unsigned long libwps_OLE::IStorage::loadBigBlock | ( | unsigned long | block, |
| unsigned char * | buffer, | ||
| unsigned long | maxlen ) const |
Referenced by load(), and loadSmallBlocks().
| std::vector< unsigned char > libwps_OLE::IStorage::loadBigBlockChain | ( | std::vector< unsigned long > const & | blocks | ) | const |
Referenced by load().
| unsigned long libwps_OLE::IStorage::loadBigBlocks | ( | std::vector< unsigned long > const & | blocks, |
| unsigned char * | buffer, | ||
| unsigned long | maxlen ) const |
Referenced by loadBigBlock(), and loadBigBlockChain().
| unsigned long libwps_OLE::IStorage::loadSmallBlock | ( | unsigned long | block, |
| unsigned char * | buffer, | ||
| unsigned long | maxlen ) |
| 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 |
| AllocTable libwps_OLE::IStorage::m_bbat |
Referenced by IStorage(), load(), loadBigBlockChain(), loadBigBlocks(), and loadSmallBlocks().
| DirTree libwps_OLE::IStorage::m_dirtree |
Referenced by entry(), entry(), getSubStreamList(), getSubStreamNamesList(), hasRootTypePc(), index(), isSubStream(), IStorage(), and load().
| Header libwps_OLE::IStorage::m_header |
Referenced by IStorage(), load(), revision(), and use_big_block_for().
| librevenge::RVNGInputStream* libwps_OLE::IStorage::m_input |
Referenced by IStorage(), load(), and loadBigBlocks().
|
protected |
Referenced by IStorage(), and load().
| Result libwps_OLE::IStorage::m_result |
Referenced by libwps_OLE::WPSOLEStream::getSubStreamByName(), getSubStreamNamesList(), isStructured(), IStorage(), and load().
| std::vector<unsigned long> libwps_OLE::IStorage::m_sb_blocks |
Referenced by IStorage(), load(), and loadSmallBlocks().
| AllocTable libwps_OLE::IStorage::m_sbat |
Referenced by IStorage(), load(), and loadSmallBlocks().