YAZ
5.34.0
|
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>
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) |
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 40 of file logrpn.c.
References ODR_INT_PRINTF, relToStr(), and type.
Referenced by zlog_attributes().
|
static |
Definition at line 236 of file logrpn.c.
References Z_Operator::which, Z_Operator_and, Z_Operator_and_not, Z_Operator_or, and Z_Operator_prox.
Referenced by zlog_structure().
void log_rpn_query | ( | Z_RPNQuery * | rpn | ) |
Definition at line 341 of file logrpn.c.
References log_rpn_query_level(), and YLOG_LOG.
void log_rpn_query_level | ( | int | loglevel, |
Z_RPNQuery * | rpn | ||
) |
Definition at line 336 of file logrpn.c.
References Z_RPNQuery::attributeSetId, Z_RPNQuery::RPNStructure, and zlog_structure().
Referenced by log_rpn_query(), and yaz_log_zquery_level().
void log_scan_term | ( | Z_AttributesPlusTerm * | zapt, |
const Odr_oid * | ast | ||
) |
Definition at line 362 of file logrpn.c.
References log_scan_term_level(), and YLOG_LOG.
void log_scan_term_level | ( | int | loglevel, |
Z_AttributesPlusTerm * | zapt, | ||
const Odr_oid * | ast | ||
) |
Definition at line 346 of file logrpn.c.
References odr_oct::buf, Z_Term::general, odr_oct::len, Z_AttributesPlusTerm::term, Z_Term::u, Z_Term::which, yaz_log(), Z_Term_general, and zlog_attributes().
Referenced by log_scan_term(), and process_scanRequest().
|
static |
Definition at line 21 of file logrpn.c.
Referenced by attrStr(), and zlog_structure().
void yaz_log_zquery | ( | Z_Query * | q | ) |
Definition at line 389 of file logrpn.c.
References yaz_log_zquery_level(), and YLOG_LOG.
void yaz_log_zquery_level | ( | int | loglevel, |
Z_Query * | q | ||
) |
Definition at line 367 of file logrpn.c.
References odr_oct::buf, Z_External::cql, odr_oct::len, log_rpn_query_level(), Z_Query::type_1, Z_Query::type_100, Z_Query::type_104, Z_Query::type_2, Z_External::u, Z_Query::u, Z_External::which, Z_Query::which, yaz_log(), 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(), and yaz_log_zquery().
const char* yaz_prox_unit_name | ( | Z_ProximityOperator * | op | ) |
Definition at line 253 of file logrpn.c.
References Z_ProximityOperator::known, Z_ProximityOperator::u, Z_ProximityOperator::which, Z_ProximityOperator_known, and z_ProxUnit_to_str().
Referenced by rpn2cql_structure(), and zlog_structure().
|
static |
Definition at line 185 of file logrpn.c.
References Z_AttributesPlusTerm::attributes, Z_AttributeList::attributes, Z_AttributeElement::attributeSet, Z_AttributeElement::attributeType, attrStr(), Z_AttributeElement::complex, Z_ComplexAttribute::list, Z_AttributeList::num_attributes, Z_ComplexAttribute::num_list, Z_AttributeElement::numeric, Z_StringOrNumeric::numeric, ODR_INT_PRINTF, OID_STR_MAX, Z_StringOrNumeric::string, Z_StringOrNumeric::u, Z_AttributeElement::value, Z_AttributeElement::which, Z_StringOrNumeric::which, yaz_log(), yaz_oid_to_string_buf(), Z_AttributeValue_complex, Z_AttributeValue_numeric, Z_StringOrNumeric_numeric, and Z_StringOrNumeric_string.
Referenced by log_scan_term_level(), and zlog_structure().
|
static |
Definition at line 263 of file logrpn.c.
References Z_Operand::attributesPlusTerm, odr_oct::buf, Z_Term::characterString, Z_RPNStructure::complex, complex_op_name(), Z_ProximityOperator::distance, Z_ProximityOperator::exclusion, Z_Term::general, odr_oct::len, Z_Term::numeric, ODR_INT_PRINTF, Z_ProximityOperator::ordered, Z_Operator::prox, Z_ProximityOperator::relationType, relToStr(), Z_Operand::resultSetId, Z_Complex::roperator, Z_Complex::s1, Z_Complex::s2, Z_RPNStructure::simple, Z_AttributesPlusTerm::term, Z_RPNStructure::u, Z_Operand::u, Z_Term::u, Z_Operator::u, Z_RPNStructure::which, Z_Operand::which, Z_Term::which, Z_Operator::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, and zlog_attributes().
Referenced by log_rpn_query_level().