cwb-align-encode.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "../cl/cl.h"
#include "../cl/storage.h"
#include "../cl/attributes.h"

Functions

Variables


Function Documentation

int main ( int  argc,
char *  argv[] 
)
int parse_args ( int  ac,
char *  av[],
int  min_args 
)

Parses the program's commandline arguments.

Usage: optindex = parse_args(argc, argv, required_arguments);

Parameters:
ac The program's argc
av The program's argv
min_args Minimum number of arguments to be parsed.
Returns:
The value of optind after parsing, ie the index of the first argument in argv[]

References compatibility, data_dir, data_dir_from_corpus, print_usage(), progname, registry_dir, reverse, and verbose.

Referenced by main().

void print_usage ( void   ) 

Prints a message describing how to use the program to STDERR and then exits.

References progname.

Referenced by parse_args().


Variable Documentation

int compatibility = 0

create .alg file for backward compatibility ?

Referenced by main(), and parse_args().

char* data_dir = NULL

where to store encoded alignment attribute

Referenced by main(), and parse_args().

determine data directory from registry entry?

Referenced by main(), and parse_args().

char* progname = ""

Name of the program (from the shell).

char* registry_dir = NULL

CL registry directory.

Referenced by main(), and parse_args().

int reverse = 0

encode inverse alignment?

Referenced by main(), and parse_args().

int verbose = 0

print some information about what files are created

Referenced by cwbci_parse_options(), do_alignment(), main(), parse_args(), and parse_options().


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