IDZEBRA  2.1.3
Data Structures | Macros | Typedefs | Enumerations | Functions
data1.h File Reference
#include <stdio.h>
#include <yaz/nmem.h>
#include <yaz/proto.h>
#include <yaz/yaz-util.h>
#include <idzebra/util.h>

Go to the source code of this file.

Data Structures

struct  data1_att
 
struct  data1_attset_child
 
struct  data1_attset
 
struct  data1_maptag
 
struct  data1_maptab
 
struct  data1_name
 
struct  data1_marctab
 
struct  data1_esetname
 
struct  data1_vartype
 
struct  data1_varclass
 
struct  data1_varset
 
struct  data1_tag
 
struct  data1_tagset
 
struct  data1_termlist
 
struct  data1_element
 
struct  data1_sub_elements
 
struct  data1_xattr
 
struct  data1_node
 

Macros

#define d1_isspace(c)   strchr(" \r\n\t\f", c)
 
#define d1_isdigit(c)   ((c) <= '9' && (c) >= '0')
 
#define data1_matchstr(s1, s2)   yaz_matchstr(s1, s2)
 
#define DATA1_MAX_SYMBOL   31
 
#define D1_MAPTAG_numeric   1
 
#define D1_MAPTAG_string   2
 
#define DATA1T_numeric   1
 
#define DATA1T_string   2
 
#define DATA1N_root   1
 
#define DATA1N_tag   2
 
#define DATA1N_data   3
 
#define DATA1N_variant   4
 
#define DATA1N_comment   5
 
#define DATA1N_preprocess   6
 
#define DATA1I_inctxt   1
 
#define DATA1I_incbin   2
 
#define DATA1I_text   3
 
#define DATA1I_num   4
 
#define DATA1I_oid   5
 
#define DATA1I_xmltext   6
 
#define DATA1_LOCALDATA   12
 

Typedefs

typedef struct data1_attset data1_attset
 
typedef struct data1_att data1_att
 
typedef struct data1_attset_child data1_attset_child
 
typedef struct data1_handle_infodata1_handle
 
typedef struct data1_maptag data1_maptag
 
typedef struct data1_mapunit data1_mapunit
 
typedef struct data1_maptab data1_maptab
 
typedef struct data1_name data1_name
 
typedef struct data1_absyn_cache_infodata1_absyn_cache
 
typedef struct data1_attset_cache_infodata1_attset_cache
 
typedef struct data1_absyn data1_absyn
 
typedef enum data1_datatype data1_datatype
 
typedef struct data1_marctab data1_marctab
 
typedef struct data1_esetname data1_esetname
 
typedef struct data1_vartype data1_vartype
 
typedef struct data1_varclass data1_varclass
 
typedef struct data1_varset data1_varset
 
typedef struct data1_tag data1_tag
 
typedef struct data1_tagset data1_tagset
 
typedef struct data1_termlist data1_termlist
 
typedef struct data1_element data1_element
 
typedef struct data1_sub_elements data1_sub_elements
 
typedef struct data1_xattr data1_xattr
 
typedef struct data1_node data1_node
 

Enumerations

enum  data1_datatype {
  DATA1K_unknown, DATA1K_structured, DATA1K_string, DATA1K_numeric,
  DATA1K_bool, DATA1K_oid, DATA1K_generalizedtime, DATA1K_intunit,
  DATA1K_int, DATA1K_octetstring, DATA1K_null
}
 
enum  DATA1_XPATH_INDEXING { DATA1_XPATH_INDEXING_DISABLE, DATA1_XPATH_INDEXING_ENABLE }
 

Functions

data1_attdata1_getattbyname (data1_handle dh, data1_attset *s, const char *name)
 
data1_attsetdata1_read_attset (data1_handle dh, const char *file)
 
data1_attsetdata1_empty_attset (data1_handle dh)
 
data1_handle data1_create (void)
 
void data1_destroy (data1_handle dh)
 
data1_nodeget_parent_tag (data1_handle dh, data1_node *n)
 
data1_nodedata1_read_node (data1_handle dh, const char **buf, NMEM m)
 
data1_nodedata1_read_nodex (data1_handle dh, NMEM m, int(*get_byte)(void *fh), void *fh, WRBUF wrbuf)
 
data1_nodedata1_read_record (data1_handle dh, int(*rf)(void *, char *, size_t), void *fh, NMEM m)
 
void data1_remove_node (data1_handle dh, data1_node *n)
 
void data1_remove_idzebra_subtree (data1_handle dh, data1_node *n)
 
data1_tagdata1_gettagbynum (data1_handle dh, data1_tagset *s, int type, int value)
 
data1_tagsetdata1_empty_tagset (data1_handle dh)
 
data1_tagsetdata1_read_tagset (data1_handle dh, const char *file, int type)
 
data1_elementdata1_getelementbytagname (data1_handle dh, data1_absyn *abs, data1_element *parent, const char *tagname)
 
Z_GenericRecord * data1_nodetogr (data1_handle dh, data1_node *n, int select, ODR o, int *len)
 
data1_tagdata1_gettagbyname (data1_handle dh, data1_tagset *s, const char *name)
 
char * data1_nodetobuf (data1_handle dh, data1_node *n, int select, int *len)
 
data1_nodedata1_mk_tag_data_wd (data1_handle dh, data1_node *at, const char *tagname, NMEM m)
 
data1_nodedata1_mk_tag_data (data1_handle dh, data1_node *at, const char *tagname, NMEM m)
 
data1_datatype data1_maptype (data1_handle dh, char *t)
 
data1_varsetdata1_read_varset (data1_handle dh, const char *file)
 
data1_vartypedata1_getvartypebyct (data1_handle dh, data1_varset *set, const char *zclass, const char *type)
 
data1_vartypedata1_getvartypeby_absyn (data1_handle dh, data1_absyn *absyn, char *zclass, char *type)
 
Z_Espec1 * data1_read_espec1 (data1_handle dh, const char *file)
 
int data1_doespec1 (data1_handle dh, data1_node *n, Z_Espec1 *e)
 
data1_esetnamedata1_getesetbyname (data1_handle dh, data1_absyn *a, const char *name)
 
data1_elementdata1_getelementbyname (data1_handle dh, data1_absyn *absyn, const char *name)
 
data1_nodedata1_mk_node2 (data1_handle dh, NMEM m, int type, data1_node *parent)
 
data1_nodedata1_mk_tag (data1_handle dh, NMEM nmem, const char *tag, const char **attr, data1_node *at)
 
data1_nodedata1_mk_tag_n (data1_handle dh, NMEM nmem, const char *tag, size_t len, const char **attr, data1_node *at)
 
void data1_tag_add_attr (data1_handle dh, NMEM nmem, data1_node *res, const char **attr)
 
data1_nodedata1_mk_text_n (data1_handle dh, NMEM mem, const char *buf, size_t len, data1_node *parent)
 
data1_nodedata1_mk_text_nf (data1_handle dh, NMEM mem, const char *buf, size_t len, data1_node *parent)
 
data1_nodedata1_mk_text (data1_handle dh, NMEM mem, const char *buf, data1_node *parent)
 
data1_nodedata1_mk_comment_n (data1_handle dh, NMEM mem, const char *buf, size_t len, data1_node *parent)
 
data1_nodedata1_mk_comment (data1_handle dh, NMEM mem, const char *buf, data1_node *parent)
 
data1_nodedata1_mk_preprocess_n (data1_handle dh, NMEM nmem, const char *target, size_t len, const char **attr, data1_node *at)
 
data1_nodedata1_mk_preprocess (data1_handle dh, NMEM nmem, const char *target, const char **attr, data1_node *at)
 
data1_nodedata1_insert_preprocess_n (data1_handle dh, NMEM nmem, const char *target, size_t len, const char **attr, data1_node *at)
 
data1_nodedata1_insert_preprocess (data1_handle dh, NMEM nmem, const char *target, const char **attr, data1_node *at)
 
data1_nodedata1_mk_root (data1_handle dh, NMEM nmem, const char *name)
 
void data1_set_root (data1_handle dh, data1_node *res, NMEM nmem, const char *name)
 
data1_nodedata1_mk_tag_data_zint (data1_handle dh, data1_node *at, const char *tag, zint num, NMEM nmem)
 
data1_nodedata1_mk_tag_data_int (data1_handle dh, data1_node *at, const char *tag, int num, NMEM nmem)
 
data1_nodedata1_mk_tag_data_oid (data1_handle dh, data1_node *at, const char *tag, Odr_oid *oid, NMEM nmem)
 
data1_nodedata1_mk_tag_data_text (data1_handle dh, data1_node *at, const char *tag, const char *str, NMEM nmem)
 
data1_nodedata1_mk_tag_data_text_uni (data1_handle dh, data1_node *at, const char *tag, const char *str, NMEM nmem)
 
data1_absyndata1_get_absyn (data1_handle dh, const char *name, enum DATA1_XPATH_INDEXING en)
 
data1_nodedata1_search_tag (data1_handle dh, data1_node *n, const char *tag)
 
data1_nodedata1_mk_tag_uni (data1_handle dh, NMEM nmem, const char *tag, data1_node *at)
 
data1_attsetdata1_get_attset (data1_handle dh, const char *name)
 
data1_maptabdata1_read_maptab (data1_handle dh, const char *file)
 
data1_nodedata1_map_record (data1_handle dh, data1_node *n, data1_maptab *map, NMEM m)
 
data1_marctabdata1_read_marctab (data1_handle dh, const char *file)
 
data1_marctabdata1_absyn_getmarctab (data1_handle dh, data1_node *root)
 
data1_elementdata1_absyn_getelements (data1_handle dh, data1_node *root)
 
char * data1_nodetomarc (data1_handle dh, data1_marctab *p, data1_node *n, int selected, int *len)
 
char * data1_nodetoidsgml (data1_handle dh, data1_node *n, int select, int *len)
 
Z_ExplainRecord * data1_nodetoexplain (data1_handle dh, data1_node *n, int select, ODR o)
 
Z_BriefBib * data1_nodetosummary (data1_handle dh, data1_node *n, int select, ODR o)
 
char * data1_nodetosoif (data1_handle dh, data1_node *n, int select, int *len)
 
void data1_set_tabpath (data1_handle dh, const char *path)
 
void data1_set_tabroot (data1_handle dp, const char *p)
 
const char * data1_get_tabpath (data1_handle dh)
 
const char * data1_get_tabroot (data1_handle dh)
 
WRBUF data1_get_wrbuf (data1_handle dp)
 
char ** data1_get_read_buf (data1_handle dp, int **lenp)
 
char ** data1_get_map_buf (data1_handle dp, int **lenp)
 
data1_absyn_cachedata1_absyn_cache_get (data1_handle dh)
 
data1_attset_cachedata1_attset_cache_get (data1_handle dh)
 
NMEM data1_nmem_get (data1_handle dh)
 
void data1_pr_tree (data1_handle dh, data1_node *n, FILE *out)
 
char * data1_insert_string (data1_handle dh, data1_node *res, NMEM m, const char *str)
 
char * data1_insert_string_n (data1_handle dh, data1_node *res, NMEM m, const char *str, size_t len)
 
data1_nodedata1_read_sgml (data1_handle dh, NMEM m, const char *buf)
 
data1_nodedata1_read_xml (data1_handle dh, int(*rf)(void *, char *, size_t), void *fh, NMEM m)
 
void data1_absyn_trav (data1_handle dh, void *handle, void(*fh)(data1_handle dh, void *h, data1_absyn *a))
 
data1_attsetdata1_attset_search_id (data1_handle dh, const Odr_oid *oid)
 
char * data1_getNodeValue (data1_node *node, char *pTagPath)
 
data1_nodedata1_LookupNode (data1_node *node, char *pTagPath)
 
int data1_CountOccurences (data1_node *node, char *pTagPath)
 Count the number of occurences of the last instance on a tagpath. More...
 
FILE * data1_path_fopen (data1_handle dh, const char *file, const char *mode)
 
data1_nodedata1_mk_node (data1_handle dh, NMEM m)
 
data1_nodedata1_insert_taggeddata (data1_handle dh, data1_node *root, data1_node *at, const char *tagname, NMEM m)
 
data1_nodedata1_mk_node_type (data1_handle dh, NMEM m, int type)
 
data1_nodedata1_add_taggeddata (data1_handle dh, data1_node *root, data1_node *at, const char *tagname, NMEM m)
 
data1_nodedata1_get_root_tag (data1_handle dh, data1_node *n)
 
int data1_iconv (data1_handle dh, NMEM m, data1_node *n, const char *tocode, const char *fromcode)
 
const char * data1_get_encoding (data1_handle dh, data1_node *n)
 
int data1_is_xmlmode (data1_handle dh)
 
const char * data1_systag_lookup (data1_absyn *absyn, const char *tag, const char *default_value)
 
void data1_concat_text (data1_handle dh, NMEM m, data1_node *n)
 
void data1_chop_text (data1_handle dh, NMEM m, data1_node *n)
 
void data1_absyn_destroy (data1_handle dh)
 
const char * data1_absyn_get_staticrank (data1_absyn *absyn)
 

Macro Definition Documentation

#define d1_isdigit (   c)    ((c) <= '9' && (c) >= '0')

Definition at line 32 of file data1.h.

Referenced by data1_read_maptab(), read_occurrences(), and read_variant().

#define d1_isspace (   c)    strchr(" \r\n\t\f", c)
#define D1_MAPTAG_numeric   1

Definition at line 89 of file data1.h.

Referenced by data1_read_maptab(), map_children(), and tagmatch().

#define D1_MAPTAG_string   2

Definition at line 90 of file data1.h.

Referenced by data1_read_maptab(), map_children(), and tagmatch().

#define DATA1_LOCALDATA   12

Definition at line 338 of file data1.h.

Referenced by data1_insert_string_n(), data1_read_nodex(), tagDataRelease(), and variantBegin().

#define data1_matchstr (   s1,
  s2 
)    yaz_matchstr(s1, s2)
#define DATA1_MAX_SYMBOL   31

Definition at line 38 of file data1.h.

Referenced by variantBegin().

#define DATA1I_incbin   2

Definition at line 312 of file data1.h.

Referenced by pr_tree().

#define DATA1I_inctxt   1

Definition at line 310 of file data1.h.

Referenced by pr_tree().

#define DATA1I_num   4
#define DATA1I_oid   5
#define DATA1I_text   3
#define DATA1I_xmltext   6
#define DATA1N_comment   5

Definition at line 282 of file data1.h.

Referenced by data1_iconv_s(), data1_init_node(), data1_mk_comment_n(), nodetoidsgml(), and pr_tree().

#define DATA1N_data   3
#define DATA1N_preprocess   6
#define DATA1N_root   1
#define DATA1N_tag   2
#define DATA1N_variant   4
#define DATA1T_numeric   1
#define DATA1T_string   2

Definition at line 205 of file data1.h.

Referenced by data1_read_absyn(), grs_read_marc(), grs_read_marcxml(), and match_children_here().

Typedef Documentation

typedef struct data1_absyn data1_absyn

Definition at line 120 of file data1.h.

Definition at line 118 of file data1.h.

typedef struct data1_att data1_att

Definition at line 52 of file data1.h.

typedef struct data1_attset data1_attset

Definition at line 51 of file data1.h.

Definition at line 119 of file data1.h.

Definition at line 53 of file data1.h.

typedef struct data1_element data1_element

Definition at line 77 of file data1.h.

typedef struct data1_maptab data1_maptab
typedef struct data1_maptag data1_maptag
typedef struct data1_mapunit data1_mapunit

Definition at line 100 of file data1.h.

typedef struct data1_marctab data1_marctab
typedef struct data1_name data1_name
typedef struct data1_node data1_node
typedef struct data1_tag data1_tag
typedef struct data1_tagset data1_tagset

Definition at line 218 of file data1.h.

typedef struct data1_varset data1_varset
typedef struct data1_vartype data1_vartype
typedef struct data1_xattr data1_xattr

Enumeration Type Documentation

Enumerator
DATA1K_unknown 
DATA1K_structured 
DATA1K_string 
DATA1K_numeric 
DATA1K_bool 
DATA1K_oid 
DATA1K_generalizedtime 
DATA1K_intunit 
DATA1K_int 
DATA1K_octetstring 
DATA1K_null 

Definition at line 122 of file data1.h.

Enumerator
DATA1_XPATH_INDEXING_DISABLE 
DATA1_XPATH_INDEXING_ENABLE 

Definition at line 347 of file data1.h.

Function Documentation

data1_absyn_cache* data1_absyn_cache_get ( data1_handle  dh)
void data1_absyn_destroy ( data1_handle  dh)
const char* data1_absyn_get_staticrank ( data1_absyn absyn)
data1_element* data1_absyn_getelements ( data1_handle  dh,
data1_node root 
)

Definition at line 669 of file d1_absyn.c.

References data1_node::root, and data1_node::u.

Referenced by grs_read_marc(), and grs_read_marcxml().

data1_marctab* data1_absyn_getmarctab ( data1_handle  dh,
data1_node root 
)

Definition at line 662 of file d1_absyn.c.

References data1_node::root, and data1_node::u.

Referenced by grs_read_iso2709(), and parse_data1_tree().

void data1_absyn_trav ( data1_handle  dh,
void *  handle,
void(*)(data1_handle dh, void *h, data1_absyn *a)  fh 
)
data1_node* data1_add_taggeddata ( data1_handle  dh,
data1_node root,
data1_node at,
const char *  tagname,
NMEM  m 
)

Definition at line 450 of file d1_read.c.

References data1_add_insert_taggeddata().

data1_attset_cache* data1_attset_cache_get ( data1_handle  dh)
data1_attset* data1_attset_search_id ( data1_handle  dh,
const Odr_oid *  oid 
)
void data1_chop_text ( data1_handle  dh,
NMEM  m,
data1_node n 
)
void data1_concat_text ( data1_handle  dh,
NMEM  m,
data1_node n 
)
int data1_CountOccurences ( data1_node node,
char *  pTagPath 
)

Count the number of occurences of the last instance on a tagpath.

Parameters
node: The root of the tree we wish to look for occurences in
pTagPath: The tagpath we want to count the occurences of...

Definition at line 253 of file d1_if.c.

References data1_node::child, data1_LookupNode(), DATA1N_tag, data1_node::next, data1_node::parent, data1_node::tag, data1_node::u, and data1_node::which.

data1_handle data1_create ( void  )
void data1_destroy ( data1_handle  dh)
int data1_doespec1 ( data1_handle  dh,
data1_node n,
Z_Espec1 *  e 
)
data1_attset* data1_empty_attset ( data1_handle  dh)
data1_tagset* data1_empty_tagset ( data1_handle  dh)
data1_absyn* data1_get_absyn ( data1_handle  dh,
const char *  name,
enum DATA1_XPATH_INDEXING  en 
)
data1_attset* data1_get_attset ( data1_handle  dh,
const char *  name 
)

Definition at line 288 of file d1_absyn.c.

References data1_attset_add(), and data1_attset_search_name().

Referenced by att_loadset(), data1_read_absyn(), and data1_read_attset().

const char* data1_get_encoding ( data1_handle  dh,
data1_node n 
)
char** data1_get_map_buf ( data1_handle  dp,
int **  lenp 
)

Definition at line 118 of file d1_handle.c.

References data1_handle_info::map_buf, and data1_handle_info::map_len.

Referenced by data1_nodetomarc().

char** data1_get_read_buf ( data1_handle  dp,
int **  lenp 
)

Definition at line 111 of file d1_handle.c.

References data1_handle_info::read_buf, and data1_handle_info::read_len.

Referenced by data1_read_record().

data1_node* data1_get_root_tag ( data1_handle  dh,
data1_node n 
)
const char* data1_get_tabpath ( data1_handle  dh)

Definition at line 141 of file d1_handle.c.

References data1_handle_info::tab_path.

Referenced by data1_path_fopen().

const char* data1_get_tabroot ( data1_handle  dh)

Definition at line 146 of file d1_handle.c.

References data1_handle_info::tab_root.

Referenced by data1_path_fopen().

WRBUF data1_get_wrbuf ( data1_handle  dp)

Definition at line 106 of file d1_handle.c.

References data1_handle_info::wrbuf.

Referenced by data1_nodetobuf(), data1_nodetoidsgml(), and data1_nodetosoif().

data1_att* data1_getattbyname ( data1_handle  dh,
data1_attset s,
const char *  name 
)
data1_element* data1_getelementbyname ( data1_handle  dh,
data1_absyn absyn,
const char *  name 
)
data1_element* data1_getelementbytagname ( data1_handle  dh,
data1_absyn abs,
data1_element parent,
const char *  tagname 
)
data1_esetname* data1_getesetbyname ( data1_handle  dh,
data1_absyn a,
const char *  name 
)

Definition at line 297 of file d1_absyn.c.

References data1_matchstr, data1_absyn::esetnames, data1_esetname::name, and data1_esetname::next.

Referenced by process_comp().

char* data1_getNodeValue ( data1_node node,
char *  pTagPath 
)
data1_tag* data1_gettagbyname ( data1_handle  dh,
data1_tagset s,
const char *  name 
)
data1_tag* data1_gettagbynum ( data1_handle  dh,
data1_tagset s,
int  type,
int  value 
)
data1_vartype* data1_getvartypeby_absyn ( data1_handle  dh,
data1_absyn absyn,
char *  zclass,
char *  type 
)

Definition at line 50 of file d1_varset.c.

References data1_getvartypebyct(), and data1_absyn::varset.

Referenced by variantBegin().

data1_vartype* data1_getvartypebyct ( data1_handle  dh,
data1_varset set,
const char *  zclass,
const char *  type 
)
int data1_iconv ( data1_handle  dh,
NMEM  m,
data1_node n,
const char *  tocode,
const char *  fromcode 
)

Definition at line 1088 of file d1_read.c.

References data1_iconv_s().

Referenced by grs_extract_sub(), and zebra_grs_retrieve().

data1_node* data1_insert_preprocess ( data1_handle  dh,
NMEM  nmem,
const char *  target,
const char **  attr,
data1_node at 
)

Definition at line 238 of file d1_read.c.

References data1_insert_preprocess_n().

data1_node* data1_insert_preprocess_n ( data1_handle  dh,
NMEM  nmem,
const char *  target,
size_t  len,
const char **  attr,
data1_node at 
)
char* data1_insert_string ( data1_handle  dh,
data1_node res,
NMEM  m,
const char *  str 
)
char* data1_insert_string_n ( data1_handle  dh,
data1_node res,
NMEM  m,
const char *  str,
size_t  len 
)
data1_node* data1_insert_taggeddata ( data1_handle  dh,
data1_node root,
data1_node at,
const char *  tagname,
NMEM  m 
)

Definition at line 443 of file d1_read.c.

References data1_add_insert_taggeddata().

int data1_is_xmlmode ( data1_handle  dh)
data1_node* data1_LookupNode ( data1_node node,
char *  pTagPath 
)
data1_node* data1_map_record ( data1_handle  dh,
data1_node n,
data1_maptab map,
NMEM  m 
)
data1_datatype data1_maptype ( data1_handle  dh,
char *  t 
)
data1_node* data1_mk_comment ( data1_handle  dh,
NMEM  mem,
const char *  buf,
data1_node parent 
)

Definition at line 367 of file d1_read.c.

References data1_mk_comment_n().

data1_node* data1_mk_comment_n ( data1_handle  dh,
NMEM  mem,
const char *  buf,
size_t  len,
data1_node parent 
)
data1_node* data1_mk_node ( data1_handle  dh,
NMEM  m 
)

Definition at line 70 of file d1_read.c.

References data1_mk_node2(), and DATA1N_root.

data1_node* data1_mk_node2 ( data1_handle  dh,
NMEM  m,
int  type,
data1_node parent 
)
data1_node* data1_mk_node_type ( data1_handle  dh,
NMEM  m,
int  type 
)

Definition at line 75 of file d1_read.c.

References data1_mk_node2().

data1_node* data1_mk_preprocess ( data1_handle  dh,
NMEM  nmem,
const char *  target,
const char **  attr,
data1_node at 
)

Definition at line 218 of file d1_read.c.

References data1_mk_preprocess_n().

data1_node* data1_mk_preprocess_n ( data1_handle  dh,
NMEM  nmem,
const char *  target,
size_t  len,
const char **  attr,
data1_node at 
)
data1_node* data1_mk_root ( data1_handle  dh,
NMEM  nmem,
const char *  name 
)
data1_node* data1_mk_tag ( data1_handle  dh,
NMEM  nmem,
const char *  tag,
const char **  attr,
data1_node at 
)
data1_node* data1_mk_tag_data ( data1_handle  dh,
data1_node at,
const char *  tagname,
NMEM  m 
)
data1_node* data1_mk_tag_data_int ( data1_handle  dh,
data1_node at,
const char *  tag,
int  num,
NMEM  nmem 
)
data1_node* data1_mk_tag_data_oid ( data1_handle  dh,
data1_node at,
const char *  tag,
Odr_oid *  oid,
NMEM  nmem 
)
data1_node* data1_mk_tag_data_text ( data1_handle  dh,
data1_node at,
const char *  tag,
const char *  str,
NMEM  nmem 
)
data1_node* data1_mk_tag_data_text_uni ( data1_handle  dh,
data1_node at,
const char *  tag,
const char *  str,
NMEM  nmem 
)
data1_node* data1_mk_tag_data_wd ( data1_handle  dh,
data1_node at,
const char *  tagname,
NMEM  m 
)

Definition at line 437 of file d1_read.c.

References data1_add_insert_taggeddata().

Referenced by zebra_grs_retrieve().

data1_node* data1_mk_tag_data_zint ( data1_handle  dh,
data1_node at,
const char *  tag,
zint  num,
NMEM  nmem 
)
data1_node* data1_mk_tag_n ( data1_handle  dh,
NMEM  nmem,
const char *  tag,
size_t  len,
const char **  attr,
data1_node at 
)
data1_node* data1_mk_tag_uni ( data1_handle  dh,
NMEM  nmem,
const char *  tag,
data1_node at 
)
data1_node* data1_mk_text ( data1_handle  dh,
NMEM  mem,
const char *  buf,
data1_node parent 
)

Definition at line 349 of file d1_read.c.

References data1_mk_text_n().

Referenced by zebra_xml_metadata().

data1_node* data1_mk_text_n ( data1_handle  dh,
NMEM  mem,
const char *  buf,
size_t  len,
data1_node parent 
)
data1_node* data1_mk_text_nf ( data1_handle  dh,
NMEM  mem,
const char *  buf,
size_t  len,
data1_node parent 
)

Definition at line 341 of file d1_read.c.

References data1_node::data, data1_mk_text_n(), and data1_node::u.

NMEM data1_nmem_get ( data1_handle  dh)
char* data1_nodetobuf ( data1_handle  dh,
data1_node n,
int  select,
int *  len 
)

Definition at line 141 of file d1_sutrs.c.

References data1_get_wrbuf(), and nodetobuf().

Referenced by zebra_grs_retrieve().

Z_ExplainRecord* data1_nodetoexplain ( data1_handle  dh,
data1_node n,
int  select,
ODR  o 
)
Z_GenericRecord* data1_nodetogr ( data1_handle  dh,
data1_node n,
int  select,
ODR  o,
int *  len 
)
char* data1_nodetoidsgml ( data1_handle  dh,
data1_node n,
int  select,
int *  len 
)
char* data1_nodetomarc ( data1_handle  dh,
data1_marctab p,
data1_node n,
int  selected,
int *  len 
)

Definition at line 468 of file d1_marc.c.

References data1_get_map_buf(), data1_get_root_tag(), and nodetomarc().

Referenced by zebra_grs_retrieve().

char* data1_nodetosoif ( data1_handle  dh,
data1_node n,
int  select,
int *  len 
)
Z_BriefBib* data1_nodetosummary ( data1_handle  dh,
data1_node n,
int  select,
ODR  o 
)
FILE* data1_path_fopen ( data1_handle  dh,
const char *  file,
const char *  mode 
)
void data1_pr_tree ( data1_handle  dh,
data1_node n,
FILE *  out 
)
data1_attset* data1_read_attset ( data1_handle  dh,
const char *  file 
)
Z_Espec1* data1_read_espec1 ( data1_handle  dh,
const char *  file 
)

Definition at line 213 of file d1_espec.c.

References data1_nmem_get(), data1_path_fopen(), read_tagunit(), and read_variant().

Referenced by data1_read_absyn().

data1_maptab* data1_read_maptab ( data1_handle  dh,
const char *  file 
)
data1_marctab* data1_read_marctab ( data1_handle  dh,
const char *  file 
)
data1_node* data1_read_node ( data1_handle  dh,
const char **  buf,
NMEM  m 
)

Definition at line 956 of file d1_read.c.

References data1_read_nodex(), and getc_mem().

Referenced by data1_read_record(), and data1_read_sgml().

data1_node* data1_read_nodex ( data1_handle  dh,
NMEM  m,
int(*)(void *fh)  get_byte,
void *  fh,
WRBUF  wrbuf 
)
data1_node* data1_read_record ( data1_handle  dh,
int(*)(void *, char *, size_t)  rf,
void *  fh,
NMEM  m 
)

Definition at line 969 of file d1_read.c.

References data1_get_read_buf(), and data1_read_node().

data1_node* data1_read_sgml ( data1_handle  dh,
NMEM  m,
const char *  buf 
)
data1_tagset* data1_read_tagset ( data1_handle  dh,
const char *  file,
int  type 
)
data1_varset* data1_read_varset ( data1_handle  dh,
const char *  file 
)
data1_node* data1_read_xml ( data1_handle  dh,
int(*)(void *, char *, size_t)  rf,
void *  fh,
NMEM  m 
)
void data1_remove_idzebra_subtree ( data1_handle  dh,
data1_node n 
)
void data1_remove_node ( data1_handle  dh,
data1_node n 
)
data1_node* data1_search_tag ( data1_handle  dh,
data1_node n,
const char *  tag 
)
void data1_set_root ( data1_handle  dh,
data1_node res,
NMEM  nmem,
const char *  name 
)
void data1_set_tabpath ( data1_handle  dh,
const char *  path 
)

Definition at line 125 of file d1_handle.c.

References data1_handle_info::tab_path.

Referenced by zebra_register_open().

void data1_set_tabroot ( data1_handle  dp,
const char *  p 
)

Definition at line 133 of file d1_handle.c.

References data1_handle_info::tab_root.

Referenced by zebra_register_open().

const char* data1_systag_lookup ( data1_absyn absyn,
const char *  tag,
const char *  default_value 
)
void data1_tag_add_attr ( data1_handle  dh,
NMEM  nmem,
data1_node res,
const char **  attr 
)

Definition at line 285 of file d1_read.c.

References data1_add_attrs(), DATA1N_tag, data1_node::tag, data1_node::u, and data1_node::which.

Referenced by grs_read_iso2709().

data1_node* get_parent_tag ( data1_handle  dh,
data1_node n 
)