LVGrammar::GetMetaDatakey

Return the key of the meta data indicated by the index.

Function

int GetMetaDataKey(int index)

Parameters

index

Index of the meta data. It should be in the range [0, LVGrammar::GetNumberOfMetaData).

Return Values

null

The index is not valid.

non-null

A pointer to the value string.

Example

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 = grammar.GetNumberOfMetaData(); // returns 2
const char* key = grammar.GetMetaDataKey(0);
//returns "description"
const char* value = grammar.GetMetaDataValue(1);
//returns "05/12/2005"

See Also


Complete Help Topic List | Speech Engine Product Information