YAZ  5.26.1
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>

Go to the source code of this file.


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)

Detailed Description

Implements Z39.50 Query Printing.

Definition in file logrpn.c.

Function Documentation

◆ attrStr()

static void attrStr ( Odr_int  type,
Odr_int  value,
char *  str 

Definition at line 40 of file logrpn.c.

References ODR_INT_PRINTF, and relToStr().

Referenced by zlog_attributes().

◆ complex_op_name()

static char* complex_op_name ( Z_Operator op)

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().

◆ log_rpn_query()

void log_rpn_query ( Z_RPNQuery rpn)

Definition at line 341 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 362 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()

static const char* relToStr ( Odr_int  v)

Definition at line 21 of file logrpn.c.

Referenced by attrStr(), and zlog_structure().

◆ yaz_log_zquery()

void yaz_log_zquery ( Z_Query q)

Definition at line 389 of file logrpn.c.

References yaz_log_zquery_level(), and YLOG_LOG.

◆ yaz_log_zquery_level()

void yaz_log_zquery_level ( int  loglevel,
Z_Query q 

◆ yaz_prox_unit_name()

const char* yaz_prox_unit_name ( Z_ProximityOperator op)

◆ zlog_attributes()

static void zlog_attributes ( Z_AttributesPlusTerm t,
int  depth,
const Odr_oid ast,
int  loglevel 

◆ zlog_structure()

static void zlog_structure ( Z_RPNStructure zs,
int  depth,
const Odr_oid ast,
int  loglevel