YAZ 5.37.0
logrpn.c File Reference

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)

Detailed Description

Implements Z39.50 Query Printing.

Definition in file logrpn.c.

Function Documentation

◆ attrStr()

void attrStr ( Odr_int type,
Odr_int value,
char * str,
size_t sz )
static

Definition at line 41 of file logrpn.c.

References ODR_INT_PRINTF, relToStr(), type, and yaz_snprintf().

Referenced by zlog_attributes().

◆ complex_op_name()

char * complex_op_name ( Z_Operator * op)
static

Definition at line 237 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().

◆ log_rpn_query()

void log_rpn_query ( Z_RPNQuery * rpn)

Definition at line 342 of file logrpn.c.

References log_rpn_query_level(), and YLOG_LOG.

◆ log_rpn_query_level()

void log_rpn_query_level ( int loglevel,
Z_RPNQuery * rpn )

◆ log_scan_term()

void log_scan_term ( Z_AttributesPlusTerm * zapt,
const Odr_oid * ast )

Definition at line 363 of file logrpn.c.

References log_scan_term_level(), and YLOG_LOG.

◆ log_scan_term_level()

void log_scan_term_level ( int loglevel,
Z_AttributesPlusTerm * zapt,
const Odr_oid * ast )

◆ relToStr()

const char * relToStr ( Odr_int v)
static

Definition at line 22 of file logrpn.c.

Referenced by attrStr(), and zlog_structure().

◆ yaz_log_zquery()

void yaz_log_zquery ( Z_Query * q)

Definition at line 390 of file logrpn.c.

References yaz_log_zquery_level(), and YLOG_LOG.

◆ yaz_log_zquery_level()

◆ yaz_prox_unit_name()

◆ zlog_attributes()

◆ zlog_structure()