The Range object represents a range of corpus positions. More...
#include <corpmanag.h>
The Range object represents a range of corpus positions.
Range object: represents an S-attribute being encoded.
char* annot |
and annotation (if there is one)
int automatic |
automatic attributes are the 'children' used for recursion and element attributes below
FILE* avs |
fd of avs component (the attribute values)
FILE* avx |
fd of avx component (the attribute value index)
char* dir |
directory where this range is stored
maps XML element attribute names to the appropriate s-attribute 'children' (Range *)
list of declared element attribute names, required by close_range() function
remembers undeclared element attributes, so warnings will be issued only once
count how many recursive subelements were dropped because of the max_recursion limit
int end |
end position of the corpus interval
FILE* fd |
fd of rng component
int feature_set |
stored values are feature sets => validate and normalise format
int has_children |
whether attribute values of XML elements are stored in s-attribute 'children'
int in_registry |
with "-R {reg_file}", this is set to 1 when the attribute is written to the registry (avoid duplicates)
int is_open |
boolean: whether there is an open structure at the moment
lexicon hash for attribute values
int max_recursion |
maximum auto-recursion level; 0 = no recursion (maximal regions), -1 = assume flat structure
char* name |
range name
int null_attribute |
a NULL attribute ignores all corresponding XML tags, without checking structure or annotations
int num |
number of current (if this->is_open) or next structure
int offset |
string offset for next string (in avs component)
struct _Range** recursion_children [read] |
(usually very short) list of s-attribute 'children' for auto-recursion; recursion_children[0] points to self!
int recursion_level |
keeps track of level of embedding when auto-recursion is activated
int start |
start position of the corpus interval
int start_pos |
if this->is_open, remember start position of current range
int store_values |
flag indicating whether to store values (does _not_ automatically apply to children, see below)