exip  Alpha 0.5.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
build/gcc/pc/exipConfig.h File Reference

Configuration parameters of the EXIP library To be defined per application. More...

#include <stdlib.h>
#include <assert.h>

Go to the source code of this file.

Macros

#define ON   1
 
#define OFF   0
 
#define EXIP_DEBUG   ON
 
    Turn the debugging ON/OFF
More...
 
#define EXIP_DEBUG_LEVEL   INFO
 Sets the debugging level (INFO, WARNING or ERROR) More...
 
#define DEBUG_STREAM_IO   OFF
 Turns the debugging ON/OFF for the STREAM_IO module. More...
 
#define DEBUG_COMMON   OFF
 Turns the debugging ON/OFF for the COMMON module. More...
 
#define DEBUG_CONTENT_IO   OFF
 Turns the debugging ON/OFF for the CONTENT_IO module. More...
 
#define DEBUG_GRAMMAR   OFF
 Turns the debugging ON/OFF for the GRAMMAR module. More...
 
#define DEBUG_GRAMMAR_GEN   OFF
 Turns the debugging ON/OFF for the GRAMMAR_GEN module. More...
 
#define DEBUG_STRING_TBLS   OFF
 
    Turns the debugging ON/OFF for the STRING_TBLS module

How to debug More...

 
mem_group Define the memory allocation functions and freeing functions
#define EXIP_MALLOC   malloc
 malloc function More...
 
#define EXIP_REALLOC   realloc
 realloc function More...
 
#define EXIP_MFREE   free
 free function More...
 
#define HASH_TABLE_USE   ON
 Whether to use hash table for value partition table when in encoding mode. More...
 
#define INITIAL_HASH_TABLE_SIZE   6151
 The initial capacity of the hash tables. More...
 
#define MAX_HASH_TABLE_SIZE   32000
 The maximum capacity of the hash tables. More...
 
#define DYN_ARRAY_USE   ON
 Whether to use dynamic arrays. More...
 
#define GR_VOID_NON_TERMINAL   0xFFFFFF
 
#define EXIP_IMPLICIT_DATA_TYPE_CONVERSION   ON
 Affects encoding only! When an untyped value is expected in the EXI stream (encoded with String according to the spec) passing a typed value diferent from String will require a conversion. More...
 
#define EXI_PROFILE_DEFAULT   OFF
 Whether the EXIP library is conforming to the W3C EXI Profile specification. More...
 
#define VALUE_CROSSTABLE_USE   ON
 
#define BUILD_IN_GRAMMARS_USE   ON
 

Detailed Description

Date
Oct 13, 2010
Author
Rumen Kyusakov
Version
0.5
[Revision] $Id: exipConfig.h 328 2013-10-30 16:00:10Z kjussakov $

Definition in file build/gcc/pc/exipConfig.h.

Macro Definition Documentation

#define BUILD_IN_GRAMMARS_USE   ON

Definition at line 146 of file build/gcc/pc/exipConfig.h.

#define DEBUG_COMMON   OFF

Definition at line 50 of file build/gcc/pc/exipConfig.h.

#define DEBUG_CONTENT_IO   OFF

Definition at line 51 of file build/gcc/pc/exipConfig.h.

#define DEBUG_GRAMMAR   OFF

Definition at line 52 of file build/gcc/pc/exipConfig.h.

#define DEBUG_GRAMMAR_GEN   OFF

Definition at line 53 of file build/gcc/pc/exipConfig.h.

#define DEBUG_STREAM_IO   OFF

Definition at line 49 of file build/gcc/pc/exipConfig.h.

#define DEBUG_STRING_TBLS   OFF

Definition at line 54 of file build/gcc/pc/exipConfig.h.

#define DYN_ARRAY_USE   ON

Definition at line 88 of file build/gcc/pc/exipConfig.h.

#define EXI_PROFILE_DEFAULT   OFF

EXI Profile helps reduce RAM and programming memory and can be used only for schema mode processing. Use SCHEMA_ID_EMPTY schemaId switch to enable schema mode for otherwise schema-less streams. The value of OFF disable the EXI Profile mode i.e. full featured EXI processing. Set to ON to enable EXI Profile default (most restrictive) mode of operation where:

  • maximumNumberOfBuiltInElementGrammars parameter value is set to 0
  • maximumNumberOfBuiltInProductions parameter value is set to 0
  • localValuePartitions parameter value is set to 0.

Note that encoding/decoding the Profile parameters in the header is not supported and most likely will never be. Use only out-of-band communication of the EXI Profile default mode!

See Also
http://www.w3.org/TR/exi-profile/

Definition at line 127 of file build/gcc/pc/exipConfig.h.

#define EXIP_DEBUG   ON

Definition at line 46 of file build/gcc/pc/exipConfig.h.

#define EXIP_DEBUG_LEVEL   INFO

Definition at line 47 of file build/gcc/pc/exipConfig.h.

#define EXIP_IMPLICIT_DATA_TYPE_CONVERSION   ON

If EXIP_IMPLICIT_DATA_TYPE_CONVERSION is enabled the EXIP library takes care of that. Otherwise, if disabled, the applications need to make sure they always pass String typed data when String/untyped value is expected in the EXI stream. For example, assume a schema-less stream and a value for an element encoded with serialize.intData(): 1) When EXIP_IMPLICIT_DATA_TYPE_CONVERSION == OFF serialize.intData() will return an error 2) When EXIP_IMPLICIT_DATA_TYPE_CONVERSION == ON serialize.intData() will first convert the int value to string and then encode it as a string in the EXI stream

Definition at line 108 of file build/gcc/pc/exipConfig.h.

#define EXIP_MALLOC   malloc

Definition at line 72 of file build/gcc/pc/exipConfig.h.

#define EXIP_MFREE   free

Definition at line 74 of file build/gcc/pc/exipConfig.h.

#define EXIP_REALLOC   realloc

Definition at line 73 of file build/gcc/pc/exipConfig.h.

#define GR_VOID_NON_TERMINAL   0xFFFFFF

Definition at line 92 of file build/gcc/pc/exipConfig.h.

#define HASH_TABLE_USE   ON

Definition at line 83 of file build/gcc/pc/exipConfig.h.

#define INITIAL_HASH_TABLE_SIZE   6151

Definition at line 84 of file build/gcc/pc/exipConfig.h.

#define MAX_HASH_TABLE_SIZE   32000

Definition at line 85 of file build/gcc/pc/exipConfig.h.

#define OFF   0

Definition at line 25 of file build/gcc/pc/exipConfig.h.

#define ON   1

Definition at line 24 of file build/gcc/pc/exipConfig.h.

#define VALUE_CROSSTABLE_USE   ON

Definition at line 141 of file build/gcc/pc/exipConfig.h.