#include "options.h"
#include <stdlib.h>
#include <iostream>
#include <iomanip>
Include dependency graph for options.cc:
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" |
|
Definition at line 29 of file options.cc. References progname. Referenced by readoptions(). |
|
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:
|
when correcting, the file where the
Definition at line 18 of file options.cc. Referenced by correctfile(), and readoptions(). |
|
the filename that contains protection info
Definition at line 17 of file options.cc. Referenced by correctfile(), protectfile(), readheader(), and readoptions(). |
|
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(). |
|
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(). |
|
Definition at line 27 of file options.cc. Referenced by readoptions(). |
|
name of the program, as it was called.
Definition at line 13 of file options.cc. Referenced by correctfile(), printhelp(), readandinterleave(), readheader(), and readoptions(). |
|
the filename that is protected
Definition at line 16 of file options.cc. Referenced by correctfile(), protectfile(), and readoptions(). |
|
true if protection mode, false if correction mode.
Definition at line 12 of file options.cc. Referenced by main(), and readoptions(). |
|
verbosity level
Definition at line 25 of file options.cc. Referenced by correctfile(), protectfile(), and readoptions(). |