CWB
Data Fields
cl Struct Reference

The CorpusList object records information on a corpus that CQP recognises. More...

#include <corpmanag.h>

Data Fields

char * name
 corpus name More...
 
char * mother_name
 name of the original corpus. More...
 
int mother_size
 size (nr tokens) of mother More...
 
char * registry
 registry directory of the original corpus. More...
 
char * abs_fn
 absolute file name More...
 
enum corpus_type type
 type of the corpus More...
 
char * local_dir
 for unloaded subcorpora, this is the directory where the subcorpus is stored on disk; required for delayed loading (in ensure_corpus_size()) More...
 
char * query_corpus
 name of the corpus the query was run on More...
 
char * query_text
 the query text proper More...
 
Boolean saved
 is the corpus saved (=stored on disk)? More...
 
Boolean loaded
 is the corpus loaded? More...
 
Boolean needs_update
 True iff saved & loaded & contents changed. More...
 
Corpuscorpus
 associated corpus data structure (from the Corpus Library) More...
 
Rangerange
 an array of corpus intervals More...
 
int size
 number of intervals More...
 
int * sortidx
 sorting index for intervals More...
 
int * targets
 list of targets More...
 
int * keywords
 one keyword, for each concordance line More...
 
ContextDescriptorcd
 additional attributes to print – only for ``SYSTEM'' corpora More...
 
struct clnext
 Next corpus on CQP's linked list. More...
 

Detailed Description

The CorpusList object records information on a corpus that CQP recognises.

This might be an actual corpus in the registry, or a subcorpus, or a query result.

Note that CorpusList is a bit of a misnomer, although it IS a linked-list entry object, and CQP keeps information on the "corpora" it currently knows about on such a list, in fact this object is often used for passing around information about individual corpora, queries etc. as well.

Field Documentation

char* abs_fn

additional attributes to print – only for ``SYSTEM'' corpora

Referenced by initialize_cl(), and NewCL().

Corpus* corpus
int* keywords
Boolean loaded
char* local_dir

for unloaded subcorpora, this is the directory where the subcorpus is stored on disk; required for delayed loading (in ensure_corpus_size())

Referenced by ensure_corpus_size(), load_corpusnames(), and NewCL().

char* mother_name
int mother_size
char* name
Boolean needs_update
struct cl* next
char* query_corpus
char* query_text
Range* range
char* registry
Boolean saved
int size
int* sortidx
int* targets
enum corpus_type type

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