libwps_OLE::IStorage Class Reference

Public Types

enum  Result {
  Ok, OpenFailed, NotOLE, BadOLE,
  UnknownError
}
 

Public Member Functions

 IStorage (librevenge::RVNGInputStream *is)
 
 ~IStorage ()
 
DirEntryentry (unsigned ind)
 returns a directory entry corresponding to a index More...
 
DirEntryentry (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 &)
 
IStorageoperator= (const IStorage &)
 

Member Enumeration Documentation

Enumerator
Ok 
OpenFailed 
NotOLE 
BadOLE 
UnknownError 

Constructor & Destructor Documentation

libwps_OLE::IStorage::IStorage ( librevenge::RVNGInputStream *  is)
explicit
libwps_OLE::IStorage::~IStorage ( )
inline
libwps_OLE::IStorage::IStorage ( const IStorage )
private

Member Function Documentation

DirEntry* libwps_OLE::IStorage::entry ( unsigned  ind)
inline

returns a directory entry corresponding to a index

Referenced by libwps_OLE::IStream::createOleFromDirectory(), and libwps_OLE::IStream::IStream().

DirEntry* libwps_OLE::IStorage::entry ( const std::string &  name)
inline

returns a directory entry corresponding to a name

std::vector<std::string> libwps_OLE::IStorage::getSubStreamList ( unsigned  ind = 0,
bool  retrieveAll = false 
)
inline

returns the list of subStream given a dirEntry index

Referenced by libwps_OLE::IStream::createOleFromDirectory().

std::vector< std::string > libwps_OLE::IStorage::getSubStreamNamesList ( )
bool libwps_OLE::IStorage::hasRootTypePc ( ) const
inline

returns true if it is a pc file

Referenced by libwps_OLE::IStream::createOleFromDirectory().

unsigned libwps_OLE::IStorage::index ( const std::string &  name)
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 
)
unsigned long libwps_OLE::IStorage::loadBigBlocks ( std::vector< unsigned long > const &  blocks,
unsigned char *  buffer,
unsigned long  maxlen 
)
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 
)
IStorage& libwps_OLE::IStorage::operator= ( const IStorage )
private
unsigned libwps_OLE::IStorage::revision ( ) const
inline

returns the OLE revision

Referenced by libwps_OLE::IStream::createOleFromDirectory().

bool libwps_OLE::IStorage::use_big_block_for ( unsigned long  size) const
inline

Member Data Documentation

AllocTable libwps_OLE::IStorage::m_bbat
DirTree libwps_OLE::IStorage::m_dirtree
Header libwps_OLE::IStorage::m_header

Referenced by IStorage().

librevenge::RVNGInputStream* libwps_OLE::IStorage::m_input
bool libwps_OLE::IStorage::m_isLoad
protected
Result libwps_OLE::IStorage::m_result
std::vector<unsigned long> libwps_OLE::IStorage::m_sb_blocks
AllocTable libwps_OLE::IStorage::m_sbat

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

Generated on Wed Dec 26 2018 19:08:24 for libwps by doxygen 1.8.8