Flags

Details

class Xmlb.BuilderCompileFlags(value)

Bases: GLib.Flags

The flags for converting to XML.

NONE = 0

No extra flags to use

WATCH_BLOB = 16

Watch the XMLB file for changes

NATIVE_LANGS = 2

Only load native languages

IGNORE_GUID = 32

Ignore the cache GUID value

IGNORE_INVALID = 4

Ignore invalid files without an error

SINGLE_LANG = 8

Only store a single language

class Xmlb.BuilderNodeFlags(value)

Bases: GLib.Flags

The flags used when building a node.

NONE = 0

No extra flags to use

IGNORE = 1

Do not include this node in the silo

LITERAL_TEXT = 2

Assume the node CDATA is already valid

HAS_TEXT = 4

If the node has leading text

HAS_TAIL = 8

If the node has trailing text

class Xmlb.BuilderSourceFlags(value)

Bases: GLib.Flags

The flags for converting to XML.

NONE = 0

No extra flags to use

LITERAL_TEXT = 1

Do not attempt to repair XML whitespace

WATCH_FILE = 2

Watch the source file for changes

class Xmlb.MachineDebugFlags(value)

Bases: GLib.Flags

The flags to control the amount of debugging is generated.

NONE = 0

No debug flags to use

SHOW_STACK = 1

Show the stack addition and removal

SHOW_PARSING = 2

Show the XPath predicate parsing

SHOW_OPTIMIZER = 4

Show the optimizer operation

class Xmlb.MachineParseFlags(value)

Bases: GLib.Flags

The flags to control the parsing behaviour.

NONE = 0

No flags set

OPTIMIZE = 1

Run an optimization pass on the predicate

class Xmlb.NodeExportFlags(value)

Bases: GLib.Flags

The flags for converting to XML.

NONE = 0

No extra flags to use

ADD_HEADER = 1

Add an XML header to the data

ONLY_CHILDREN = 16

Only export the children of the node

FORMAT_MULTILINE = 2

Split up children with a newline

FORMAT_INDENT = 4

Indent the XML by child depth

INCLUDE_SIBLINGS = 8

Include the siblings when converting

class Xmlb.OpcodeFlags(value)

Bases: GLib.Flags

The opcode flags. The values have been carefully chosen so that a simple bitmask can be done to know how to compare for equality.

function─┐ ┌─string bound──┐ │ │ ┌──integer │ │ │ │ X X X X X X X 8 4 2 1

UNKNOWN = 0
INTEGER = 1

Integer value set

BOOLEAN = 16
TEXT = 2

Text value set

FUNCTION = 4

An operator

BOUND = 8

A bound value, assigned later

class Xmlb.QueryFlags(value)

Bases: GLib.Flags

The flags used fo query.

NONE = 0

No extra flags to use

OPTIMIZE = 1

Optimize the query when possible

USE_INDEXES = 2

Use the indexed parameters

REVERSE = 4

Reverse the results order

class Xmlb.SiloLoadFlags(value)

Bases: GLib.Flags

The flags for loading a silo.

NONE = 0

No extra flags to use

NO_MAGIC = 1

No not check header signature

WATCH_BLOB = 2

Watch the XMLB file for changes

class Xmlb.SiloProfileFlags(value)

Bases: GLib.Flags

The flags used when profiling a silo.

NONE = 0

No extra flags to use

DEBUG = 1

Output profiling as debug

APPEND = 2

Save profiling in an appended string

XPATH = 4

Save XPATH queries