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

#include <iosys.hxx>

Collaboration diagram for SbiStream:
[legend]

Public Member Functions

 SbiStream ()
 
 ~SbiStream ()
 
ErrCode const & Open (std::string_view, StreamMode, SbiStreamFlags, short)
 
ErrCode const & Close ()
 
ErrCode Read (OString &, sal_uInt16=0, bool bForceReadingPerByte=false)
 
ErrCode const & Read (char &)
 
ErrCode Write (const OString &)
 
bool IsText () const
 
bool IsRandom () const
 
bool IsBinary () const
 
bool IsSeq () const
 
bool IsAppend () const
 
short GetBlockLen () const
 
SbiStreamFlags GetMode () const
 
sal_uInt64 GetLine () const
 
void SetExpandOnWriteTo (sal_uInt64 n)
 
void ExpandFile ()
 
SvStreamGetStrm ()
 

Private Member Functions

void MapError ()
 

Private Attributes

std::unique_ptr< SvStreampStrm
 
sal_uInt64 nExpandOnWriteTo
 
OString aLine
 
sal_uInt64 nLine
 
short nLen
 
SbiStreamFlags nMode
 
ErrCode nError
 

Detailed Description

Definition at line 49 of file iosys.hxx.

Constructor & Destructor Documentation

◆ SbiStream()

SbiStream::SbiStream ( )

Definition at line 91 of file iosys.cxx.

References NONE.

◆ ~SbiStream()

SbiStream::~SbiStream ( )

Definition at line 100 of file iosys.cxx.

Member Function Documentation

◆ Close()

ErrCode const & SbiStream::Close ( )

Definition at line 484 of file iosys.cxx.

References MapError(), nError, and pStrm.

Referenced by SbiIoSystem::Close(), SbiIoSystem::CloseAll(), and SbiIoSystem::Shutdown().

◆ ExpandFile()

void SbiStream::ExpandFile ( )

Definition at line 539 of file iosys.cxx.

References nExpandOnWriteTo, pStrm, and STREAM_SEEK_TO_END.

Referenced by Write().

◆ GetBlockLen()

short SbiStream::GetBlockLen ( ) const
inline

Definition at line 74 of file iosys.hxx.

References nLen.

◆ GetLine()

sal_uInt64 SbiStream::GetLine ( ) const
inline

Definition at line 76 of file iosys.hxx.

References nLine.

◆ GetMode()

SbiStreamFlags SbiStream::GetMode ( ) const
inline

Definition at line 75 of file iosys.hxx.

References nMode.

◆ GetStrm()

SvStream * SbiStream::GetStrm ( )
inline

Definition at line 79 of file iosys.hxx.

References pStrm.

◆ IsAppend()

bool SbiStream::IsAppend ( ) const
inline

Definition at line 73 of file iosys.hxx.

References Append, and nMode.

Referenced by Open(), and Write().

◆ IsBinary()

bool SbiStream::IsBinary ( ) const
inline

Definition at line 71 of file iosys.hxx.

References Binary, and nMode.

Referenced by Open().

◆ IsRandom()

bool SbiStream::IsRandom ( ) const
inline

Definition at line 70 of file iosys.hxx.

References nMode, and Random.

Referenced by Open().

◆ IsSeq()

bool SbiStream::IsSeq ( ) const
inline

Definition at line 72 of file iosys.hxx.

References nMode, and Random.

◆ IsText()

bool SbiStream::IsText ( ) const
inline

Definition at line 69 of file iosys.hxx.

References Binary, and nMode.

Referenced by Read(), and Write().

◆ MapError()

void SbiStream::MapError ( )
private

◆ Open()

ErrCode const & SbiStream::Open ( std::string_view  rName,
StreamMode  nStrmMode,
SbiStreamFlags  nFlags,
short  nL 
)

◆ Read() [1/2]

ErrCode const & SbiStream::Read ( char &  ch)

Definition at line 526 of file iosys.cxx.

References aLine, ch, nError, nExpandOnWriteTo, and Read().

◆ Read() [2/2]

ErrCode SbiStream::Read ( OString &  rBuf,
sal_uInt16  n = 0,
bool  bForceReadingPerByte = false 
)

◆ SetExpandOnWriteTo()

void SbiStream::SetExpandOnWriteTo ( sal_uInt64  n)
inline

Definition at line 77 of file iosys.hxx.

References n, and nExpandOnWriteTo.

◆ Write()

ErrCode SbiStream::Write ( const OString &  rBuf)

Member Data Documentation

◆ aLine

OString SbiStream::aLine
private

Definition at line 53 of file iosys.hxx.

Referenced by Read(), and Write().

◆ nError

ErrCode SbiStream::nError
private

Definition at line 57 of file iosys.hxx.

Referenced by Close(), MapError(), Open(), Read(), and Write().

◆ nExpandOnWriteTo

sal_uInt64 SbiStream::nExpandOnWriteTo
private

Definition at line 52 of file iosys.hxx.

Referenced by ExpandFile(), Open(), Read(), and SetExpandOnWriteTo().

◆ nLen

short SbiStream::nLen
private

Definition at line 55 of file iosys.hxx.

Referenced by GetBlockLen(), Open(), Read(), and Write().

◆ nLine

sal_uInt64 SbiStream::nLine
private

Definition at line 54 of file iosys.hxx.

Referenced by GetLine(), Open(), and Read().

◆ nMode

SbiStreamFlags SbiStream::nMode
private

Definition at line 56 of file iosys.hxx.

Referenced by GetMode(), IsAppend(), IsBinary(), IsRandom(), IsSeq(), IsText(), and Open().

◆ pStrm

std::unique_ptr<SvStream> SbiStream::pStrm
private

Definition at line 51 of file iosys.hxx.

Referenced by Close(), ExpandFile(), GetStrm(), MapError(), Open(), Read(), and Write().


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