Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
afw_query_criteria_s Struct Reference

Parsed query criteria. More...

#include <afw_query_criteria.h>

Data Fields

const afw_utf8_torigin_query_string
 
const afw_object_tquery_object
 
const afw_utf8_t *const * select
 
const afw_query_criteria_filter_entry_tfilter
 
const afw_query_criteria_filter_entry_ttree
 
const afw_query_criteria_sort_entry_tfirst_sort
 
const afw_object_type_tobject_type
 

Detailed Description

Parsed query criteria.

This struct represents a parsed query.

Member filter and tree represent the same query in two different ways. An implementation of afw_adaptor_session should use the one that is easiest for it to process.

To process filter, evaluate the entry and iteratively follow the appropriate on_true or on_false link until the link is AFW_QUERY_CRITERIA_TRUE ((void *) 1) or AFW_QUERY_CRITERIA_FALSE ((void *) 0). Using this traversal, there will be no "and" or "or" operators.

To process tree, recursively processing "and" and "or" operators by following the first_sibling link then the next_sibling link of each entry.

Definition at line 217 of file afw_query_criteria.h.


The documentation for this struct was generated from the following file: