LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
OpenStormBento::LtcUtBenValueStream Class Reference

#include <bento.hxx>

Inheritance diagram for OpenStormBento::LtcUtBenValueStream:
[legend]
Collaboration diagram for OpenStormBento::LtcUtBenValueStream:
[legend]

Public Member Functions

 LtcUtBenValueStream (CBenValue *pValue)
 Construction. More...
 
virtual ~LtcUtBenValueStream () override
 
sal_uLong GetSize () const
 
- Public Member Functions inherited from SvStream
 SvStream ()
 
 SvStream (SvLockBytes *pLockBytes)
 
virtual ~SvStream ()
 
SvLockBytesGetLockBytes () const
 
ErrCode GetError () const
 
ErrCode const & GetErrorCode () const
 
void SetError (ErrCode nErrorCode)
 
virtual void ResetError ()
 
void SetEndian (SvStreamEndian SvStreamEndian)
 
SvStreamEndian GetEndian () const
 
bool IsEndianSwap () const
 
void SetCompressMode (SvStreamCompressFlags nNewMode)
 
SvStreamCompressFlags GetCompressMode () const
 
void SetCryptMaskKey (const OString &rCryptMaskKey)
 
void SetStreamCharSet (rtl_TextEncoding eCharSet)
 
rtl_TextEncoding GetStreamCharSet () const
 
void SetLineDelimiter (LineEnd eLineEnd)
 
LineEnd GetLineDelimiter () const
 
SvStreamReadUInt16 (sal_uInt16 &rUInt16)
 
SvStreamReadUInt32 (sal_uInt32 &rUInt32)
 
SvStreamReadUInt64 (sal_uInt64 &rUInt64)
 
SvStreamReadInt16 (sal_Int16 &rInt16)
 
SvStreamReadInt32 (sal_Int32 &rInt32)
 
SvStreamReadInt64 (sal_Int64 &rInt64)
 
SvStreamReadSChar (signed char &rChar)
 
SvStreamReadChar (char &rChar)
 
SvStreamReadUChar (unsigned char &rChar)
 
SvStreamReadUtf16 (sal_Unicode &rUtf16)
 
SvStreamReadCharAsBool (bool &rBool)
 
SvStreamReadFloat (float &rFloat)
 
SvStreamReadDouble (double &rDouble)
 
SvStreamReadStream (SvStream &rStream)
 
SvStreamWriteUInt16 (sal_uInt16 nUInt16)
 
SvStreamWriteUInt32 (sal_uInt32 nUInt32)
 
SvStreamWriteUInt64 (sal_uInt64 nuInt64)
 
SvStreamWriteInt16 (sal_Int16 nInt16)
 
SvStreamWriteInt32 (sal_Int32 nInt32)
 
SvStreamWriteInt64 (sal_Int64 nInt64)
 
SvStreamWriteUInt8 (sal_uInt8 nuInt8)
 
SvStreamWriteUnicode (sal_Unicode)
 
SvStreamWriteOString (std::string_view rStr)
 
SvStreamWriteStream (SvStream &rStream)
 
sal_uInt64 WriteStream (SvStream &rStream, sal_uInt64 nSize)
 
SvStreamWriteBool (bool b)
 
SvStreamWriteSChar (signed char nChar)
 
SvStreamWriteChar (char nChar)
 
SvStreamWriteUChar (unsigned char nChar)
 
SvStreamWriteFloat (float nFloat)
 
SvStreamWriteDouble (const double &rDouble)
 
SvStreamWriteNumberAsString (N n)
 
std::size_t ReadBytes (void *pData, std::size_t nSize)
 
std::size_t WriteBytes (const void *pData, std::size_t nSize)
 
sal_uInt64 Seek (sal_uInt64 nPos)
 
sal_uInt64 SeekRel (sal_Int64 nPos)
 
sal_uInt64 Tell () const
 
virtual sal_uInt64 TellEnd ()
 
sal_uInt64 remainingSize ()
 
void FlushBuffer ()
 
void Flush ()
 
bool SetStreamSize (sal_uInt64 nSize)
 
bool ReadLine (OStringBuffer &rStr, sal_Int32 nMaxBytesToRead=0xFFFE)
 
bool ReadLine (OString &rStr, sal_Int32 nMaxBytesToRead=0xFFFE)
 
bool WriteLine (std::string_view rStr)
 
bool ReadByteStringLine (OUString &rStr, rtl_TextEncoding eSrcCharSet, sal_Int32 nMaxBytesToRead=0xFFFE)
 
bool WriteByteStringLine (std::u16string_view rStr, rtl_TextEncoding eDestCharSet)
 
void StartWritingUnicodeText ()
 
void StartReadingUnicodeText (rtl_TextEncoding eReadBomCharSet)
 
SAL_DLLPRIVATE bool ReadUniStringLine (OUString &rStr, sal_Int32 nMaxCodepointsToRead)
 
OUString ReadUniOrByteString (rtl_TextEncoding eSrcCharSet)
 
SvStreamWriteUniOrByteString (std::u16string_view rStr, rtl_TextEncoding eDestCharSet)
 
bool ReadUniOrByteStringLine (OUString &rStr, rtl_TextEncoding eSrcCharSet, sal_Int32 nMaxCodepointsToRead=0xFFFE)
 
bool WriteUnicodeOrByteText (std::u16string_view rStr, rtl_TextEncoding eDestCharSet)
 
bool WriteUnicodeOrByteText (std::u16string_view rStr)
 
bool WriteUniOrByteChar (sal_Unicode ch, rtl_TextEncoding eDestCharSet)
 
bool WriteUniOrByteChar (sal_Unicode ch)
 
void SetBufferSize (sal_uInt16 m_nBufSize)
 
sal_uInt16 GetBufferSize () const
 
void RefreshBuffer ()
 
bool IsWritable () const
 
StreamMode GetStreamMode () const
 
sal_Int32 GetVersion () const
 
void SetVersion (sal_Int32 n)
 
bool eof () const
 
bool bad () const
 
bool good () const
 

Protected Member Functions

virtual std::size_t GetData (void *pData, std::size_t nSize) override
 Value stream read function. More...
 
virtual std::size_t PutData (const void *pData, std::size_t nSize) override
 Value stream write function, not supported now. More...
 
virtual sal_uInt64 SeekPos (sal_uInt64 nPos) override
 Seek function of value stream. More...
 
virtual void SetSize (sal_uInt64 nSize) override
 Set buffer size function. More...
 
virtual void FlushData () override
 Flush data function, not supported now. More...
 
- Protected Member Functions inherited from SvStream
virtual std::size_t GetData (void *pData, std::size_t nSize)
 
virtual std::size_t PutData (const void *pData, std::size_t nSize)
 
virtual sal_uInt64 SeekPos (sal_uInt64 nPos)
 
virtual void FlushData ()
 
virtual void SetSize (sal_uInt64 nSize)
 
SAL_DLLPRIVATE void ClearError ()
 
SAL_DLLPRIVATE void ClearBuffer ()
 
SAL_DLLPRIVATE std::size_t CryptAndWriteBuffer (const void *pStart, std::size_t nLen)
 
SAL_DLLPRIVATE void EncryptBuffer (void *pStart, std::size_t nLen) const
 

Private Attributes

CBenValuecpValue
 
size_t cCurrentPosition
 
sal_uLong m_ulValueLength
 

Additional Inherited Members

- Protected Attributes inherited from SvStream
sal_uInt64 m_nBufFilePos
 
StreamMode m_eStreamMode
 
bool m_isWritable
 

Detailed Description

Definition at line 169 of file bento.hxx.

Constructor & Destructor Documentation

◆ LtcUtBenValueStream()

OpenStormBento::LtcUtBenValueStream::LtcUtBenValueStream ( CBenValue pValue)
explicit

Construction.

Definition at line 125 of file utbenvs.cxx.

◆ ~LtcUtBenValueStream()

OpenStormBento::LtcUtBenValueStream::~LtcUtBenValueStream ( )
overridevirtual

Definition at line 134 of file utbenvs.cxx.

Member Function Documentation

◆ FlushData()

void OpenStormBento::LtcUtBenValueStream::FlushData ( )
overrideprotectedvirtual

Flush data function, not supported now.

Reimplemented from SvStream.

Definition at line 114 of file utbenvs.cxx.

◆ GetData()

std::size_t OpenStormBento::LtcUtBenValueStream::GetData ( void *  pData,
std::size_t  nSize 
)
overrideprotectedvirtual

Value stream read function.

Parameters
datapointer of bytes read
numberof bytes to be read
Returns
number of bytes read

Reimplemented from SvStream.

Definition at line 66 of file utbenvs.cxx.

References cCurrentPosition, cpValue, pData, and OpenStormBento::CBenValue::ReadValueData().

◆ GetSize()

sal_uLong OpenStormBento::LtcUtBenValueStream::GetSize ( ) const
inline

Definition at line 178 of file bento.hxx.

References m_ulValueLength.

◆ PutData()

std::size_t OpenStormBento::LtcUtBenValueStream::PutData ( const void *  pData,
std::size_t  nSize 
)
overrideprotectedvirtual

Value stream write function, not supported now.

Parameters
pointerof saved buffer
sizeof buffer to be written
Returns
number of bytes written into value stream

Reimplemented from SvStream.

Definition at line 81 of file utbenvs.cxx.

◆ SeekPos()

sal_uInt64 OpenStormBento::LtcUtBenValueStream::SeekPos ( sal_uInt64  nPos)
overrideprotectedvirtual

Seek function of value stream.

Parameters
positionin value stream
Returns
current position in value stream

Reimplemented from SvStream.

Definition at line 93 of file utbenvs.cxx.

References cCurrentPosition, m_ulValueLength, and nPos.

◆ SetSize()

void OpenStormBento::LtcUtBenValueStream::SetSize ( sal_uInt64  nSize)
overrideprotectedvirtual

Set buffer size function.

Parameters
sizeof buffer
Returns

Reimplemented from SvStream.

Definition at line 106 of file utbenvs.cxx.

Member Data Documentation

◆ cCurrentPosition

size_t OpenStormBento::LtcUtBenValueStream::cCurrentPosition
private

Definition at line 189 of file bento.hxx.

Referenced by GetData(), and SeekPos().

◆ cpValue

CBenValue* OpenStormBento::LtcUtBenValueStream::cpValue
private

Definition at line 188 of file bento.hxx.

Referenced by GetData().

◆ m_ulValueLength

sal_uLong OpenStormBento::LtcUtBenValueStream::m_ulValueLength
private

Definition at line 191 of file bento.hxx.

Referenced by GetSize(), and SeekPos().


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