#include <iostream>
#include <assert.h>
Include dependency graph for options.h:
This graph shows which files directly or indirectly include this file:
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) |
| |
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 |
|
|
|
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:
|
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(). |
|
when correcting, the file where the
Definition at line 17 of file options.h. Referenced by correctfile(), and readoptions(). |
|
the filename that contains protection info
Definition at line 16 of file options.h. Referenced by correctfile(), protectfile(), readheader(), and readoptions(). |
|
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(). |
|
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(). |
|
name of the program, as it was called.
Definition at line 13 of file options.h. Referenced by correctfile(), printhelp(), readandinterleave(), readheader(), and readoptions(). |
|
the filename that is protected
Definition at line 15 of file options.h. Referenced by correctfile(), protectfile(), and readoptions(). |
|
true if protection mode, false if correction mode.
Definition at line 12 of file options.h. Referenced by main(), and readoptions(). |
|
verbosity level
Definition at line 25 of file options.h. Referenced by correctfile(), protectfile(), and readoptions(). |