Adaptive Framework
0.9.0
|
Parsed query criteria. More...
#include <afw_query_criteria.h>
Data Fields | |
const afw_utf8_t * | origin_query_string |
const afw_object_t * | query_object |
const afw_utf8_t *const * | select |
const afw_query_criteria_filter_entry_t * | filter |
const afw_query_criteria_filter_entry_t * | tree |
const afw_query_criteria_sort_entry_t * | first_sort |
const afw_object_type_t * | object_type |
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.