LibreOffice Module sot (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
StgIo Class Reference

#include <stgio.hxx>

Inheritance diagram for StgIo:
[legend]
Collaboration diagram for StgIo:
[legend]

Public Member Functions

 StgIo ()
 
 ~StgIo ()
 
short GetDataPageSize () const
 
bool Load ()
 
bool Init ()
 
bool CommitAll ()
 
FatError ValidateFATs ()
 
- Public Member Functions inherited from StgCache
 StgCache ()
 
 ~StgCache ()
 
void IncRef ()
 
sal_uInt16 DecRef ()
 
void SetPhysPageSize (short)
 
sal_Int32 GetPhysPages () const
 
short GetPhysPageSize () const
 
SvStreamGetStrm ()
 
void SetStrm (SvStream *, bool)
 
void SetStrm (UCBStorageStream *)
 
bool Good () const
 
ErrCode const & GetError () const
 
void MoveError (StorageBase const &)
 
void SetError (ErrCode)
 
void ResetError ()
 
bool Open (const OUString &rName, StreamMode)
 
void Close ()
 
bool Read (sal_Int32 nPage, void *pBuf)
 
bool Write (sal_Int32 nPage, void const *pBuf)
 
void SetToPage (const rtl::Reference< StgPage > &rPage, short nOff, sal_Int32 nVal)
 
void SetDirty (const rtl::Reference< StgPage > &rPage)
 
bool SetSize (sal_Int32 nPages)
 
rtl::Reference< StgPageFind (sal_Int32)
 
rtl::Reference< StgPageGet (sal_Int32, bool)
 
rtl::Reference< StgPageCopy (sal_Int32, sal_Int32=STG_FREE)
 
bool Commit ()
 
void Clear ()
 

Public Attributes

StgHeader m_aHdr
 
StgFATStrmm_pFAT
 
StgDirStrmm_pTOC
 
StgDataStrmm_pDataFAT
 
StgDataStrmm_pDataStrm
 

Private Member Functions

void SetupStreams ()
 

Private Attributes

bool m_bCopied
 

Additional Inherited Members

- Static Public Member Functions inherited from StgCache
static sal_Int32 GetFromPage (const rtl::Reference< StgPage > &rPage, short nOff)
 
- Protected Member Functions inherited from StgCache
sal_Int32 Page2Pos (sal_Int32) const
 
- Protected Attributes inherited from StgCache
bool m_bFile
 

Detailed Description

Definition at line 42 of file stgio.hxx.

Constructor & Destructor Documentation

◆ StgIo()

StgIo::StgIo ( )

Definition at line 36 of file stgio.cxx.

References m_bCopied, m_pDataFAT, m_pDataStrm, m_pFAT, and m_pTOC.

◆ ~StgIo()

StgIo::~StgIo ( )

Definition at line 45 of file stgio.cxx.

References m_pDataFAT, m_pDataStrm, m_pFAT, and m_pTOC.

Member Function Documentation

◆ CommitAll()

bool StgIo::CommitAll ( )

◆ GetDataPageSize()

short StgIo::GetDataPageSize ( ) const

Definition at line 125 of file stgio.cxx.

References StgHeader::GetDataPageSize(), and m_aHdr.

Referenced by StgSmallStrm::Init(), and SetupStreams().

◆ Init()

bool StgIo::Init ( void  )

Definition at line 74 of file stgio.cxx.

References CommitAll(), StgHeader::Init(), m_aHdr, and SetupStreams().

◆ Load()

bool StgIo::Load ( )

◆ SetupStreams()

void StgIo::SetupStreams ( )
private

◆ ValidateFATs()

FatError StgIo::ValidateFATs ( )

Member Data Documentation

◆ m_aHdr

StgHeader StgIo::m_aHdr

◆ m_bCopied

bool StgIo::m_bCopied
private

Definition at line 44 of file stgio.hxx.

Referenced by StgIo(), and ValidateFATs().

◆ m_pDataFAT

StgDataStrm* StgIo::m_pDataFAT

Definition at line 51 of file stgio.hxx.

Referenced by CommitAll(), StgSmallStrm::Init(), SetupStreams(), StgIo(), and ~StgIo().

◆ m_pDataStrm

StgDataStrm* StgIo::m_pDataStrm

Definition at line 52 of file stgio.hxx.

Referenced by StgSmallStrm::Init(), SetupStreams(), StgIo(), and ~StgIo().

◆ m_pFAT

StgFATStrm* StgIo::m_pFAT

Definition at line 49 of file stgio.hxx.

Referenced by StgDataStrm::Init(), SetupStreams(), StgIo(), and ~StgIo().

◆ m_pTOC

StgDirStrm* StgIo::m_pTOC

Definition at line 50 of file stgio.hxx.

Referenced by CommitAll(), SetupStreams(), StgIo(), OLEStorageBase::Validate_Impl(), and ~StgIo().


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