|
exip
Alpha 0.5.4
|
Implements the initialization functions for the EXIPSchema object. More...
Go to the source code of this file.
Macros | |
| #define | DEFAULT_GRAMMAR_TABLE 300 |
| #define | DEFAULT_SIMPLE_GRAMMAR_TABLE 75 |
| #define | DEFAULT_ENUM_TABLE 5 |
Functions | |
| errorCode | initSchema (EXIPSchema *schema, InitSchemaType initializationType) |
| Initialize a EXIPSchema object. More... | |
| errorCode | generateBuiltInTypesGrammars (EXIPSchema *schema) |
| Generate a Schema-informed Type and TypeEmpty Grammars for all built-in XML Schema Types. More... | |
| errorCode | createBuiltInTypesDefinitions (SimpleTypeTable *simpleTypeTable, AllocList *memList) |
| Populate initial simple type array with the build-in simple types. More... | |
Definition in file initSchemaInstance.c.
| #define DEFAULT_ENUM_TABLE 5 |
Definition at line 31 of file initSchemaInstance.c.
| #define DEFAULT_GRAMMAR_TABLE 300 |
Definition at line 23 of file initSchemaInstance.c.
| #define DEFAULT_SIMPLE_GRAMMAR_TABLE 75 |
Definition at line 27 of file initSchemaInstance.c.
| errorCode createBuiltInTypesDefinitions | ( | SimpleTypeTable * | simpleTypeTable, |
| AllocList * | memList | ||
| ) |
| [in,out] | simpleTypeTable | Dynamic array storing the simple types definitions |
| [in,out] | memList | memory allocations |
Definition at line 205 of file initSchemaInstance.c.
| errorCode generateBuiltInTypesGrammars | ( | EXIPSchema * | schema) |
It is used by generateSchemaInformedGrammars() and when the value of the "schemaId" element is empty, no user defined schema information is used for processing the EXI body; however, the built-in XML schema types are available for use in the EXI body.
| [in,out] | schema | schema for which the grammars are generated |
Add the grammar to the schema grammar table
Definition at line 79 of file initSchemaInstance.c.
| errorCode initSchema | ( | EXIPSchema * | schema, |
| InitSchemaType | initializationType | ||
| ) |
Generate all build in Schema-informed Element and Type Grammars when not in schema-less mode. It is also used during grammar generation.
| [in,out] | schema | a resulting EXIPSchema container |
| [in] | initializationType | one of INIT_SCHEMA_SCHEMA_LESS_MODE, INIT_SCHEMA_BUILD_IN_TYPES or INIT_SCHEMA_SCHEMA_ENABLED |
Definition at line 34 of file initSchemaInstance.c.
1.8.4