#include <mmf/common/speechrecognitiondatadevasr.h>
Link against: speechrecognitiondata.lib
| class CSDGrammar : public CBase | 
| Public Member Functions | |
|---|---|
| ~CSDGrammar() | |
| IMPORT_C TInt | Add(CSDRule &) | 
| IMPORT_C const CSDRule & | At(TInt) | 
| IMPORT_C TInt | Count() | 
| IMPORT_C void | Delete(TRuleID) | 
| IMPORT_C TInt | FindRule(TRuleID) | 
| IMPORT_C TGrammarID | GrammarID() | 
| IMPORT_C CSDGrammar * | NewL(TGrammarID) | 
| IMPORT_C CSDGrammar * | NewLC(TGrammarID) | 
Class to encapsulate a Speaker Dependent Grammar.
A grammar consists of a list of rules.
Returns a rule based at an index.
| Parameters | |
|---|---|
| aIndex | An index value. The value must not be negative and must not be greater than the number of rules currently in the grammar, otherwise the function will panic. | 
| IMPORT_C TInt | Count | ( | ) | const | 
Returns the number of rules in the grammar
| IMPORT_C void | Delete | ( | TRuleID | aRuleID | ) | 
Deletes a rule from the grammar.
| Parameters | |
|---|---|
| aRuleID | The rule identifier to delete. | 
| IMPORT_C TGrammarID | GrammarID | ( | ) | const | 
Returns the grammar ID of the result.
| IMPORT_C CSDGrammar * | NewL | ( | TGrammarID | aGrammarID | ) | [static] | 
Instantiates an instance of CSDGrammar.
| Parameters | |
|---|---|
| aGrammarID | The grammar identifier. | 
| IMPORT_C CSDGrammar * | NewLC | ( | TGrammarID | aGrammarID | ) | [static] | 
Instantiates an instance of CSDGrammar and leaves a pointer on the cleanup stack.
| Parameters | |
|---|---|
| aGrammarID | The grammar identifier. |