SR_SemanticResult Struct Reference


Detailed Description

Semantic result.

Data Fields

ESR_ReturnCode(* getKeyCount )(struct SR_SemanticResult_t *self, size_t *count)
ESR_ReturnCode(* getKeyList )(struct SR_SemanticResult_t *self, LCHAR **list, size_t *size)
ESR_ReturnCode(* getValue )(struct SR_SemanticResult_t *self, const LCHAR *key, LCHAR *value, size_t *len)
ESR_ReturnCode(* destroy )(struct SR_SemanticResult_t *self)

Field Documentation

ESR_ReturnCode(* SR_SemanticResult::getKeyCount)(struct SR_SemanticResult_t *self, size_t *count)

Returns number of [key, value] pairs in the current results.

Parameters:
self SemanticResult handler
count The number keys

ESR_ReturnCode(* SR_SemanticResult::getKeyList)(struct SR_SemanticResult_t *self, LCHAR **list, size_t *size)

Given an array of pointers to LCHAR*, populates that array with pointers to the keys used internally by the recognition result. These keys should not be modified!

Parameters:
self SemanticResult handler
list [out] List of keys associated with n-best list entry.
size [in/out] Size of list. If the return code is ESR_BUFFER_OVERFLOW, the required size is returned in this variable.

ESR_ReturnCode(* SR_SemanticResult::getValue)(struct SR_SemanticResult_t *self, const LCHAR *key, LCHAR *value, size_t *len)

Returns copy of semantic value.

Parameters:
self SemanticResult handler
key The key to look up
value [out] The buffer used to hold the resulting value
len [in/out] Length of value argument. If the return code is ESR_BUFFER_OVERFLOW, the required length is returned in this variable.

ESR_ReturnCode(* SR_SemanticResult::destroy)(struct SR_SemanticResult_t *self)

Destroys a semantic result.

Parameters:
self SemanticResult handler


Generated on Thu May 1 15:37:28 2008 for SREC by  doxygen 1.5.3