File: params.h

package info (click to toggle)
dnprogs 2.18-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,896 kB
  • ctags: 3,051
  • sloc: ansic: 18,586; cpp: 9,436; makefile: 669; sh: 502; awk: 13
file content (29 lines) | stat: -rw-r--r-- 553 bytes parent folder | download
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
// 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];
    bool  use_file;
    bool  use_metafiles;
    bool  use_adf;
    int   remote_os;
    
    char *type_name()
    {
	switch(auto_type)
	{
	case GUESS_TYPE:
	    return "guess";
	case CHECK_EXT:
	    return "ext";
	case NONE:
	    return "none";
	default:
	    return "ugh";
	}
    }
};