YAZ  5.23.1
Macros | Functions
cclqfile.c File Reference

Implements parsing of CCL qualifier specs in files. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <yaz/tokenizer.h>
#include <yaz/ccl.h>
#include <yaz/log.h>

Go to the source code of this file.

Macros

#define MAX_QUAL   128
 

Functions

int ccl_qual_field2 (CCL_bibset bibset, const char *cp, const char *qual_name, const char **addinfo)
 
void ccl_qual_field (CCL_bibset bibset, const char *cp, const char *qual_name)
 
int ccl_qual_fitem2 (CCL_bibset bibset, const char *cp, const char *qual_name, const char **addinfo)
 
void ccl_qual_fitem (CCL_bibset bibset, const char *cp, const char *qual_name)
 
void ccl_qual_buf (CCL_bibset bibset, const char *buf)
 
void ccl_qual_line (CCL_bibset bibset, char *line)
 
void ccl_qual_file (CCL_bibset bibset, FILE *inf)
 
int ccl_qual_fname (CCL_bibset bibset, const char *fname)
 

Detailed Description

Implements parsing of CCL qualifier specs in files.

Definition in file cclqfile.c.

Macro Definition Documentation

#define MAX_QUAL   128

Definition at line 21 of file cclqfile.c.

Referenced by ccl_qual_field2().

Function Documentation

void ccl_qual_buf ( CCL_bibset  bibset,
const char *  buf 
)

Add CCL qualifier as buf spec(multiple lines).

Definition at line 261 of file cclqfile.c.

References ccl_qual_line().

Referenced by ZOOM_query_ccl2rpn().

void ccl_qual_field ( CCL_bibset  bibset,
const char *  cp,
const char *  qual_name 
)

Definition at line 233 of file cclqfile.c.

References ccl_qual_field2(), yaz_log(), and YLOG_WARN.

int ccl_qual_field2 ( CCL_bibset  bibset,
const char *  cp,
const char *  qual_name,
const char **  addinfo 
)
void ccl_qual_file ( CCL_bibset  bibset,
FILE *  inf 
)

Read CCL qualifier list spec from file inf

Definition at line 316 of file cclqfile.c.

References ccl_qual_line().

Referenced by ccl_qual_fname(), and xml_config_read().

void ccl_qual_fitem ( CCL_bibset  bibset,
const char *  cp,
const char *  qual_name 
)

Definition at line 255 of file cclqfile.c.

References ccl_qual_fitem2().

Referenced by ccl_qual_line(), and ccl_xml_config_qual().

int ccl_qual_fitem2 ( CCL_bibset  bibset,
const char *  cp,
const char *  qual_name,
const char **  addinfo 
)

Definition at line 241 of file cclqfile.c.

References ccl_qual_add_special(), and ccl_qual_field2().

Referenced by ccl_qual_fitem().

int ccl_qual_fname ( CCL_bibset  bibset,
const char *  fname 
)

Read CCL qualifier list spec from file inf

Definition at line 324 of file cclqfile.c.

References ccl_qual_file().

void ccl_qual_line ( CCL_bibset  bibset,
char *  line 
)

Add CCL qualifier as line spec. Note: line is modified

Definition at line 286 of file cclqfile.c.

References ccl_qual_fitem().

Referenced by ccl_qual_buf(), and ccl_qual_file().