ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Spectre/Spectre.h
Revision: 162
Committed: 2003-06-09T22:01:14-07:00 (22 years, 1 month ago) by douglas
Content type: text/x-c
File size: 790 byte(s)
Log Message:
Worked on Configurator::configurate().

File Contents

# User Rev Content
1 douglas 148 // Spectre Samba Mounter
2     //
3     // Douglas Thrift
4     //
5     // Spectre.h
6    
7     #ifndef _Spectre_h_
8     #define _Spectre_h_
9    
10     #include <iostream>
11 douglas 159 #include <fstream>
12 douglas 162 #include <string>
13     #include <sstream>
14 douglas 148 #include <vector>
15     #include <set>
16 douglas 153 #include <map>
17 douglas 148 #include <cstdlib>
18     #include <cstdio>
19    
20     #include <pstream.h>
21 douglas 155 #include <sys/utsname.h>
22 douglas 148 #include <sys/types.h>
23     #include <sys/stat.h>
24     #include <dirent.h>
25     #include <pwd.h>
26     #include <unistd.h>
27    
28     using namespace std;
29     using namespace redi;
30    
31 douglas 154 struct Config
32     {
33     string install;
34     string smbclient;
35 douglas 159 string mount;
36 douglas 154 string root;
37 douglas 155 multimap<string, string> hosts;
38 douglas 154 };
39    
40 douglas 153 extern string program;
41     extern string programName;
42     extern string programVersion;
43     extern bool debug;
44    
45 douglas 154 extern Config config;
46    
47 douglas 155 string platform();
48 douglas 153 void usage();
49     void version();
50 douglas 155 void configure();
51 douglas 153
52 douglas 148 #endif // _Spectre_h_