CWB
Data Fields
_context_description_block Struct Reference

ContextDescriptor object: a bundle of CQP options describing how a list of corpus positions is to be displayed in a concordance: with left context, with right context, with what attributes, etc. More...

#include <context_descriptor.h>

Data Fields

int left_width
 Amount of context to show before the match, in units specified by left_type. More...
 
int left_type
 Unit in which context is measured; Set to one of the constants: CHAR_CONTEXT, WORD_CONTEXT, STRUC_CONTEXT, ALIGN_CONTEXT. More...
 
char * left_structure_name
 
Attributeleft_structure
 
int right_width
 Amount of context to show after the match, in units specified by right_type. More...
 
int right_type
 Unit in which context is measured; Set to one of the constants: CHAR_CONTEXT, WORD_CONTEXT, STRUC_CONTEXT, ALIGN_CONTEXT. More...
 
char * right_structure_name
 
Attributeright_structure
 
int print_cpos
 Boolean flag: if true, print corpus position numbers. More...
 
AttributeListattributes
 positional attributes to print More...
 
AttributeListstrucAttributes
 structural attributes to print More...
 
AttributeListprintStructureTags
 structure tag (values) to print More...
 
AttributeListalignedCorpora
 aligned corpora from which to print parallel data More...
 

Detailed Description

ContextDescriptor object: a bundle of CQP options describing how a list of corpus positions is to be displayed in a concordance: with left context, with right context, with what attributes, etc.

It is passed around between different print functions so that they know what to do!

Note that the options contained here are settable by the user. This is in contrast to the "options" held in the PrintDecriptionRecord, which are built-in for each print style; the user can choose among modes but cannot modify the settings individually.

TODO This object is confusingly named, as it DOES NOT merely specify the "Context" size; it also specifies which attributes get printed, and so on.

(It would be better called a "concordance line co-text configuration object".)

See also
PrintDescriptionRecord

TODO why is it necessary for concordance-printing options to be spread across two separate objects?

Field Documentation

AttributeList* alignedCorpora
AttributeList* attributes
Attribute* left_structure
char* left_structure_name
int left_type
int left_width
int print_cpos
AttributeList* printStructureTags
Attribute* right_structure
char* right_structure_name
int right_type
int right_width
AttributeList* strucAttributes

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