Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

options.cc File Reference

#include "options.h"
#include <stdlib.h>
#include <iostream>
#include <iomanip>

Include dependency graph for options.cc:

Include dependency graph

Go to the source code of this file.

Functions

void printhelp (char *const progname)
void readoptions (int argc, char *const argv[])
 read and interpret options and set above parameters


Variables

bool protectmode = false
 true if protection mode, false if correction mode.

char * progname = NULL
 name of the program, as it was called.

char * protectedfname = NULL
 the filename that is protected

char * eccfname = NULL
 the filename that contains protection info

char * correctedfname = NULL
 when correcting, the file where the

int hblen = 100
 number of blocks put into one hyperblock

const int hbcorr = 6
 number of blocks of error protection info for one hyperblock

int verbose = 0
 verbosity level

const char * optstring = "?vb:cp"


Function Documentation

void printhelp char *const  progname  ) 
 

Definition at line 29 of file options.cc.

References progname.

Referenced by readoptions().

void readoptions int  argc,
char *const  argv[]
 

read and interpret options and set above parameters

Definition at line 37 of file options.cc.

References correctedfname, eccfname, hbcorr, hblen, optstring, P, printhelp(), progname, protectedfname, protectmode, and verbose.

Referenced by main().

Here is the call graph for this function:


Variable Documentation

char* correctedfname = NULL
 

when correcting, the file where the

Definition at line 18 of file options.cc.

Referenced by correctfile(), and readoptions().

char* eccfname = NULL
 

the filename that contains protection info

Definition at line 17 of file options.cc.

Referenced by correctfile(), protectfile(), readheader(), and readoptions().

const int hbcorr = 6
 

number of blocks of error protection info for one hyperblock

Definition at line 22 of file options.cc.

Referenced by checkErrorProtection(), correctfile(), hyperblockcorrect(), hyperblockprotect(), protectfile(), and readoptions().

int hblen = 100
 

number of blocks put into one hyperblock

Definition at line 21 of file options.cc.

Referenced by checkErrorProtection(), correctfile(), hyperblockcorrect(), hyperblockprotect(), protectfile(), readandinterleave(), and readoptions().

const char* optstring = "?vb:cp"
 

Definition at line 27 of file options.cc.

Referenced by readoptions().

char* progname = NULL
 

name of the program, as it was called.

Definition at line 13 of file options.cc.

Referenced by correctfile(), printhelp(), readandinterleave(), readheader(), and readoptions().

char* protectedfname = NULL
 

the filename that is protected

Definition at line 16 of file options.cc.

Referenced by correctfile(), protectfile(), and readoptions().

bool protectmode = false
 

true if protection mode, false if correction mode.

Definition at line 12 of file options.cc.

Referenced by main(), and readoptions().

int verbose = 0
 

verbosity level

Definition at line 25 of file options.cc.

Referenced by correctfile(), protectfile(), and readoptions().


Generated on Tue Dec 30 12:07:38 2003 for ErrorProtect by doxygen 1.3.2