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.

Defines

#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)
Z_AttributesPlusTermp_query_scan (ODR o, oid_proto proto, Odr_oid **attributeSetP, 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)
void yaz_pqf_destroy (YAZ_PQF_Parser p)
int yaz_pqf_error (YAZ_PQF_Parser p, const char **msg, size_t *off)


Detailed Description

Header for PQF parsing.

Definition in file pquery.h.


Define Documentation

#define YAZ_PQF_ERROR_ATTSET   3

Definition at line 68 of file pquery.h.

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

#define YAZ_PQF_ERROR_BAD_INTEGER   8

Definition at line 83 of file pquery.h.

Referenced by yaz_pqf_error().

#define YAZ_PQF_ERROR_BADATTR   5

Definition at line 74 of file pquery.h.

Referenced by yaz_pqf_error().

#define YAZ_PQF_ERROR_EXTRA   1

Definition at line 62 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 77 of file pquery.h.

Referenced by yaz_pqf_error().

#define YAZ_PQF_ERROR_MISSING   2

Definition at line 65 of file pquery.h.

Referenced by p_query_scan_mk(), and yaz_pqf_error().

#define YAZ_PQF_ERROR_NONE   0

Definition at line 59 of file pquery.h.

Referenced by yaz_pqf_error().

#define YAZ_PQF_ERROR_PROXIMITY   7

Definition at line 80 of file pquery.h.

Referenced by yaz_pqf_error().

#define YAZ_PQF_ERROR_TOOMANY   4

Definition at line 71 of file pquery.h.

Referenced by p_query_scan_mk(), 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 
)

Z_AttributesPlusTerm* p_query_scan ( ODR  o,
oid_proto  proto,
Odr_oid **  attributeSetP,
const char *  qbuf 
)

YAZ_PQF_Parser yaz_pqf_create ( void   ) 

void yaz_pqf_destroy ( YAZ_PQF_Parser  p  ) 

Definition at line 790 of file pquery.c.

References xfree.

Referenced by ccl_rpn_query(), and ccl_scan_query().

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 
)

Z_AttributesPlusTerm* yaz_pqf_scan ( YAZ_PQF_Parser  p,
ODR  o,
Odr_oid **  attributeSetId,
const char *  qbuf 
)


Generated on Wed Jun 18 11:17:03 2008 for YAZ by  doxygen 1.5.6