options.h File Reference

Go to the source code of this file.

Classes

struct  Zorba_CompilerHints
 Set of hints that can be passed to the query compiler. More...
struct  Zorba_SerializerOptions
 Options that configure the serialization process of a query result. 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
 Options that configure the serialization process of a query result.

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_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_CompilerHints_t Zorba_CompilerHints_default ()
 Helper function for C to create a Zorba_CompilerHints_t struct because of missing default constructor.
Zorba_SerializerOptions_t Zorba_SerializerOptions_default ()
 Helper function for C to create a Zorba_SerializerOptions_t struct because of missing default constructor.


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.

Options that configure the serialization process of a query result.

See http://www.w3.org/TR/2005/CR-xslt-xquery-serialization-20051103/.

This struct defines options that can be passed to the serialization process of a query result. An instance of this class can be passed to the serialize function.

File serialization.cpp contains examples that show how to use the SerializerOptions.


Enumeration Type Documentation

Enumerator:
ZORBA_BYTE_ORDER_MARK_YES 
ZORBA_BYTE_ORDER_MARK_NO 

Definition at line 57 of file options.h.

Enumerator:
ZORBA_ESCAPE_URI_ATTRIBUTES_YES 
ZORBA_ESCAPE_URI_ATTRIBUTES_NO 

Definition at line 62 of file options.h.

Enumerator:
ZORBA_INCLUDE_CONTENT_TYPE_YES 
ZORBA_INCLUDE_CONTENT_TYPE_NO 

Definition at line 67 of file options.h.

Enumerator:
ZORBA_INDENT_YES 
ZORBA_INDENT_NO 

Definition at line 72 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 77 of file options.h.

Enumerator:
ZORBA_OMIT_XML_DECLARATION_YES 
ZORBA_OMIT_XML_DECLARATION_NO 

Definition at line 86 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 20 of file options.h.

Enumerator:
ZORBA_SERIALIZATION_METHOD_XML 
ZORBA_SERIALIZATION_METHOD_HTML 
ZORBA_SERIALIZATION_METHOD_TEXT 

Definition at line 51 of file options.h.

Enumerator:
ZORBA_STANDALONE_YES 
ZORBA_STANDALONE_NO 
ZORBA_STANDALONE_OMIT 

Definition at line 91 of file options.h.

Enumerator:
ZORBA_UNDECLARE_PREFIXES_YES 
ZORBA_UNDECLARE_PREFIXES_NO 

Definition at line 97 of file options.h.


Function Documentation

Zorba_CompilerHints_t Zorba_CompilerHints_default (  ) 

Helper function for C to create a Zorba_CompilerHints_t struct because of missing default constructor.

Return values:
Zorba_CompilerHints_t with default member values

Zorba_SerializerOptions_t Zorba_SerializerOptions_default (  ) 

Helper function for C to create a Zorba_SerializerOptions_t struct because of missing default constructor.

Return values:
Zorba_CompilerHints_t with default member values