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.

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

Definition at line 202 of file xistream.hxx.

Constructor & Destructor Documentation

XclImpStreamPos::XclImpStreamPos ( )
explicit

Constructs an invalid stream position data object.

Definition at line 347 of file xistream.cxx.

References mbValid, and STREAM_SEEK_TO_BEGIN.

Member Function Documentation

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 372 of file xistream.cxx.

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

Referenced by XclImpStream::RestorePosition().

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

Returns the stored stream position.

Definition at line 219 of file xistream.hxx.

References mnPos.

Referenced by XclImpStream::RewindRecord().

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 358 of file xistream.cxx.

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

Referenced by XclImpStream::StorePosition().

Member Data Documentation

bool XclImpStreamPos::mbValid
private

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

Definition at line 228 of file xistream.hxx.

Referenced by Get(), and Set().

std::size_t XclImpStreamPos::mnCurrSize
private

Absolute position of next record.

Definition at line 224 of file xistream.hxx.

Referenced by Get(), and Set().

std::size_t XclImpStreamPos::mnNextPos
private

Absolute position of the stream.

Definition at line 223 of file xistream.hxx.

Referenced by Get(), and Set().

std::size_t XclImpStreamPos::mnPos
private

Definition at line 222 of file xistream.hxx.

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

sal_uInt16 XclImpStreamPos::mnRawRecId
private

Current calculated size of the record.

Definition at line 225 of file xistream.hxx.

Referenced by Get(), and Set().

sal_uInt16 XclImpStreamPos::mnRawRecLeft
private

Current raw record size (without following CONTINUEs).

Definition at line 227 of file xistream.hxx.

Referenced by Get(), and Set().

sal_uInt16 XclImpStreamPos::mnRawRecSize
private

Current raw record ID (including CONTINUEs).

Definition at line 226 of file xistream.hxx.

Referenced by Get(), and Set().


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