exip  Alpha 0.5.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Enumerations | Functions
initSchemaInstance.h File Reference

Initialization functions for the EXIPSchema object. More...

#include "errorHandle.h"
#include "procTypes.h"
#include "dynamicArray.h"
#include "memManagement.h"

Go to the source code of this file.

Typedefs

typedef enum InitSchemaType InitSchemaType
 

Enumerations

enum  InitSchemaType { INIT_SCHEMA_SCHEMA_LESS_MODE = 0, INIT_SCHEMA_BUILD_IN_TYPES = 1, INIT_SCHEMA_SCHEMA_ENABLED = 2 }
 

Functions

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...
 
errorCode initSchema (EXIPSchema *schema, InitSchemaType initializationType)
 Initialize a EXIPSchema object. More...
 

Detailed Description

Date
Nov 28, 2011
Author
Rumen Kyusakov
Version
0.5
[Revision] $Id: initSchemaInstance.h 348 2014-11-21 12:34:51Z kjussakov $

Definition in file initSchemaInstance.h.

Typedef Documentation

Definition at line 41 of file initSchemaInstance.h.

Enumeration Type Documentation

Enumerator
INIT_SCHEMA_SCHEMA_LESS_MODE 

Only the string tables and the SchemaGrammarTable are used.

INIT_SCHEMA_BUILD_IN_TYPES 

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.

INIT_SCHEMA_SCHEMA_ENABLED 

Full schema information with schema-informed grammars.

Definition at line 27 of file initSchemaInstance.h.

Function Documentation

errorCode createBuiltInTypesDefinitions ( SimpleTypeTable simpleTypeTable,
AllocList memList 
)
Parameters
[in,out]simpleTypeTableDynamic array storing the simple types definitions
[in,out]memListmemory allocations
Returns
Error handling code

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.

Parameters
[in,out]schemaschema for which the grammars are generated
Returns
Error handling code

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.

Parameters
[in,out]schemaa resulting EXIPSchema container
[in]initializationTypeone of INIT_SCHEMA_SCHEMA_LESS_MODE, INIT_SCHEMA_BUILD_IN_TYPES or INIT_SCHEMA_SCHEMA_ENABLED
Returns
Error handling code

Definition at line 34 of file initSchemaInstance.c.