options.h File Reference
#include <zorba/config.h>
Go to the source code of this file.
|
Classes |
| struct | Zorba_CompilerHints |
| | Set of hints that can be passed to the query compiler. More...
|
Typedefs |
| typedef struct Zorba_CompilerHints | Zorba_CompilerHints_t |
| | Set of hints that can be passed to the query compiler.
|
typedef struct
Zorba_SerializerOptions | Zorba_SerializerOptions_t |
Enumerations |
| enum | Zorba_byte_order_mark_t { ZORBA_BYTE_ORDER_MARK_YES,
ZORBA_BYTE_ORDER_MARK_NO
} |
| enum | Zorba_escape_uri_attributes_t { ZORBA_ESCAPE_URI_ATTRIBUTES_YES,
ZORBA_ESCAPE_URI_ATTRIBUTES_NO
} |
| enum | Zorba_include_content_type_t { ZORBA_INCLUDE_CONTENT_TYPE_YES,
ZORBA_INCLUDE_CONTENT_TYPE_NO
} |
| enum | Zorba_indent_t { ZORBA_INDENT_YES,
ZORBA_INDENT_NO
} |
| enum | Zorba_normalization_form_t {
ZORBA_NORMALIZATION_FORM_NFC,
ZORBA_NORMALIZATION_FORM_NFD,
ZORBA_NORMALIZATION_FORM_NFKC,
ZORBA_NORMALIZATION_FORM_NFKD,
ZORBA_NORMALIZATION_FORM_FULLY_normalized,
ZORBA_NORMALIZATION_FORM_NONE
} |
| enum | Zorba_omit_xml_declaration_t { ZORBA_OMIT_XML_DECLARATION_YES,
ZORBA_OMIT_XML_DECLARATION_NO
} |
| enum | Zorba_opt_level_t { ZORBA_OPT_LEVEL_O0,
ZORBA_OPT_LEVEL_O1
} |
| | The optimization level used for optimizing the query. More...
|
| enum | Zorba_serialization_method_t { ZORBA_SERIALIZATION_METHOD_XML,
ZORBA_SERIALIZATION_METHOD_HTML,
ZORBA_SERIALIZATION_METHOD_XHTML,
ZORBA_SERIALIZATION_METHOD_TEXT
} |
| enum | Zorba_standalone_t { ZORBA_STANDALONE_YES,
ZORBA_STANDALONE_NO,
ZORBA_STANDALONE_OMIT
} |
| enum | Zorba_undeclare_prefixes_t { ZORBA_UNDECLARE_PREFIXES_YES,
ZORBA_UNDECLARE_PREFIXES_NO
} |
Functions |
| ZORBA_DLL_PUBLIC void | Zorba_CompilerHints_default (Zorba_CompilerHints_t *) |
| | Helper function for C to set default values ComplilerHints struct.
|
ZORBA_DLL_PUBLIC
Zorba_SerializerOptions_t * | Zorba_SerializerOptions_default () |
| | Helper function to create a Zorba_SerializerOptions_t struct because of missing default constructor.
|
| ZORBA_DLL_PUBLIC void | Zorba_SerializerOptions_free (Zorba_SerializerOptions_t *serializerOptions) |
| | Helper function to delete a Zorba_SerializerOptions_t struct.
|
| ZORBA_DLL_PUBLIC void | Zorba_SerializerOptions_set (Zorba_SerializerOptions_t *serializerOptions, const char *parameter, const char *value) |
| | Helper function to set an option in a Zorba_SerializerOptions_t structure.
|
Typedef Documentation
Set of hints that can be passed to the query compiler.
An instance of this class can be passed to the compileQuery function of the Zorba class or the compile function of this class. The members of this class represent hints that are passed to the query compiler. For example, whether optimization of the query should be done (O1) or not (O0).
example_6 in file simple.cpp shows an example how CompilerHints can be used.
Enumeration Type Documentation
- Enumerator:
-
| ZORBA_BYTE_ORDER_MARK_YES |
|
| ZORBA_BYTE_ORDER_MARK_NO |
|
Definition at line 65 of file options.h.
- Enumerator:
-
| ZORBA_ESCAPE_URI_ATTRIBUTES_YES |
|
| ZORBA_ESCAPE_URI_ATTRIBUTES_NO |
|
Definition at line 70 of file options.h.
- Enumerator:
-
| ZORBA_INCLUDE_CONTENT_TYPE_YES |
|
| ZORBA_INCLUDE_CONTENT_TYPE_NO |
|
Definition at line 75 of file options.h.
- Enumerator:
-
| ZORBA_INDENT_YES |
|
| ZORBA_INDENT_NO |
|
Definition at line 80 of file options.h.
- Enumerator:
-
| ZORBA_NORMALIZATION_FORM_NFC |
|
| ZORBA_NORMALIZATION_FORM_NFD |
|
| ZORBA_NORMALIZATION_FORM_NFKC |
|
| ZORBA_NORMALIZATION_FORM_NFKD |
|
| ZORBA_NORMALIZATION_FORM_FULLY_normalized |
|
| ZORBA_NORMALIZATION_FORM_NONE |
|
Definition at line 85 of file options.h.
- Enumerator:
-
| ZORBA_OMIT_XML_DECLARATION_YES |
|
| ZORBA_OMIT_XML_DECLARATION_NO |
|
Definition at line 94 of file options.h.
The optimization level used for optimizing the query.
- Enumerator:
-
| ZORBA_OPT_LEVEL_O0 |
Don't use any optimization.
|
| ZORBA_OPT_LEVEL_O1 |
Use basic optimizations (e.g. removing sorting, removing duplicate elimination, or constant folding).
|
Definition at line 27 of file options.h.
- Enumerator:
-
| ZORBA_SERIALIZATION_METHOD_XML |
|
| ZORBA_SERIALIZATION_METHOD_HTML |
|
| ZORBA_SERIALIZATION_METHOD_XHTML |
|
| ZORBA_SERIALIZATION_METHOD_TEXT |
|
Definition at line 58 of file options.h.
- Enumerator:
-
| ZORBA_STANDALONE_YES |
|
| ZORBA_STANDALONE_NO |
|
| ZORBA_STANDALONE_OMIT |
|
Definition at line 99 of file options.h.
- Enumerator:
-
| ZORBA_UNDECLARE_PREFIXES_YES |
|
| ZORBA_UNDECLARE_PREFIXES_NO |
|
Definition at line 105 of file options.h.
Function Documentation
Helper function for C to set default values ComplilerHints struct.
- Return values:
-
| Zorba_CompilerHints_t | with default member values |
Helper function to create a Zorba_SerializerOptions_t struct because of missing default constructor.
C++ code can delete the returned Zorba_SerializerOptions_t* struct, while C code must call Zorba_SerializerOptions_free().
- Return values:
-
| Zorba_CompilerHints_t | with default member values |
Helper function to delete a Zorba_SerializerOptions_t struct.
- Return values:
-
| Zorba_CompilerHints_t | with default member values |
| ZORBA_DLL_PUBLIC void Zorba_SerializerOptions_set |
( |
Zorba_SerializerOptions_t * |
serializerOptions, |
|
|
const char * |
parameter, |
|
|
const char * |
value | |
|
) |
| | |
Helper function to set an option in a Zorba_SerializerOptions_t structure.
- Parameters:
-
| parameter | the serializer parameter to be configured |
| value | the value to which the parameter should be set |
- Return values:
-
| Zorba_CompilerHints_t | with default member values |