TSqlBufWIterator Class Reference

class TSqlBufWIterator

TSqlBufWIterator iterator gives write-only access to the flat buffer content (RSqlBufFlat class). For convenience, with TSqlBufWIterator flat buffer fields can be set as: TInt, TInt64, TReal, 16-bit text, 8-bit binary block.

RSqlBufFlat

Member Functions Documentation

MoveTo(TInt)

voidMoveTo(TIntaIndex)[inline]

Moves to the specified field in the flat buffer.

Parameters

TInt aIndexField index

Next()

TBool Next()[inline]

Moves to the next flat buffer field

Set(RSqlBufFlat &)

voidSet(RSqlBufFlat &aBuf)[inline]

Initializes the iterator. After the initialization the iterator points to the first flat buffer field - 1.

Parameters

RSqlBufFlat & aBufA reference to the buffer which will be iterated.

SetAsNotPresent(TInt, TInt)

voidSetAsNotPresent(TIntaType,
TIntaLength
)[inline]

Sets the current flat buffer field as "Not present".

Parameters

TInt aTypeField type. One of TSqlColumnType enum item values or ESqlText8.
TInt aLengthField length in bytes

SetBinary(const TDesC8 &)

TInt SetBinary(const TDesC8 &aValue)[inline]

Initializes current flat buffer field with a block of binary data.

Parameters

const TDesC8 & aValueAn 8 bit descriptor pointing to the block of data to be set as a field content.

SetInt(TInt)

TInt SetInt(TIntaValue)[inline]

Initializes current flat buffer field with an integer value.

Parameters

TInt aValueAn integer value to be set as a field content

SetInt64(TInt64)

TInt SetInt64(TInt64aValue)[inline]

Initializes current flat buffer field with an 64 bit integer value.

Parameters

TInt64 aValueA 64 bit integer value to be set as a field content

SetNull()

voidSetNull()[inline]

Sets the current flat buffer field to NULL.

SetReal(TReal)

TInt SetReal(TRealaValue)[inline]

Initializes current flat buffer field with a real value.

Parameters

TReal aValueA real value to be set as a field content

SetText(const TDesC16 &)

TInt SetText(const TDesC16 &aValue)[inline]

Initializes current flat buffer field with a block of 16 bit text.

Parameters

const TDesC16 & aValueA 16 bit descriptor pointing to the block of text to be set as a field content.

SetZeroBlob(TInt)

TInt SetZeroBlob(TIntaSize)[inline]

Initializes current flat buffer field with a zeroblob of the specified size.

Parameters

TInt aSizeThe size, in bytes, of the zeroblob to be set as the field content.

Member Data Documentation

RSqlBufFlat * iBuf

RSqlBufFlat *iBuf[private]

TInt iIndex

TInt iIndex[private]