Browse
 
Tools
Rss Categories

LVSpeechPort::IsGrammarLoaded

Reference Number: AA-00793 Views: 7390 0 Rating/ Voters

Check if a grammar has already been loaded.

Function

  • bool IsGrammarLoaded(const char* gram_name)

Parameters

gram_name

The identifier for the grammar being queried. This is the same identifier you gave the grammar when you loaded it.

Return Values

true

Indicates that a grammar was found with the label gram_name in the space of application-level grammars.

false

Indicates that the grammar has not been loaded.

Remarks

This function only tells you if a grammar with the name gram_name is loaded. It does not tell you if there are two identical grammar bodies loaded.

See Also