libwps::Storage Class Reference

#include <WPSOLEStream.h>

Public Types

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

Public Member Functions

 Storage (shared_ptr< WPXInputStream > is)
 Constructs a storage with data. More...
 
 ~Storage ()
 Destroys the storage. More...
 
bool isOLEStream ()
 Checks whether the storage is OLE2 storage. More...
 
int result ()
 Returns the error code of last operation. More...
 
std::vector< std::string > getOLENames ()
 Returns the list of all ole leaves names. More...
 
shared_ptr< WPXInputStream > getDocumentOLEStream (const std::string &name)
 Returns a WPXInputStream corresponding to a name. More...
 

Private Member Functions

 Storage (const Storage &)
 
Storageoperator= (const Storage &)
 

Private Attributes

StorageIOio
 

Friends

class Stream
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Ok 
OpenFailed 
NotOLE 
BadOLE 
UnknownError 

Constructor & Destructor Documentation

◆ Storage() [1/2]

libwps::Storage::Storage ( shared_ptr< WPXInputStream >  is)

Constructs a storage with data.

◆ ~Storage()

libwps::Storage::~Storage ( )

Destroys the storage.

◆ Storage() [2/2]

libwps::Storage::Storage ( const Storage )
private

Member Function Documentation

◆ getDocumentOLEStream()

shared_ptr< WPXInputStream > libwps::Storage::getDocumentOLEStream ( const std::string &  name)

Returns a WPXInputStream corresponding to a name.

◆ getOLENames()

std::vector< std::string > libwps::Storage::getOLENames ( )

Returns the list of all ole leaves names.

◆ isOLEStream()

bool libwps::Storage::isOLEStream ( )

Checks whether the storage is OLE2 storage.

Referenced by getDocumentOLEStream().

◆ operator=()

Storage& libwps::Storage::operator= ( const Storage )
private

◆ result()

int libwps::Storage::result ( )

Returns the error code of last operation.

Referenced by getDocumentOLEStream().

Friends And Related Function Documentation

◆ Stream

friend class Stream
friend

Member Data Documentation

◆ io

StorageIO* libwps::Storage::io
private

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

Generated on Fri Oct 19 2018 22:44:33 for libwps by doxygen 1.8.13