CSILexicon Class Reference

class CSILexicon : public CBase

Class to encapsulate a Speaker Independent Lexicon

nsssispeechrecognitiondata.lib
Since
2.8

Inherits from

Constructor & Destructor Documentation

CSILexicon(const TSILexiconID)

IMPORT_CCSILexicon(const TSILexiconIDaLexiconID)[protected]

Parameters

const TSILexiconID aLexiconID

~CSILexicon()

IMPORT_C~CSILexicon()[virtual]

Destructor.

Member Functions Documentation

AddL(CSIPronunciation *)

IMPORT_C voidAddL(CSIPronunciation *aPronunciation)[virtual]
Use to add a lexicon entry to the lexicon. Leaves with KErrNoMemory if maximal allowed amount of pronunciations is already stored in this lexicon
Since
2.8

Parameters

CSIPronunciation * aPronunciationpointer to CSIPronunciation object.

AddPronunciationToEndL(CSIPronunciation *)

voidAddPronunciationToEndL(CSIPronunciation *aPronunciation)[private]

Utility function to add pronunciation to the end of ID-ordered array

Parameters

CSIPronunciation * aPronunciation

AtL(TInt)

IMPORT_C CSIPronunciation &AtL(TIntaIndex)const [virtual]
Use to return a pronunciation based at an index.
Since
2.8

Parameters

TInt aIndexValue must not be negative and must not be greater than the number of pronunciations currently in the lexicon.

ConstructL()

IMPORT_C voidConstructL()[protected]

Count()

IMPORT_C TIntCount()const [virtual]
Use to count the number of lexicon entries in the lexicon.
Since
2.8

DeleteL(TSIPronunciationID)

IMPORT_C voidDeleteL(TSIPronunciationIDaPronunciationID)[virtual]
Deletes a pronunciation based on identifier.
Since
2.8

Parameters

TSIPronunciationID aPronunciationIDpronunciation variant identifier.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const [virtual]
Externalize from a data stream
Since
2.8

Parameters

RWriteStream & aStreamData stream

Find(const TSIPronunciationID)

IMPORT_C TIntFind(const TSIPronunciationIDaPronunciationID)const [virtual]
Use to find a pronunciation based on pronunciation Id.
Since
2.8

Parameters

const TSIPronunciationID aPronunciationID

Find(const TDesC8 &)

IMPORT_C TIntFind(const TDesC8 &aPhonemeSequence)const [virtual]
Use to find a pronunciation based on phoneme sequence.
Since
2.8

Parameters

const TDesC8 & aPhonemeSequence

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)[virtual]
Internalize to a data stream
Since
2.8

Parameters

RReadStream & aStreamData stream

LexiconID()

IMPORT_C TSILexiconIDLexiconID()const [virtual]
Use to retrieve the model bank Id of the model bank.
Since
2.8

NewL(const TSILexiconID)

IMPORT_C CSILexicon *NewL(const TSILexiconIDaLexiconID)[static]

Two-phased constructor.

Parameters

const TSILexiconID aLexiconIDLexicon ID

NewLC(const TSILexiconID)

IMPORT_C CSILexicon *NewLC(const TSILexiconIDaLexiconID)[static]

Parameters

const TSILexiconID aLexiconID

Member Data Documentation

TSILexiconID iLexiconID

TSILexiconID iLexiconID[private]

RPointerArray< CSIPronunciation > iPronunOrder

RPointerArray< CSIPronunciation >iPronunOrder[private]

RPointerArray< CSIPronunciation > iPronunciationArray

RPointerArray< CSIPronunciation >iPronunciationArray[private]

TAny * iReserved

TAny *iReserved[private]