|
CWB
|
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include "../cl/globals.h"#include "../cl/storage.h"#include "../cl/attributes.h"Functions | |
| void | alignencode_usage (void) |
| Prints a message describing how to use the program to STDERR and then exits. More... | |
| int | alignencode_parse_args (int ac, char *av[], int min_args) |
| Parses the program's commandline arguments. More... | |
| int | main (int argc, char *argv[]) |
| Main function for cwb-align-encode. More... | |
Variables | |
| char * | progname = "" |
| Name of the program (from the shell) More... | |
| int | compatibility = 0 |
| create .alg file for backward compatibility ? More... | |
| char * | registry_dir = NULL |
| CL registry directory. More... | |
| int | reverse = 0 |
| encode inverse alignment? More... | |
| char * | data_dir = NULL |
| where to store encoded alignment attribute More... | |
| int | data_dir_from_corpus = 0 |
| determine data directory from registry entry? More... | |
| int | verbose = 0 |
| print some information about what files are created More... | |
| int alignencode_parse_args | ( | int | ac, |
| char * | av[], | ||
| int | min_args | ||
| ) |
Parses the program's commandline arguments.
Usage:
optindex = alignencode_parse_args(argc, argv, required_arguments);
| ac | The program's argc |
| av | The program's argv |
| min_args | Minimum number of arguments to be parsed. |
References alignencode_usage(), compatibility, data_dir, data_dir_from_corpus, progname, registry_dir, reverse, and verbose.
Referenced by main().
| void alignencode_usage | ( | void | ) |
Prints a message describing how to use the program to STDERR and then exits.
References progname, and VERSION.
Referenced by alignencode_parse_args().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main function for cwb-align-encode.
| argc | Number of command-line arguments. |
| argv | Command-line arguments. |
References af, align_name, alignencode_parse_args(), ATT_ALIGN, ATT_POS, cl_close_stream(), cl_id_tolower(), cl_max_cpos(), CL_MAX_FILENAME_LENGTH, CL_MAX_LINE_LENGTH, cl_new_attribute, cl_new_corpus(), cl_open_stream(), cl_strdup(), CL_STREAM_MAGIC, CL_STREAM_READ, CompAlignData, compatibility, component_full_name(), CompXAlignData, corpus1, corpus1_name, corpus2, corpus2_name, data_dir, data_dir_from_corpus, line, NwriteInt(), progname, registry_dir, reverse, s1_name, s2_name, size1, size2, SUBDIR_SEP_STRING, verbose, w1, and w2.
| int compatibility = 0 |
create .alg file for backward compatibility ?
Referenced by alignencode_parse_args(), and main().
| char* data_dir = NULL |
where to store encoded alignment attribute
Referenced by alignencode_parse_args(), and main().
| int data_dir_from_corpus = 0 |
determine data directory from registry entry?
Referenced by alignencode_parse_args(), and main().
| char* progname = "" |
Name of the program (from the shell)
Referenced by alignencode_parse_args(), alignencode_usage(), and main().
| char* registry_dir = NULL |
CL registry directory.
Referenced by alignencode_parse_args(), and main().
| int reverse = 0 |
encode inverse alignment?
Referenced by alignencode_parse_args(), and main().
| int verbose = 0 |
print some information about what files are created
Referenced by alignencode_parse_args(), and main().
1.8.8