CSDLexicon Class Reference

class CSDLexicon : public CBase

Class to encapsulate a Speaker Dependent Lexicon.

Since
8.0

Inherits from

Constructor & Destructor Documentation

CSDLexicon(TLexiconID)

CSDLexicon ( TLexiconID aLexiconID ) [private]

Parameters

TLexiconID aLexiconID

~CSDLexicon()

IMPORT_C ~CSDLexicon ( )

Destructor.

Member Functions Documentation

Add(CSDPronunciation &)

IMPORT_C TInt Add ( CSDPronunciation & aPronunciation )

Adds a lexicon entry to the lexicon.

Since
8.0

Parameters

CSDPronunciation & aPronunciation A reference to a CSDPronunciation object.

At(TInt)

IMPORT_C const CSDPronunciation & At ( TInt aIndex ) const

Returns a pronunciation based at an index.

Since
8.0

Parameters

TInt aIndex The pronunciation index. This value must not be negative and must not be greater than the number of pronunciations currently in the lexicon, otherwise the function will panic.

ConstructL()

void ConstructL ( ) [private]

Count()

IMPORT_C TInt Count ( ) const

Returns the number of lexicon entries in the lexicon.

Since
8.0

FindPronunciation(TPronunciationID)

IMPORT_C TInt FindPronunciation ( TPronunciationID aPronunciationID ) const

Finds a pronunciation based on the specified pronunciation ID.

Parameters

TPronunciationID aPronunciationID The pronunciation identifier.

LexiconID()

IMPORT_C TLexiconID LexiconID ( ) const

Returns the ID of the lexicon.

Since
8.0

NewL(TLexiconID)

IMPORT_C CSDLexicon * NewL ( TLexiconID aLexiconID ) [static]

Instantiates an instance of CSDLexicon .

Parameters

TLexiconID aLexiconID The lexicon identifier.

NewLC(TLexiconID)

IMPORT_C CSDLexicon * NewLC ( TLexiconID aLexiconID ) [static]

Instantiates an instance of CSDGrammar and leaves a pointer on the cleanup stack.

Parameters

TLexiconID aLexiconID The lexicon identifier.

Member Data Documentation

TLexiconID iLexiconID

TLexiconID iLexiconID [private]

RPointerArray< CSDPronunciation > iPronunciationArray

RPointerArray < CSDPronunciation > iPronunciationArray [private]