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_CCSIGrammar(const TSIGrammarIDaGrammarID)[protected]

Parameters

const TSIGrammarID aGrammarID

~CSIGrammar()

IMPORT_C~CSIGrammar()[virtual]

Destructor.

Member Functions Documentation

AddL(CSIRule *)

IMPORT_C voidAddL(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(TIntaIndex)const [virtual]
Use to return a rule based at an index.
Since
2.8

Parameters

TInt aIndex

ConstructL()

IMPORT_C voidConstructL()[protected, virtual]

Count()

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

DeleteL(const TSIRuleID)

IMPORT_C voidDeleteL(const TSIRuleIDaRuleID)[virtual]
Use to delete a rule to the grammar.
Since
2.8

Parameters

const TSIRuleID aRuleID- rule identifier.

ExternalizeL(RWriteStream &)

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

Parameters

RWriteStream & aStream

Find(const TSIRuleID)

IMPORT_C TIntFind(const TSIRuleIDaRuleID)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 TSIGrammarIDGrammarID()const [virtual]
Use to retrieve the grammar Id of the result.
Since
2.8

InternalizeL(RReadStream &)

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

Parameters

RReadStream & aStreamData stream

NewL(const TSIGrammarID)

IMPORT_C CSIGrammar *NewL(const TSIGrammarIDaGrammarID)[static]

Two-phased constructor.

Parameters

const TSIGrammarID aGrammarID

NewLC(const TSIGrammarID)

IMPORT_C CSIGrammar *NewLC(const TSIGrammarIDaGrammarID)[static]

Parameters

const TSIGrammarID aGrammarID

RuleL(TSIRuleID)

IMPORT_C CSIRule &RuleL(TSIRuleIDaRuleID)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]