#include <SpeechRecognitionDataDevASR.h>
Link against:
speechrecognitiondata.lib
This item is not part of the S60 5th Edition SDK
class CSDResult : public CBase;
Description
Class to encapsulate a Recognition Result
Derivation
CBase
-
Base class for all classes to be instantiated on the heap.
CSDResult
-
Class to encapsulate a Recognition Result
Members
Defined in CSDResult
:
Inherited from CBase
:
Construction and destruction
IMPORT_C ~CSDResult();
Description
Destructor.
IMPORT_C static CSDResult* NewL();
Description
Instantiates an instance of a CSDResult.
Return value
IMPORT_C static CSDResult* NewLC();
Description
Instantiates an instance of CSDResult and leaves a pointer on the cleanup stack.
Return value
IMPORT_C static CSDResult* NewL(TGrammarID aGrammarID, TRuleID aRuleID);
Description
Instantiates an instance of a CSDResult.
Parameters
TGrammarID aGrammarID |
The grammar identifier.
|
TRuleID aRuleID |
The rule identifier.
|
|
Return value
NewLC(TGrammarID,TRuleID)
IMPORT_C static CSDResult* NewLC(TGrammarID aGrammarID, TRuleID aRuleID);
Description
Instantiates an instance of a CSDResult and leaves a pointer on the cleanup stack.
Parameters
TGrammarID aGrammarID |
The grammar identifier.
|
TRuleID aRuleID |
The rule identifier.
|
|
Return value
IMPORT_C void SetGrammarID(TGrammarID aGrammarID);
Description
Sets the grammar ID on the result.
Parameters
TGrammarID aGrammarID |
The grammar identifier.
|
|
IMPORT_C TGrammarID GrammarID() const;
Description
Returns the grammar ID of the result.
Return value
TGrammarID
|
The grammar identifier.
|
|
IMPORT_C void SetRuleID(TRuleID aRuleID);
Description
Sets the rule ID of the result.
Parameters
TRuleID aRuleID |
The rule identifier.
|
|
IMPORT_C TRuleID RuleID() const;
Description
Returns the rule ID of the result.
Return value
TRuleID
|
The rule identifier.
|
|
IMPORT_C void SetScore(const TInt32 aScore);
Description
Sets the score for this result.
Parameters
const TInt32 aScore |
The score of this result.
|
|
IMPORT_C TInt32 Score() const;
Description
Returns the score of this result.
Return value
TInt32
|
The score of this result.
|
|