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

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

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 or SAttEncoder or something.

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 s-attribute is stored

Referenced by range_declare().

cl_lexhash el_attributes

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().

cl_string_list el_atts_list

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

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

cl_lexhash el_undeclared_attributes

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

Referenced by range_declare(), and range_open().

int element_drop_count

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().

int feature_set

stored values are feature sets => validate and normalise format

Referenced by range_declare(), and range_open().

int has_children

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().

int in_registry

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().

int max_recursion

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

name of the s-attribute (range)

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

int null_attribute

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().

struct _Range** recursion_children

(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().

int recursion_level

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().

int store_values

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: