#include <mmf/common/speechrecognitiondatadevasr.h>
class CSDLexicon : public CBase |
Public Member Functions | |
---|---|
~CSDLexicon() | |
IMPORT_C TInt | Add(CSDPronunciation &) |
IMPORT_C const CSDPronunciation & | At(TInt) |
IMPORT_C TInt | Count() |
IMPORT_C TInt | FindPronunciation(TPronunciationID) |
IMPORT_C TLexiconID | LexiconID() |
IMPORT_C CSDLexicon * | NewL(TLexiconID) |
IMPORT_C CSDLexicon * | NewLC(TLexiconID) |
Class to encapsulate a Speaker Dependent Lexicon.
IMPORT_C TInt | Add | ( | CSDPronunciation & | aPronunciation | ) |
Adds a lexicon entry to the lexicon.
Parameter | Description |
---|---|
aPronunciation | A reference to a CSDPronunciation object. |
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
IMPORT_C const CSDPronunciation & | At | ( | TInt | aIndex | ) | const |
Returns a pronunciation based at an index.
Parameter | Description |
---|---|
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. |
Returns: A reference to a CSDPronunciation object.
IMPORT_C TInt | Count | ( | ) | const |
Returns the number of lexicon entries in the lexicon.
Returns: The number of pronunciations.
IMPORT_C TInt | FindPronunciation | ( | TPronunciationID | aPronunciationID | ) | const |
Finds a pronunciation based on the specified pronunciation ID.
Parameter | Description |
---|---|
aPronunciationID | The pronunciation identifier. |
Returns: The index of the first matching pronunciation within the lexicon. Returns KErrNotFound, if a matching pronunciation can not be found.
IMPORT_C TLexiconID | LexiconID | ( | ) | const |
Returns the ID of the lexicon.
Returns: The lexicon identifier.
IMPORT_C CSDLexicon * | NewL | ( | TLexiconID | aLexiconID | ) | [static] |
Instantiates an instance of CSDLexicon.
Parameter | Description |
---|---|
aLexiconID | The lexicon identifier. |
Returns: A pointer to a CSDLexicon object.
IMPORT_C CSDLexicon * | NewLC | ( | TLexiconID | aLexiconID | ) | [static] |
Instantiates an instance of CSDGrammar and leaves a pointer on the cleanup stack.
Parameter | Description |
---|---|
aLexiconID | The lexicon identifier. |
Returns: A pointer to a CSDLexicon object.