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

options.h File Reference

#include <iostream>
#include <assert.h>

Include dependency graph for options.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define P(X)   do { if (verbose>0) { std::cerr << #X"=" << X << std::endl; std::cerr.flush(); } } while(0)
 
Id
options.h,v 1.6 2003/12/30 11:01:11 stoerr Exp



Functions

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


Variables

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

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

char * protectedfname
 the filename that is protected

char * eccfname
 the filename that contains protection info

char * correctedfname
 when correcting, the file where the

const int blklen = 2048
 size of one block. (not hyberblock.) 2048 bytes for CDs.

int hblen
 number of blocks put into one hyperblock

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

int verbose
 verbosity level


Define Documentation

#define P  )     do { if (verbose>0) { std::cerr << #X"=" << X << std::endl; std::cerr.flush(); } } while(0)
 

Id
options.h,v 1.6 2003/12/30 11:01:11 stoerr Exp

Definition at line 10 of file options.h.


Function Documentation

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

const int blklen = 2048
 

size of one block. (not hyberblock.) 2048 bytes for CDs.

Definition at line 20 of file options.h.

Referenced by checkErrorProtection(), correctfile(), main(), protectfile(), readandinterleave(), and writeanddeinterleave().

char* correctedfname
 

when correcting, the file where the

Definition at line 17 of file options.h.

Referenced by correctfile(), and readoptions().

char* eccfname
 

the filename that contains protection info

Definition at line 16 of file options.h.

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

const int hbcorr
 

number of blocks of error protection info for one hyperblock

Definition at line 22 of file options.h.

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

int hblen
 

number of blocks put into one hyperblock

Definition at line 21 of file options.h.

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

char* progname
 

name of the program, as it was called.

Definition at line 13 of file options.h.

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

char* protectedfname
 

the filename that is protected

Definition at line 15 of file options.h.

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

bool protectmode
 

true if protection mode, false if correction mode.

Definition at line 12 of file options.h.

Referenced by main(), and readoptions().

int verbose
 

verbosity level

Definition at line 25 of file options.h.

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


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