CDbStrings Class Reference

class CDbStrings : public CBase
CDbStrings encapsulates functionality used for transferring an array of strings from DBMS server to the DBMS client. The maximal length of each element of the array is KDbMaxStrLen characters. The typical usage pattern of CDbStrings class is:
CDbStrings* strings = <a call of an exported DBMS method>;
TInt cnt = strings.Count();
for(TInt i=0;i<cnt;++i)
	{
	const TDesC& str = (*strings)[i];
	<do something with "str" variable>;
	}
delete strings;

Inherits from

Constructor & Destructor Documentation

CDbStrings()

CDbStrings()[private, inline]

~CDbStrings()

~CDbStrings()[virtual]

Member Functions Documentation

AddL(const TDesC &)

voidAddL(const TDesC &aStr)

Parameters

const TDesC & aStr

Count()

TInt Count()const [inline]

The number of elements of the controlled strings array.

NewLC()

CDbStrings *NewLC()[static]

operator[](TInt)

const TDesC &operator[](TIntaIndex)const [inline]

Allows access to "aIndex" element of the controlled strings array. "aIndex" element of the controlled strings array.

Parameters

TInt aIndex

Member Data Documentation

CArrayPakFlat< TDbStringC > iList

CArrayPakFlat< TDbStringC >iList[private]