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

Represents a complete substream of records enclosed into a pair of BOF/EOF records. More...

#include <xerecord.hxx>

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

Public Member Functions

 XclExpSubStream (sal_uInt16 nSubStrmType)
 
virtual void Save (XclExpStream &rStrm) override
 Writes the complete substream, including leading BOF and trailing EOF. More...
 
- Public Member Functions inherited from XclExpRecordList< RecType >
bool IsEmpty () const
 
size_t GetSize () const
 
bool HasRecord (size_t nPos) const
 Returns true, if the passed index points to an exiting record. More...
 
RecType * GetRecord (size_t nPos) const
 Returns reference to an existing record or empty reference on error. More...
 
RecType * GetFirstRecord () const
 Returns reference to the first existing record or empty reference, if list is empty. More...
 
RecType * GetLastRecord () const
 Returns reference to the last existing record or empty reference, if list is empty. More...
 
void InsertRecord (RecType *pRec, size_t nPos)
 Inserts a record at the specified position into the list. More...
 
void InsertRecord (RecordRefType pRec, size_t nPos)
 
void AppendRecord (RecType *pRec)
 Appends a record to the list. More...
 
void AppendRecord (const RecordRefType &xRec)
 
void AppendRecord (RecordRefType xRec) &&
 
void ReplaceRecord (RecType *pRec, size_t nPos)
 Replaces the record at the specified position from the list with the passed record. More...
 
void ReplaceRecord (RecordRefType const &xRec, size_t nPos)
 
void AppendNewRecord (RecType *pRec)
 Appends a newly created record to the list. More...
 
void AppendNewRecord (RecordRefType const &xRec)
 
void AppendNewRecord (RecordRefType xRec) &&
 
void RemoveRecord (size_t nPos)
 Removes the record at the specified position from the list. More...
 
void RemoveAllRecords ()
 Removes all records from the list. More...
 
virtual void Save (XclExpStream &rStrm) override
 Writes the complete record list. More...
 
virtual void SaveXml (XclExpXmlStream &rStrm) override
 
void InvalidateRecord (size_t nPos)
 Optimization for repeated removal. More...
 
void RemoveInvalidatedRecords ()
 
- Public Member Functions inherited from XclExpRecordBase
 XclExpRecordBase ()
 
 XclExpRecordBase (XclExpRecordBase const &)
 
 XclExpRecordBase (XclExpRecordBase &&)
 
XclExpRecordBaseoperator= (XclExpRecordBase const &)
 
XclExpRecordBaseoperator= (XclExpRecordBase &&) noexcept
 
virtual ~XclExpRecordBase ()
 
virtual void Save (XclExpStream &rStrm)
 Overwrite this method to do any operation while saving the record. More...
 
virtual void SaveXml (XclExpXmlStream &rStrm)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Attributes

sal_uInt16 mnSubStrmType
 

Additional Inherited Members

- Public Types inherited from XclExpRecordList< RecType >
typedef rtl::Reference< RecType > RecordRefType
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Represents a complete substream of records enclosed into a pair of BOF/EOF records.

Definition at line 409 of file xerecord.hxx.

Constructor & Destructor Documentation

◆ XclExpSubStream()

XclExpSubStream::XclExpSubStream ( sal_uInt16  nSubStrmType)
explicit

Definition at line 216 of file xerecord.cxx.

Member Function Documentation

◆ Save()

void XclExpSubStream::Save ( XclExpStream rStrm)
overridevirtual

Writes the complete substream, including leading BOF and trailing EOF.

Reimplemented from XclExpRecordList< RecType >.

Definition at line 221 of file xerecord.cxx.

References DBG_ERROR_BIFF, EXC_BIFF2, EXC_BIFF3, EXC_BIFF4, EXC_BIFF5, EXC_BIFF8, EXC_BOF_BIFF5, EXC_BOF_BIFF8, EXC_ID2_BOF, EXC_ID3_BOF, EXC_ID4_BOF, EXC_ID5_BOF, EXC_ID_EOF, mnSubStrmType, rStrm, and XclExpRecordList< RecType >::Save().

Member Data Documentation

◆ mnSubStrmType

sal_uInt16 XclExpSubStream::mnSubStrmType
private

Definition at line 418 of file xerecord.hxx.

Referenced by Save().


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