class used to read/parse an OLE file More...
#include <MWAWOLEStream.hxx>
Public Types | |
enum | Result { Ok, OpenFailed, NotOLE, BadOLE, UnknownError } |
Public Member Functions | |
Storage (shared_ptr< WPXInputStream > is) | |
Constructs a storage with data. | |
~Storage () | |
Destroys the storage. | |
bool | isStructuredDocument () |
Checks whether the storage is OLE2 storage. | |
std::vector< std::string > | getSubStreamList (std::string dir="/", bool onlyFiles=true) |
Returns the list of all ole leaves names. | |
bool | isSubStream (const std::string &name) |
Returns true if name corresponds to a sub stream. | |
bool | isDirectory (const std::string &name) |
Returns true if name corresponds to a directory. | |
shared_ptr< WPXInputStream > | getSubStream (const std::string &name) |
Returns a WPXInputStream corresponding to a leaf/directory substream. | |
Private Member Functions | |
shared_ptr< WPXInputStream > | getSubStreamForDirectory (const std::string &name) |
Returns a WPXInputStream corresponding to a directory substream. | |
Storage (const Storage &) | |
Storage & | operator= (const Storage &) |
Private Attributes | |
libmwawOLE::IStorage * | m_io |
the main data storage | |
Friends | |
class | Stream |
class used to read/parse an OLE file
libmwawOLE::Storage::Storage | ( | shared_ptr< WPXInputStream > | is | ) |
Constructs a storage with data.
Destroys the storage.
libmwawOLE::Storage::Storage | ( | const Storage & | ) | [private] |
shared_ptr< WPXInputStream > libmwawOLE::Storage::getSubStream | ( | const std::string & | name | ) |
Returns a WPXInputStream corresponding to a leaf/directory substream.
shared_ptr< WPXInputStream > libmwawOLE::Storage::getSubStreamForDirectory | ( | const std::string & | name | ) | [private] |
Returns a WPXInputStream corresponding to a directory substream.
Referenced by getSubStream().
std::vector< std::string > libmwawOLE::Storage::getSubStreamList | ( | std::string | dir = "/" , |
bool | onlyFiles = true |
||
) |
Returns the list of all ole leaves names.
bool libmwawOLE::Storage::isDirectory | ( | const std::string & | name | ) |
Returns true if name corresponds to a directory.
Referenced by getSubStream(), and getSubStreamForDirectory().
Checks whether the storage is OLE2 storage.
Referenced by getSubStream(), getSubStreamForDirectory(), isDirectory(), and isSubStream().
bool libmwawOLE::Storage::isSubStream | ( | const std::string & | name | ) |
Returns true if name corresponds to a sub stream.
friend class Stream [friend] |
libmwawOLE::IStorage* libmwawOLE::Storage::m_io [private] |
the main data storage
Referenced by getSubStream(), getSubStreamForDirectory(), getSubStreamList(), isDirectory(), isStructuredDocument(), isSubStream(), Storage(), and ~Storage().