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

Implementation of functions for converting a TreeTable structure containing the schema definitions to EXIPGrammar object. More...

#include "treeTableSchema.h"
#include "stringManipulate.h"
#include "genUtils.h"
#include "memManagement.h"
#include "initSchemaInstance.h"
#include "grammars.h"

Go to the source code of this file.

Data Structures

struct  GlobalElemQNameTable
 
struct  buildContext
 Context/State data used to generate EXIPSchema grammars from a source TreeTable (schema tree). More...
 
struct  localAttrNames
 Used for the attribute grammar generation. More...
 
struct  subsGroupElTbl
 A structure used during substitution group processing. More...
 

Macros

#define DEFAULT_GLOBAL_QNAME_COUNT   200
 

Typedefs

typedef struct GlobalElemQNameTable GlobalElemQNameTable
 
typedef struct buildContext BuildContext
 

Functions

errorCode convertTreeTablesToExipSchema (TreeTable *treeT, unsigned int count, EXIPSchema *schema, SubstituteTable *subsTbl)
 Given types resolved TreeTable objects that are created from a XML schema files, builds the EXIP grammars in the EXIPSchema object. More...
 

Detailed Description

Date
Mar 13, 2012
Author
Rumen Kyusakov
Robert Cragie
Version
0.5
[Revision] $Id: treeTableToGrammars.c 355 2014-11-26 16:19:42Z kjussakov $

Definition in file treeTableToGrammars.c.

Macro Definition Documentation

#define DEFAULT_GLOBAL_QNAME_COUNT   200

Definition at line 25 of file treeTableToGrammars.c.

Typedef Documentation

typedef struct buildContext BuildContext

Definition at line 61 of file treeTableToGrammars.c.

Definition at line 43 of file treeTableToGrammars.c.

Function Documentation

errorCode convertTreeTablesToExipSchema ( TreeTable treeT,
unsigned int  count,
EXIPSchema schema,
SubstituteTable subsTbl 
)
Parameters
[in]treeTan array of tree table objects
[in]countthe number of tree table objects
[out]schemaschema information used for processing EXI streams in schema mode
[in]subsTblIn case of substitutionGroups in the schema maps the heads of the substitutionGroups to their members
Returns
Error handling code

For every tree table

For every global entry in the tree table

Definition at line 294 of file treeTableToGrammars.c.