Implement utility functions for storing EXIPSchema instances as static code.
More...
Go to the source code of this file.
|
void | staticStringDefOutput (String *str, char *varName, FILE *out) |
| STATIC CODE OUTPUT DEFINITIONS. More...
|
|
void | staticStringTblDefsOutput (UriTable *uriTbl, char *prefix, FILE *out) |
| Builds all the CharType* arrays of all strings in the string tables of a schema as a static code representation. More...
|
|
void | staticProductionsOutput (EXIGrammar *gr, char *prefix, Index grId, FILE *out) |
| Builds all grammar productions for a grammar as a static code representation and stores it in out. More...
|
|
void | staticRulesOutput (EXIGrammar *gr, char *prefix, Index grId, FILE *out) |
| Builds all grammar rules for a grammar as a static code representation and stores it in out. More...
|
|
void | staticDocGrammarOutput (EXIGrammar *docGr, char *prefix, FILE *out) |
| Builds the document grammar as a static code representation and stores it in out. More...
|
|
void | staticPrefixOutput (PfxTable *pfxTbl, char *prefix, Index uriId, Deviations dvis, FILE *out) |
| Builds an prefix table static code representation and stores it in out. More...
|
|
void | staticLnEntriesOutput (LnTable *lnTbl, char *prefix, Index uriId, Deviations dvis, FILE *out) |
| Builds all the LN entries in a LnTable as a static code representation and stores it in out. More...
|
|
void | staticUriTableOutput (UriTable *uriTbl, char *prefix, Deviations dvis, FILE *out) |
| Builds all the URI entries in the UriTable as a static code representation and stores it in out. More...
|
|
void | staticEnumTableOutput (EXIPSchema *schema, char *prefix, FILE *out) |
| Builds all the Enumeration definitions. More...
|
|
- Date
- May 7, 2012
- Author
- Rumen Kyusakov
- Version
- 0.5
- [Revision] $Id: staticOutputUtils.c 352 2014-11-25 16:37:24Z kjussakov $
Definition in file staticOutputUtils.c.
void staticDocGrammarOutput |
( |
EXIGrammar * |
docGr, |
|
|
char * |
prefix, |
|
|
FILE * |
out |
|
) |
| |
- Parameters
-
[in] | docGr | document grammar from the EXIPSchema object |
[in] | prefix | prefix for the definitions |
[out] | out | output stream |
Definition at line 169 of file staticOutputUtils.c.
void staticEnumTableOutput |
( |
EXIPSchema * |
schema, |
|
|
char * |
prefix, |
|
|
FILE * |
out |
|
) |
| |
- Parameters
-
[in] | schema | EXISchema instance |
[in] | prefix | prefix for the definitions |
[out] | out | output stream |
Definition at line 325 of file staticOutputUtils.c.
- Parameters
-
[in] | lnTbl | the LnTable instance |
[in] | prefix | prefix for the definitions |
[in] | uriId | uriId for that LnTable |
[in] | dvis | the number of deviations in url, ln, pfx and grammars |
[out] | out | output stream |
Definition at line 232 of file staticOutputUtils.c.
- Parameters
-
[in] | pfxTbl | prefix string table to be stored |
[in] | prefix | prefix for the definitions |
[in] | uriId | uriId of the prefix |
[in] | dvis | the number of deviations in url, ln, pfx and grammars |
[out] | out | output stream |
Definition at line 209 of file staticOutputUtils.c.
void staticProductionsOutput |
( |
EXIGrammar * |
gr, |
|
|
char * |
prefix, |
|
|
Index |
grId, |
|
|
FILE * |
out |
|
) |
| |
- Parameters
-
[in] | gr | EXI grammar containing the productions to be stored |
[in] | prefix | prefix for the definitions |
[in] | grId | index of the grammar in the SchemmaGrammarTable |
[out] | out | output stream |
Definition at line 105 of file staticOutputUtils.c.
void staticRulesOutput |
( |
EXIGrammar * |
gr, |
|
|
char * |
prefix, |
|
|
Index |
grId, |
|
|
FILE * |
out |
|
) |
| |
- Parameters
-
[in] | gr | EXI grammar containing the productions to be stored |
[in] | prefix | prefix for the definitions |
[in] | grId | index of the grammar in the SchemmaGrammarTable |
[out] | out | output stream |
Definition at line 136 of file staticOutputUtils.c.
void staticStringDefOutput |
( |
String * |
str, |
|
|
char * |
varName, |
|
|
FILE * |
out |
|
) |
| |
Builds a static code representation of a CharType* array of a string
- Parameters
-
[in] | str | the String instance |
[in] | varName | the name of the static code variable |
[out] | out | output stream |
Definition at line 53 of file staticOutputUtils.c.
void staticStringTblDefsOutput |
( |
UriTable * |
uriTbl, |
|
|
char * |
prefix, |
|
|
FILE * |
out |
|
) |
| |
- Parameters
-
[in] | uriTbl | the UriTable instance containing the string table entries |
[in] | prefix | prefix for the definitions |
[out] | out | output stream |
Definition at line 74 of file staticOutputUtils.c.
void staticUriTableOutput |
( |
UriTable * |
uriTbl, |
|
|
char * |
prefix, |
|
|
Deviations |
dvis, |
|
|
FILE * |
out |
|
) |
| |
- Parameters
-
[in] | uriTbl | the UriTable instance |
[in] | prefix | prefix for the definitions |
[in] | dvis | the number of deviations in url, ln, pfx and grammars |
[out] | out | output stream |
Definition at line 274 of file staticOutputUtils.c.