Browse
 
Tools
Rss Categories

LVGrammar::GetMetaDataKey

Reference Number: AA-00877 Views: 6969 0 Rating/ Voters

Return the value 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, (GetNumberOfMetaData() - 1) ].

Return Values

NULL

The index is not valid.

Non-NULL

A pointer to the value string.

Example

If the grammar contains the following lines:

meta 'description' is 'example grammar';

meta 'date' is '05/12/2005';

You can access meta data as follows:

int count = GetNumberOfMetaData(grammar); // Returns 2

const char* key = GetMetaDataKey(grammar, 0); // Returns "description"

const char* value = GetMetaDataValue(grammar, 1); // Returns "05/12/2005"

See Also