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(TLexiconIDaLexiconID)[private]

Parameters

TLexiconID aLexiconID

~CSDLexicon()

IMPORT_C~CSDLexicon()

Destructor.

Member Functions Documentation

Add(CSDPronunciation &)

IMPORT_C TIntAdd(CSDPronunciation &aPronunciation)

Adds a lexicon entry to the lexicon.

Since
8.0

Parameters

CSDPronunciation & aPronunciationA reference to a CSDPronunciation object.

At(TInt)

IMPORT_C const CSDPronunciation &At(TIntaIndex)const

Returns a pronunciation based at an index.

Since
8.0

Parameters

TInt aIndexThe 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()

voidConstructL()[private]

Count()

IMPORT_C TIntCount()const

Returns the number of lexicon entries in the lexicon.

Since
8.0

FindPronunciation(TPronunciationID)

IMPORT_C TIntFindPronunciation(TPronunciationIDaPronunciationID)const

Finds a pronunciation based on the specified pronunciation ID.

Parameters

TPronunciationID aPronunciationIDThe pronunciation identifier.

LexiconID()

IMPORT_C TLexiconIDLexiconID()const

Returns the ID of the lexicon.

Since
8.0

NewL(TLexiconID)

IMPORT_C CSDLexicon *NewL(TLexiconIDaLexiconID)[static]

Instantiates an instance of CSDLexicon.

Parameters

TLexiconID aLexiconIDThe lexicon identifier.

NewLC(TLexiconID)

IMPORT_C CSDLexicon *NewLC(TLexiconIDaLexiconID)[static]

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

Parameters

TLexiconID aLexiconIDThe lexicon identifier.

Member Data Documentation

TLexiconID iLexiconID

TLexiconID iLexiconID[private]

RPointerArray< CSDPronunciation > iPronunciationArray

RPointerArray< CSDPronunciation >iPronunciationArray[private]