CWB
Data Fields

_Range Struct Reference

The Range object represents a range of corpus positions - for instance, the range enclosed by an instance of an s-attribute. More...

#include <corpmanag.h>

Data Fields


Detailed Description

The Range object represents a range of corpus positions - for instance, the range enclosed by an instance of an s-attribute.

Range object: represents an S-attribute being encoded, and holds some information about the currently-being-processed instance of that S-attribute.

TODO should probably be called an SAttr


Field Documentation

char* annot

and annotation (if there is one)

Referenced by range_close(), range_declare(), and range_open().

int automatic

automatic attributes are the 'children' used for recursion and element attributes below

Referenced by main(), and range_declare().

FILE* avs

fd of avs component (the attribute values)

Referenced by main(), range_close(), and range_declare().

FILE* avx

fd of avx component (the attribute value index)

Referenced by main(), range_close(), and range_declare().

char* dir

directory where this range is stored

Referenced by range_declare().

maps XML element attribute names to the appropriate s-attribute 'children' (Range *)

Referenced by range_close(), range_declare(), range_open(), and range_print_registry_line().

list of declared element attribute names, required by range_close() function

Referenced by range_close(), range_declare(), range_open(), and range_print_registry_line().

remembers undeclared element attributes, so warnings will be issued only once

Referenced by range_declare(), and range_open().

count how many recursive subelements were dropped because of the max_recursion limit

Referenced by main(), range_declare(), and range_open().

int end
FILE* fd

fd of rng component

Referenced by main(), range_close(), and range_declare().

stored values are feature sets => validate and normalise format

Referenced by range_declare(), and range_open().

whether attribute values of XML elements are stored in s-attribute 'children'

Referenced by range_close(), range_declare(), range_open(), and range_print_registry_line().

with "-R {reg_file}", this is set to 1 when the attribute is written to the registry (avoid duplicates)

Referenced by range_declare(), and range_print_registry_line().

int is_open

boolean: whether there is an open structure at the moment

Referenced by main(), range_close(), range_declare(), and range_open().

lexicon hash for attribute values

Referenced by range_close(), and range_declare().

maximum auto-recursion level; 0 = no recursion (maximal regions), -1 = assume flat structure

Referenced by main(), range_close(), range_declare(), range_open(), and range_print_registry_line().

char* name

a NULL attribute ignores all corresponding XML tags, without checking structure or annotations

Referenced by main(), range_close(), range_declare(), range_open(), and range_print_registry_line().

int num

number of current (if this->is_open) or next structure

Referenced by range_close(), and range_declare().

int offset

string offset for next string (in avs component)

Referenced by range_close(), and range_declare().

(usually very short) list of s-attribute 'children' for auto-recursion; use as array; recursion_children[0] points to self!

Referenced by range_close(), range_declare(), range_open(), and range_print_registry_line().

keeps track of level of embedding when auto-recursion is activated

Referenced by main(), range_close(), range_declare(), and range_open().

int start
int start_pos

if this->is_open, remember start position of current range

Referenced by range_close(), range_declare(), and range_open().

flag indicating whether to store values (does _not_ automatically apply to children, see below)

Referenced by main(), range_close(), range_declare(), range_open(), and range_print_registry_line().


The documentation for this struct was generated from the following files: