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

This class represents an Excel stream position. More...

#include <xistream.hxx>

Public Member Functions

 XclImpStreamPos ()
 Constructs an invalid stream position data object. More...
 
void Set (const SvStream &rStrm, std::size_t nNextPos, std::size_t nCurrSize, sal_uInt16 nRawRecId, sal_uInt16 nRawRecSize, sal_uInt16 nRawRecLeft, bool bValid)
 Sets the stream position data to the passed values. More...
 
void Get (SvStream &rStrm, std::size_t &rnNextPos, std::size_t &rnCurrSize, sal_uInt16 &rnRawRecId, sal_uInt16 &rnRawRecSize, sal_uInt16 &rnRawRecLeft, bool &rbValid) const
 Writes the contained stream position data to the given variables. More...
 
std::size_t GetPos () const
 Returns the stored stream position. More...
 

Private Attributes

std::size_t mnPos
 
std::size_t mnNextPos
 Absolute position of the stream. More...
 
std::size_t mnCurrSize
 Absolute position of next record. More...
 
sal_uInt16 mnRawRecId
 Current calculated size of the record. More...
 
sal_uInt16 mnRawRecSize
 Current raw record ID (including CONTINUEs). More...
 
sal_uInt16 mnRawRecLeft
 Current raw record size (without following CONTINUEs). More...
 
bool mbValid
 Bytes left in current raw record (without following CONTINUEs). More...
 

Detailed Description

This class represents an Excel stream position.

@descr It contains the relevant data for a stream position inside of a record (including CONTINUE records).

Definition at line 201 of file xistream.hxx.

Constructor & Destructor Documentation

◆ XclImpStreamPos()

XclImpStreamPos::XclImpStreamPos ( )
explicit

Constructs an invalid stream position data object.

Definition at line 348 of file xistream.cxx.

References STREAM_SEEK_TO_BEGIN.

Member Function Documentation

◆ Get()

void XclImpStreamPos::Get ( SvStream rStrm,
std::size_t &  rnNextPos,
std::size_t &  rnCurrSize,
sal_uInt16 &  rnRawRecId,
sal_uInt16 &  rnRawRecSize,
sal_uInt16 &  rnRawRecLeft,
bool &  rbValid 
) const

Writes the contained stream position data to the given variables.

Definition at line 373 of file xistream.cxx.

References mbValid, mnCurrSize, mnNextPos, mnPos, mnRawRecId, mnRawRecLeft, mnRawRecSize, rStrm, and SvStream::Seek().

Referenced by XclImpStream::RestorePosition().

◆ GetPos()

std::size_t XclImpStreamPos::GetPos ( ) const
inline

Returns the stored stream position.

Definition at line 218 of file xistream.hxx.

References mnPos.

Referenced by XclImpStream::RewindRecord().

◆ Set()

void XclImpStreamPos::Set ( const SvStream rStrm,
std::size_t  nNextPos,
std::size_t  nCurrSize,
sal_uInt16  nRawRecId,
sal_uInt16  nRawRecSize,
sal_uInt16  nRawRecLeft,
bool  bValid 
)

Sets the stream position data to the passed values.

Definition at line 359 of file xistream.cxx.

References mbValid, mnCurrSize, mnNextPos, mnPos, mnRawRecId, mnRawRecLeft, mnRawRecSize, rStrm, and SvStream::Tell().

Referenced by XclImpStream::StorePosition().

Member Data Documentation

◆ mbValid

bool XclImpStreamPos::mbValid
private

Bytes left in current raw record (without following CONTINUEs).

Definition at line 227 of file xistream.hxx.

Referenced by Get(), and Set().

◆ mnCurrSize

std::size_t XclImpStreamPos::mnCurrSize
private

Absolute position of next record.

Definition at line 223 of file xistream.hxx.

Referenced by Get(), and Set().

◆ mnNextPos

std::size_t XclImpStreamPos::mnNextPos
private

Absolute position of the stream.

Definition at line 222 of file xistream.hxx.

Referenced by Get(), and Set().

◆ mnPos

std::size_t XclImpStreamPos::mnPos
private

Definition at line 221 of file xistream.hxx.

Referenced by Get(), GetPos(), and Set().

◆ mnRawRecId

sal_uInt16 XclImpStreamPos::mnRawRecId
private

Current calculated size of the record.

Definition at line 224 of file xistream.hxx.

Referenced by Get(), and Set().

◆ mnRawRecLeft

sal_uInt16 XclImpStreamPos::mnRawRecLeft
private

Current raw record size (without following CONTINUEs).

Definition at line 226 of file xistream.hxx.

Referenced by Get(), and Set().

◆ mnRawRecSize

sal_uInt16 XclImpStreamPos::mnRawRecSize
private

Current raw record ID (including CONTINUEs).

Definition at line 225 of file xistream.hxx.

Referenced by Get(), and Set().


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