#include <mmf/common/speechrecognitiondatadevasr.h>
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.
Parameter | Description |
---|---|
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. |
Returns: A reference to a CSDRule object.
IMPORT_C TInt | Count | ( | ) | const |
Returns the number of rules in the grammar
Returns: The number of rules.
IMPORT_C void | Delete | ( | TRuleID | aRuleID | ) |
Deletes a rule from the grammar.
Parameter | Description |
---|---|
aRuleID | The rule identifier to delete. |
IMPORT_C TGrammarID | GrammarID | ( | ) | const |
Returns the grammar ID of the result.
Returns: The grammar identifier.
IMPORT_C CSDGrammar * | NewL | ( | TGrammarID | aGrammarID | ) | [static] |
Instantiates an instance of CSDGrammar.
Parameter | Description |
---|---|
aGrammarID | The grammar identifier. |
Returns: A pointer to a CSDGrammar object.
IMPORT_C CSDGrammar * | NewLC | ( | TGrammarID | aGrammarID | ) | [static] |
Instantiates an instance of CSDGrammar and leaves a pointer on the cleanup stack.
Parameter | Description |
---|---|
aGrammarID | The grammar identifier. |
Returns: A pointer to CSDGrammar object.