exip  Alpha 0.5.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
schemaOutputUtils.h
Go to the documentation of this file.
1 /*==================================================================*\
2 | EXIP - Embeddable EXI Processor in C |
3 |--------------------------------------------------------------------|
4 | This work is licensed under BSD 3-Clause License |
5 | The full license terms and conditions are located in LICENSE.txt |
6 \===================================================================*/
7 
17 #ifndef SCHEMABUILDUTILS_H_
18 #define SCHEMABUILDUTILS_H_
19 
20 #include "procTypes.h"
21 #include "createGrammars.h"
22 
23 // Maximum number of characters in a variable name buffer
24 #define VAR_BUFFER_MAX_LENGTH 200
25 
26 typedef struct
27 {
28  char typeIdStr[20];
29  char uriIdStr[20];
30  char lnIdStr[20];
31 } IndexStrings;
32 
44 errorCode textGrammarOutput(QNameID qnameid, Index grIndex, EXIGrammar* gr, EXIPSchema* schema, FILE* out);
45 
56 errorCode recursiveTextGrammarOutput(QNameID qnameid, Index grIndex, EXIGrammar* gr, EXIPSchema* schema, FILE* out);
57 
66 void staticStringDefOutput(String* str, char* varName, FILE* out);
67 
74 void staticStringTblDefsOutput(UriTable* uriTbl, char* prefix, FILE* out);
75 
84 void staticPrefixOutput(PfxTable* pfxTbl, char* prefix, Index uriId, Deviations dvis, FILE* out);
85 
93 void staticProductionsOutput(EXIGrammar* gr, char* prefix, Index grId, FILE* out);
94 
102 void staticRulesOutput(EXIGrammar* gr, char* prefix, Index grId, FILE* out);
103 
110 void staticDocGrammarOutput(EXIGrammar* docGr, char* prefix, FILE* out);
111 
120 void staticLnEntriesOutput(LnTable* lnTbl, char* prefix, Index uriId, Deviations dvis, FILE* out);
121 
129 void staticUriTableOutput(UriTable* uriTbl, char* prefix, Deviations dvis, FILE* out);
130 
137 void staticEnumTableOutput(EXIPSchema* schema, char* prefix, FILE* out);
138 
139 
156 errorCode dynExipSchemaOutput(EXIPSchema* schema, char* prefix, unsigned char mask_specified,
157  unsigned char mask_strict, unsigned char mask_sc, unsigned char mask_preserve, FILE* out);
158 
159 #endif /* SCHEMABUILDUTILS_H_ */