CWB
Data Structures | Typedefs | Enumerations | Functions | Variables
print-modes.h File Reference
#include "corpmanag.h"
#include "attlist.h"

Data Structures

struct  _print_option_rec_
 PrintOptions: records a set of print options. More...
 
struct  _print_descr_rec_
 The PrintDescriptionRecord object. More...
 

Typedefs

typedef enum outputmode PrintMode
 Print mode: specifies output formats for CQP. More...
 
typedef struct _print_option_rec_ PrintOptions
 PrintOptions: records a set of print options. More...
 
typedef struct _print_descr_rec_ PrintDescriptionRecord
 The PrintDescriptionRecord object. More...
 
typedef char *(* TokenEscapeFunction )(char *)
 

Enumerations

enum  outputmode {
  PrintASCII, PrintSGML, PrintHTML, PrintLATEX,
  PrintBINARY, PrintUNKNOWN
}
 Print mode: specifies output formats for CQP. More...
 

Functions

AttributeListComputePrintStructures (CorpusList *cl)
 Computes a list of s-attributes to print from the PrintStructure global option setting. More...
 
void ParsePrintOptions (void)
 Reads the global string printModeOptions and parses it to update the GlobalPrintOptions. More...
 
void CopyPrintOptions (PrintOptions *target, PrintOptions *source)
 Copies a PrintOptions object. More...
 

Variables

PrintMode GlobalPrintMode
 Global print-mode setting. More...
 
PrintOptions GlobalPrintOptions
 Global print-options: all booleans initially set to false. More...
 

Typedef Documentation

The PrintDescriptionRecord object.

Contains strings / function pointers that control the printing mode (esp. the format of an individual concordance line).

Note that currently it is not possible for a new PDR to be defined at runtime. It must be done at compile-time.

typedef enum outputmode PrintMode

Print mode: specifies output formats for CQP.

PrintOptions: records a set of print options.

All members starting in print_ are Boolean, to be interpreted as print_XX –> "XX is to be printed"

typedef char*(* TokenEscapeFunction)(char *)

Enumeration Type Documentation

enum outputmode

Print mode: specifies output formats for CQP.

Enumerator
PrintASCII 
PrintSGML 
PrintHTML 
PrintLATEX 
PrintBINARY 
PrintUNKNOWN 

Function Documentation

AttributeList* ComputePrintStructures ( CorpusList cl)

Computes a list of s-attributes to print from the PrintStructure global option setting.

PrintStructure is itself updated.

Parameters
clThe corpus from which to find the attributes.
Returns
An attribute list containing the attributes to be printed.

References AddNameToAL(), _Attribute::any, ATT_STRUC, _attrbuf::attribute, cl::corpus, cqpmessage(), DestroyAttributeList(), Error, find_attribute, _attlist::list, NewAttributeList(), _attrbuf::next, PRINT_STRUC_SEP, printStructure, TCorpus::registry_name, structure_has_values, token, VerifyList(), and Warning.

Referenced by execute_side_effects().

void CopyPrintOptions ( PrintOptions target,
PrintOptions source 
)

Copies a PrintOptions object.

Parameters
targetThe PrintOptions object to be overwritten.
sourceThe PrintOptions object to copy.
void ParsePrintOptions ( void  )

Variable Documentation

PrintMode GlobalPrintMode
PrintOptions GlobalPrintOptions