_Range Struct Reference

The Range object represents a range of corpus positions. More...

#include <corpmanag.h>

Data Fields


Detailed Description

The Range object represents a range of corpus positions.

Range object: represents an S-attribute being encoded.


Field Documentation

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

stored values are feature sets => validate and normalise format

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

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

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

char* name

range name

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!

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

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


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

Generated on Sun Feb 28 18:08:04 2010 for CWB by  doxygen 1.6.1