CSDLexicon Class Reference

#include <mmf/common/speechrecognitiondatadevasr.h>

Link against: speechrecognitiondata.lib

class CSDLexicon : public CBase

Inherits from

Detailed Description

Class to encapsulate a Speaker Dependent Lexicon.

Since
8.0

Constructor & Destructor Documentation

~CSDLexicon ( )

IMPORT_C~CSDLexicon()

Destructor.

Member Function Documentation

Add ( CSDPronunciation & )

IMPORT_C TIntAdd(CSDPronunciation &aPronunciation)

Adds a lexicon entry to the lexicon.

Since
8.0
Parameters
aPronunciationA reference to a CSDPronunciation object.
Return Value
An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.

At ( TInt )

IMPORT_C const CSDPronunciation &At(TIntaIndex)const

Returns a pronunciation based at an index.

Since
8.0
Parameters
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.
Return Value
A reference to a CSDPronunciation object.

Count ( )

IMPORT_C TIntCount()const

Returns the number of lexicon entries in the lexicon.

Since
8.0
Return Value
The number of pronunciations.

FindPronunciation ( TPronunciationID )

IMPORT_C TIntFindPronunciation(TPronunciationIDaPronunciationID)const

Finds a pronunciation based on the specified pronunciation ID.

Parameters
aPronunciationIDThe pronunciation identifier.
Return Value
The index of the first matching pronunciation within the lexicon. Returns KErrNotFound, if a matching pronunciation can not be found.

LexiconID ( )

IMPORT_C TLexiconIDLexiconID()const

Returns the ID of the lexicon.

Since
8.0
Return Value
The lexicon identifier.

NewL ( TLexiconID )

IMPORT_C CSDLexicon *NewL(TLexiconIDaLexiconID)[static]

Instantiates an instance of CSDLexicon.

Parameters
aLexiconIDThe lexicon identifier.
Return Value
A pointer to a CSDLexicon object.

NewLC ( TLexiconID )

IMPORT_C CSDLexicon *NewLC(TLexiconIDaLexiconID)[static]

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

Parameters
aLexiconIDThe lexicon identifier.
Return Value
A pointer to a CSDLexicon object.