CSIGrammar Class Reference

class CSIGrammar : public CBase

Class to encapsulate a Speaker Independent Grammar A grammar consist of a list of rules

nsssispeechrecognitiondata.lib
Since
2.8

Inherits from

Constructor & Destructor Documentation

CSIGrammar(const TSIGrammarID)

IMPORT_C CSIGrammar ( const TSIGrammarID aGrammarID ) [protected]

Parameters

const TSIGrammarID aGrammarID

~CSIGrammar()

IMPORT_C ~CSIGrammar ( ) [virtual]

Destructor.

Member Functions Documentation

AddL(CSIRule *)

IMPORT_C void AddL ( CSIRule * aRule ) [virtual]
Use to add a rule to the grammar.
Since
2.8

Parameters

CSIRule * aRule - reference to CSIRule object.

AtL(TInt)

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

Parameters

TInt aIndex

ConstructL()

IMPORT_C void ConstructL ( ) [protected, virtual]

Count()

IMPORT_C TInt Count ( ) const [virtual]
Use to get the number of rules in the grammar
Since
2.8

DeleteL(const TSIRuleID)

IMPORT_C void DeleteL ( const TSIRuleID aRuleID ) [virtual]
Use to delete a rule to the grammar.
Since
2.8

Parameters

const TSIRuleID aRuleID - rule identifier.

ExternalizeL(RWriteStream &)

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

Parameters

RWriteStream & aStream

Find(const TSIRuleID)

IMPORT_C TInt Find ( const TSIRuleID aRuleID ) const [virtual]
Use to find a rule in the grammar based on rule Id.
Since
2.8

Parameters

const TSIRuleID aRuleID - rule identifier.

GrammarID()

IMPORT_C TSIGrammarID GrammarID ( ) const [virtual]
Use to retrieve the grammar Id of the result.
Since
2.8

InternalizeL(RReadStream &)

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

Parameters

RReadStream & aStream Data stream

NewL(const TSIGrammarID)

IMPORT_C CSIGrammar * NewL ( const TSIGrammarID aGrammarID ) [static]

Two-phased constructor.

Parameters

const TSIGrammarID aGrammarID

NewLC(const TSIGrammarID)

IMPORT_C CSIGrammar * NewLC ( const TSIGrammarID aGrammarID ) [static]

Parameters

const TSIGrammarID aGrammarID

RuleL(TSIRuleID)

IMPORT_C CSIRule & RuleL ( TSIRuleID aRuleID ) const [virtual]

Parameters

TSIRuleID aRuleID

Member Data Documentation

TSIGrammarID iGrammarID

TSIGrammarID iGrammarID [private]

TAny * iReserved

TAny * iReserved [private]

RPointerArray< CSIRule > iRuleArray

RPointerArray < CSIRule > iRuleArray [private]