Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: d32dbms.h
Link against: edbms.lib

Class CDbNames

CDbNames

Support

Supported from 5.0

Description

Maintains a list of DBMS names, and is used to report the structure of a database to the client.

This class is not intended for user derivation.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CDbNamesMaintains a list of DBMS names, and is used to report the structure of a database to the client

Defined in CDbNames:
AddL(), Count(), NewLC(), operator[](), ~CDbNames()

Inherited from CBase:
operator new()


Construction and destruction


NewLC()

static CDbNames* NewLC();

Description

Constructs a new empty names list object and returns a pointer to it.

The function leaves if there is not enough memory to complete this operation. It also places a pointer to the names list object onto the cleanup stack.

Return value

CDbNames*

A pointer to the new names list object.


~CDbNames()

~CDbNames();

Description

Frees resources owned by the object.

[Top]


Adding names


AddL()

void AddL(const TDesC& aName);

Description

Adds a name to the end of the list.

The function leaves if there is not enough memory to perform this operation.

Parameters

const TDesC& aName

The name to be added to the list.

[Top]


Enumerating the names


Count()

TInt Count() const;

Description

Returns the number of names in the list.

Return value

TInt

The number of names in the list.


operator[]()

const TDesC& operator[](TInt anIndex) const;

Description

Returns the name at a specified index in the list.

Parameters

TInt anIndex

The index of the name in the list. Indexes run from 0 to Count()-1.

Return value

TDesC&

A descriptor containing the requested name.