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_C CSILexicon ( const TSILexiconID aLexiconID ) [protected]

Parameters

const TSILexiconID aLexiconID

~CSILexicon()

IMPORT_C ~CSILexicon ( ) [virtual]

Destructor.

Member Functions Documentation

AddL(CSIPronunciation *)

IMPORT_C void AddL ( 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 * aPronunciation pointer to CSIPronunciation object.

AddPronunciationToEndL(CSIPronunciation *)

void AddPronunciationToEndL ( CSIPronunciation * aPronunciation ) [private]

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

Parameters

CSIPronunciation * aPronunciation

AtL(TInt)

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

Parameters

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

ConstructL()

IMPORT_C void ConstructL ( ) [protected]

Count()

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

DeleteL(TSIPronunciationID)

IMPORT_C void DeleteL ( TSIPronunciationID aPronunciationID ) [virtual]
Deletes a pronunciation based on identifier.
Since
2.8

Parameters

TSIPronunciationID aPronunciationID pronunciation variant identifier.

ExternalizeL(RWriteStream &)

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

Parameters

RWriteStream & aStream Data stream

Find(const TSIPronunciationID)

IMPORT_C TInt Find ( const TSIPronunciationID aPronunciationID ) const [virtual]
Use to find a pronunciation based on pronunciation Id.
Since
2.8

Parameters

const TSIPronunciationID aPronunciationID

Find(const TDesC8 &)

IMPORT_C TInt Find ( 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 void InternalizeL ( RReadStream & aStream ) [virtual]
Internalize to a data stream
Since
2.8

Parameters

RReadStream & aStream Data stream

LexiconID()

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

NewL(const TSILexiconID)

IMPORT_C CSILexicon * NewL ( const TSILexiconID aLexiconID ) [static]

Two-phased constructor.

Parameters

const TSILexiconID aLexiconID Lexicon ID

NewLC(const TSILexiconID)

IMPORT_C CSILexicon * NewLC ( const TSILexiconID aLexiconID ) [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]