Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:


Member functions


Count()const

inline TInt Count() const;

Description

Return value

TInt

The number of elements of the controlled strings array.


operator[](TInt)const

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

Description

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

Parameters

TInt aIndex

Return value

const TDesC16 &

"aIndex" element of the controlled strings array.