Return the value of the meta data indicated by the index.
int LVGrammar_GetMetaDataValue(HGRAMMAR hgram, int index)
hgram
A handle to the grammar.
index
Index of the meta data. It should be in the range [0, LVGrammar_GetNumberOfMetaData).
null
The index is not valid.
non-null
A pointer to the value string.
If the grammar has following lines:
meta 'description' is 'example grammar';
meta 'date' is '05/12/2005';
You can access meta data as follows:
int count = LVGrammar_GetNumberOfMetaData(grammar); // returns 2
const char* key = LVGrammar_GetMetaDataKey(grammar, 0); // returns "description"
const char* value = LVGrammar_GetMetaDataValue(grammar, 1); // returns "05/12/2005"
Complete Help Topic List | Speech Engine Product Information