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

◆ YAZ_PQF_ERROR_ATTSET

#define YAZ_PQF_ERROR_ATTSET   3

Definition at line 77 of file pquery.h.

◆ YAZ_PQF_ERROR_BAD_INTEGER

#define YAZ_PQF_ERROR_BAD_INTEGER   8

Definition at line 92 of file pquery.h.

◆ YAZ_PQF_ERROR_BADATTR

#define YAZ_PQF_ERROR_BADATTR   5

Definition at line 83 of file pquery.h.

◆ YAZ_PQF_ERROR_EXTRA

#define YAZ_PQF_ERROR_EXTRA   1

Definition at line 71 of file pquery.h.

◆ YAZ_PQF_ERROR_INTERNAL

#define YAZ_PQF_ERROR_INTERNAL   6

Definition at line 86 of file pquery.h.

◆ YAZ_PQF_ERROR_MISSING

#define YAZ_PQF_ERROR_MISSING   2

Definition at line 74 of file pquery.h.

◆ YAZ_PQF_ERROR_NONE

#define YAZ_PQF_ERROR_NONE   0

Definition at line 68 of file pquery.h.

◆ YAZ_PQF_ERROR_PROXIMITY

#define YAZ_PQF_ERROR_PROXIMITY   7

Definition at line 89 of file pquery.h.

◆ YAZ_PQF_ERROR_TOOMANY

#define YAZ_PQF_ERROR_TOOMANY   4

Definition at line 80 of file pquery.h.

Typedef Documentation

◆ YAZ_PQF_Parser

typedef struct yaz_pqf_parser* YAZ_PQF_Parser

Definition at line 41 of file pquery.h.

Function Documentation

◆ p_query_rpn()

Z_RPNQuery* p_query_rpn ( ODR  o,
const char *  qbuf 
)

◆ yaz_pqf_create()

YAZ_PQF_Parser yaz_pqf_create ( void  )

◆ yaz_pqf_destroy()

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

◆ yaz_pqf_error()

int yaz_pqf_error ( YAZ_PQF_Parser  p,
const char **  msg,
size_t *  off 
)

◆ yaz_pqf_parse()

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

◆ yaz_pqf_parse_facet_list()

Z_FacetList* yaz_pqf_parse_facet_list ( ODR  odr,
const char *  args 
)

◆ yaz_pqf_scan()

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

◆ yaz_pqf_scan_attribute_list()

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

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