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)

void MoveTo ( TInt aIndex ) [inline]

Moves to the specified field in the flat buffer.

Parameters

TInt aIndex Field index

Next()

TBool Next ( ) [inline]

Moves to the next flat buffer field

Set(RSqlBufFlat &)

void Set ( RSqlBufFlat & aBuf ) [inline]

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

Parameters

RSqlBufFlat & aBuf A reference to the buffer which will be iterated.

SetAsNotPresent(TInt, TInt)

void SetAsNotPresent ( TInt aType,
TInt aLength
) [inline]

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

Parameters

TInt aType Field type. One of TSqlColumnType enum item values or ESqlText8.
TInt aLength Field 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 & aValue An 8 bit descriptor pointing to the block of data to be set as a field content.

SetInt(TInt)

TInt SetInt ( TInt aValue ) [inline]

Initializes current flat buffer field with an integer value.

Parameters

TInt aValue An integer value to be set as a field content

SetInt64(TInt64)

TInt SetInt64 ( TInt64 aValue ) [inline]

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

Parameters

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

SetNull()

void SetNull ( ) [inline]

Sets the current flat buffer field to NULL.

SetReal(TReal)

TInt SetReal ( TReal aValue ) [inline]

Initializes current flat buffer field with a real value.

Parameters

TReal aValue A 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 & aValue A 16 bit descriptor pointing to the block of text to be set as a field content.

SetZeroBlob(TInt)

TInt SetZeroBlob ( TInt aSize ) [inline]

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

Parameters

TInt aSize The 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]