print-modes.c File Reference

#include <stdio.h>
#include <string.h>
#include "../cl/corpus.h"
#include "../cl/attributes.h"
#include "../cl/cdaccess.h"
#include "corpmanag.h"
#include "attlist.h"
#include "output.h"
#include "options.h"

Defines

Functions

Variables


Define Documentation

#define PRINT_STRUC_SEP   ": ,"

String containing print structure separators.

Referenced by ComputePrintStructures().


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:
cl The 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(), VerifyList(), and Warning.

Referenced by execute_side_effects().

void CopyPrintOptions ( PrintOptions target,
PrintOptions source 
)

Copies a PrintOptions object.

Parameters:
target The PrintOptions object to be overwritten.
source The PrintOptions object to copy.
void ParsePrintOptions ( void   ) 
void ResetPrintOptions ( void   ) 

This function doesn't do anything yet.


Variable Documentation

PrintMode GlobalPrintMode = PrintASCII
PrintOptions GlobalPrintOptions = { 0, 0, 0, 0, 0 }

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