Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: D32DBMS.H
Link against: edbms.lib

Class CDbStrings

class CDbStrings : public CBase;

Description

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;

Derivation

Members

Defined in CDbStrings:
Count(), operator[]()

Inherited from CBase:
Delete(), Extension_(), operator new()


Member functions


Count()

inline TInt Count() const;

Description

Return value

TInt

The number of elements of the controlled strings array.


operator[]()

inline const TDesC &operator[](TInt aIndex) const;

Description

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

Parameters

TInt aIndex

Return value

const TDesC &

"aIndex" element of the controlled strings array.