|
YAZ 5.38.1
|
Implements Z39.50 Query Printing. More...
#include <stdio.h>#include <assert.h>#include <yaz/log.h>#include <yaz/logrpn.h>#include <yaz/oid_db.h>#include <yaz/proxunit.h>#include <yaz/snprintf.h>Go to the source code of this file.
Functions | |
| static const char * | relToStr (Odr_int v) |
| static void | attrStr (Odr_int type, Odr_int value, char *str, size_t sz) |
| static void | zlog_attributes (Z_AttributesPlusTerm *t, int depth, const Odr_oid *ast, int loglevel) |
| static char * | complex_op_name (Z_Operator *op) |
| const char * | yaz_prox_unit_name (Z_ProximityOperator *op) |
| static void | zlog_structure (Z_RPNStructure *zs, int depth, const Odr_oid *ast, int loglevel) |
| void | log_rpn_query_level (int loglevel, Z_RPNQuery *rpn) |
| void | log_rpn_query (Z_RPNQuery *rpn) |
| void | log_scan_term_level (int loglevel, Z_AttributesPlusTerm *zapt, const Odr_oid *ast) |
| void | log_scan_term (Z_AttributesPlusTerm *zapt, const Odr_oid *ast) |
| void | yaz_log_zquery_level (int loglevel, Z_Query *q) |
| void | yaz_log_zquery (Z_Query *q) |
Implements Z39.50 Query Printing.
Definition in file logrpn.c.
Definition at line 41 of file logrpn.c.
References attrStr(), ODR_INT_PRINTF, relToStr(), and yaz_snprintf().
Referenced by attrStr(), and zlog_attributes().
|
static |
Definition at line 237 of file logrpn.c.
References complex_op_name(), Z_Operator::which, Z_Operator_and, Z_Operator_and_not, Z_Operator_or, and Z_Operator_prox.
Referenced by complex_op_name(), complex_op_name(), yaz_rpnstructure_to_wrbuf(), and zlog_structure().
| void log_rpn_query | ( | Z_RPNQuery * | rpn | ) |
Definition at line 342 of file logrpn.c.
References log_rpn_query(), log_rpn_query_level(), and YLOG_LOG.
Referenced by log_rpn_query().
| void log_rpn_query_level | ( | int | loglevel, |
| Z_RPNQuery * | rpn ) |
Definition at line 337 of file logrpn.c.
References Z_RPNQuery::attributeSetId, log_rpn_query_level(), Z_RPNQuery::RPNStructure, and zlog_structure().
Referenced by log_rpn_query(), log_rpn_query_level(), and yaz_log_zquery_level().
| void log_scan_term | ( | Z_AttributesPlusTerm * | zapt, |
| const Odr_oid * | ast ) |
Definition at line 363 of file logrpn.c.
References log_scan_term(), log_scan_term_level(), and YLOG_LOG.
Referenced by log_scan_term().
| void log_scan_term_level | ( | int | loglevel, |
| Z_AttributesPlusTerm * | zapt, | ||
| const Odr_oid * | ast ) |
Definition at line 347 of file logrpn.c.
References log_scan_term_level(), Z_AttributesPlusTerm::term, Z_Term::u, Z_Term::which, yaz_log(), Z_Term_general, and zlog_attributes().
Referenced by log_scan_term(), log_scan_term_level(), and process_scanRequest().
|
static |
Definition at line 22 of file logrpn.c.
References relToStr().
Referenced by attrStr(), relToStr(), and zlog_structure().
| void yaz_log_zquery | ( | Z_Query * | q | ) |
Definition at line 390 of file logrpn.c.
References yaz_log_zquery(), yaz_log_zquery_level(), and YLOG_LOG.
Referenced by yaz_log_zquery().
| void yaz_log_zquery_level | ( | int | loglevel, |
| Z_Query * | q ) |
Definition at line 368 of file logrpn.c.
References log_rpn_query_level(), Z_Query::u, Z_Query::which, yaz_log(), yaz_log_zquery_level(), Z_External_CQL, Z_Query_type_1, Z_Query_type_100, Z_Query_type_101, Z_Query_type_104, and Z_Query_type_2.
Referenced by process_searchRequest(), srw_bend_search(), yaz_log_zquery(), and yaz_log_zquery_level().
| const char * yaz_prox_unit_name | ( | Z_ProximityOperator * | op | ) |
Definition at line 254 of file logrpn.c.
References Z_ProximityOperator::u, Z_ProximityOperator::which, yaz_prox_unit_name(), Z_ProximityOperator_known, and z_ProxUnit_to_str().
Referenced by rpn2cql_structure(), yaz_prox_unit_name(), and zlog_structure().
|
static |
Definition at line 186 of file logrpn.c.
References Z_AttributeList::attributes, Z_AttributesPlusTerm::attributes, Z_AttributeElement::attributeSet, Z_AttributeElement::attributeType, attrStr(), Z_AttributeList::num_attributes, ODR_INT_PRINTF, OID_STR_MAX, Z_AttributeElement::value, Z_AttributeElement::which, yaz_log(), yaz_oid_to_string_buf(), Z_AttributeValue_complex, Z_AttributeValue_numeric, Z_StringOrNumeric_numeric, Z_StringOrNumeric_string, and zlog_attributes().
Referenced by log_scan_term_level(), zlog_attributes(), and zlog_structure().
|
static |
Definition at line 264 of file logrpn.c.
References complex_op_name(), ODR_INT_PRINTF, relToStr(), Z_AttributesPlusTerm::term, Z_Operator::u, Z_RPNStructure::u, Z_Term::u, Z_Operator::which, Z_RPNStructure::which, Z_Term::which, yaz_log(), yaz_prox_unit_name(), Z_Operand_APT, Z_Operand_resultSetId, Z_Operator_and, Z_Operator_and_not, Z_Operator_or, Z_Operator_prox, Z_RPNStructure_complex, Z_RPNStructure_simple, Z_Term_characterString, Z_Term_general, Z_Term_null, Z_Term_numeric, zlog_attributes(), and zlog_structure().
Referenced by log_rpn_query_level(), and zlog_structure().