YAZ  5.23.1
Macros | Typedefs | Functions
pquery.h File Reference

Header for PQF parsing. More...

#include <yaz/yconfig.h>
#include <yaz/proto.h>

Go to the source code of this file.

Macros

#define YAZ_PQF_ERROR_NONE   0
 
#define YAZ_PQF_ERROR_EXTRA   1
 
#define YAZ_PQF_ERROR_MISSING   2
 
#define YAZ_PQF_ERROR_ATTSET   3
 
#define YAZ_PQF_ERROR_TOOMANY   4
 
#define YAZ_PQF_ERROR_BADATTR   5
 
#define YAZ_PQF_ERROR_INTERNAL   6
 
#define YAZ_PQF_ERROR_PROXIMITY   7
 
#define YAZ_PQF_ERROR_BAD_INTEGER   8
 

Typedefs

typedef struct yaz_pqf_parserYAZ_PQF_Parser
 

Functions

Z_RPNQueryp_query_rpn (ODR o, const char *qbuf)
 
YAZ_PQF_Parser yaz_pqf_create (void)
 
Z_RPNQueryyaz_pqf_parse (YAZ_PQF_Parser p, ODR o, const char *qbuf)
 
Z_AttributesPlusTermyaz_pqf_scan (YAZ_PQF_Parser p, ODR o, Odr_oid **attributeSetId, const char *qbuf)
 
Z_AttributeListyaz_pqf_scan_attribute_list (YAZ_PQF_Parser p, ODR o, Odr_oid **attributeSetId, const char *qbuf)
 
Z_FacetListyaz_pqf_parse_facet_list (ODR odr, const char *args)
 
void yaz_pqf_destroy (YAZ_PQF_Parser p)
 
int yaz_pqf_error (YAZ_PQF_Parser p, const char **msg, size_t *off)
 
Z_Termz_Term_create (ODR o, int term_type, const char *buf, size_t len)
 

Detailed Description

Header for PQF parsing.

Definition in file pquery.h.

Macro Definition Documentation

#define YAZ_PQF_ERROR_ATTSET   3
#define YAZ_PQF_ERROR_BAD_INTEGER   8

Definition at line 92 of file pquery.h.

Referenced by p_query_parse_attr(), rpn_proximity(), and yaz_pqf_error().

#define YAZ_PQF_ERROR_BADATTR   5

Definition at line 83 of file pquery.h.

Referenced by p_query_parse_attr(), and yaz_pqf_error().

#define YAZ_PQF_ERROR_EXTRA   1

Definition at line 71 of file pquery.h.

Referenced by p_query_rpn_mk(), p_query_scan_mk(), and yaz_pqf_error().

#define YAZ_PQF_ERROR_INTERNAL   6

Definition at line 86 of file pquery.h.

Referenced by rpn_complex(), rpn_simple(), and yaz_pqf_error().

#define YAZ_PQF_ERROR_MISSING   2
#define YAZ_PQF_ERROR_NONE   0

Definition at line 68 of file pquery.h.

Referenced by yaz_pqf_error().

#define YAZ_PQF_ERROR_PROXIMITY   7

Definition at line 89 of file pquery.h.

Referenced by rpn_proximity(), and yaz_pqf_error().

#define YAZ_PQF_ERROR_TOOMANY   4

Definition at line 80 of file pquery.h.

Referenced by p_query_scan_attributes_mk(), rpn_structure(), and yaz_pqf_error().

Typedef Documentation

typedef struct yaz_pqf_parser* YAZ_PQF_Parser

Definition at line 41 of file pquery.h.

Function Documentation

Z_RPNQuery* p_query_rpn ( ODR  o,
const char *  qbuf 
)
YAZ_PQF_Parser yaz_pqf_create ( void  )
void yaz_pqf_destroy ( YAZ_PQF_Parser  p)

Definition at line 811 of file pquery.c.

References xfree.

Referenced by ccl_rpn_query(), ccl_scan_query(), cql2pqf(), parse_facet(), srw_bend_scan(), and srw_bend_search().

int yaz_pqf_error ( YAZ_PQF_Parser  p,
const char **  msg,
size_t *  off 
)
Z_RPNQuery* yaz_pqf_parse ( YAZ_PQF_Parser  p,
ODR  o,
const char *  qbuf 
)

Definition at line 816 of file pquery.c.

References p_query_rpn_mk(), and pqf_parser_begin().

Referenced by ccl_rpn_query(), cql2pqf(), and srw_bend_search().

Z_FacetList* yaz_pqf_parse_facet_list ( ODR  odr,
const char *  args 
)
Z_AttributesPlusTerm* yaz_pqf_scan ( YAZ_PQF_Parser  p,
ODR  o,
Odr_oid **  attributeSetId,
const char *  qbuf 
)

Definition at line 824 of file pquery.c.

References p_query_scan_mk(), and pqf_parser_begin().

Referenced by ccl_scan_query(), and srw_bend_scan().

Z_AttributeList* yaz_pqf_scan_attribute_list ( YAZ_PQF_Parser  p,
ODR  o,
Odr_oid **  attributeSetId,
const char *  qbuf 
)

Definition at line 834 of file pquery.c.

References p_query_scan_attributes_mk(), and pqf_parser_begin().

Z_Term* z_Term_create ( ODR  o,
int  term_type,
const char *  buf,
size_t  len 
)