File: params.h

package info (click to toggle)
dnprogs 2.52
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,644 kB
  • ctags: 4,021
  • sloc: ansic: 26,737; cpp: 10,666; makefile: 832; sh: 537; awk: 13
file content (32 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// This is really just a struct.
// All the relevant command-line parameters are passed down
// to the work classes using this class.
class fal_params
{
 public:
    int   verbosity;
    enum  {GUESS_TYPE, CHECK_EXT, NONE} auto_type;
    char  auto_file[PATH_MAX];
    char  vroot[PATH_MAX];
    int   vroot_len;
    bool  use_file;
    bool  use_metafiles;
    bool  use_adf;
    bool  can_do_stmlf;
    int   remote_os;

    const char *type_name()
    {
	switch(auto_type)
	{
	case GUESS_TYPE:
	    return "guess";
	case CHECK_EXT:
	    return "ext";
	case NONE:
	    return "none";
	default:
	    return "ugh";
	}
    }
};