YAZ
5.34.0
|
Little toy-thing to read GRS-1 records from a file. More...
#include <stdio.h>
#include <stdlib.h>
#include <yaz/proto.h>
#include <yaz/log.h>
#include "ztest.h"
Go to the source code of this file.
Macros | |
#define | GRS_MAX_FIELDS 50 |
Functions | |
static Z_GenericRecord * | read_grs1 (FILE *f, ODR o) |
Z_GenericRecord * | dummy_grs_record (int num, ODR o) |
Little toy-thing to read GRS-1 records from a file.
Definition in file read-grs.c.
#define GRS_MAX_FIELDS 50 |
Definition at line 20 of file read-grs.c.
Z_GenericRecord* dummy_grs_record | ( | int | num, |
ODR | o | ||
) |
|
static |
Definition at line 22 of file read-grs.c.
References Z_TaggedElement::appliedVariant, Z_TaggedElement::content, Z_GenericRecord::elements, GRS_MAX_FIELDS, Z_TaggedElement::metaData, Z_GenericRecord::num_elements, Z_StringOrNumeric::numeric, odr_intdup(), odr_malloc(), odr_strdup(), Z_StringOrNumeric::string, Z_ElementData::string, Z_ElementData::subtree, Z_TaggedElement::tagOccurrence, Z_TaggedElement::tagType, Z_TaggedElement::tagValue, type, Z_StringOrNumeric::u, Z_ElementData::u, Z_StringOrNumeric::which, Z_ElementData::which, yaz_isspace, yaz_log(), YLOG_WARN, Z_ElementData_string, Z_ElementData_subtree, Z_StringOrNumeric_numeric, and Z_StringOrNumeric_string.
Referenced by dummy_grs_record().