ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/Spectre/trunk/Spectre.hpp
Revision: 159
Committed: 2003-06-09T20:12:03-07:00 (22 years ago) by douglas
Content type: text/x-c
Original Path: trunk/Spectre/Spectre.h
File size: 771 byte(s)
Log Message:
Wrote the config file and changed some stuff.

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 148 #include <vector>
13     #include <set>
14 douglas 153 #include <map>
15 douglas 148 #include <cstdlib>
16     #include <cstdio>
17     #include <string>
18    
19     #include <pstream.h>
20 douglas 155 #include <sys/utsname.h>
21 douglas 148 #include <sys/types.h>
22     #include <sys/stat.h>
23     #include <dirent.h>
24     #include <pwd.h>
25     #include <unistd.h>
26    
27     using namespace std;
28     using namespace redi;
29    
30 douglas 154 struct Config
31     {
32     string install;
33     string smbclient;
34 douglas 159 string mount;
35 douglas 154 string root;
36 douglas 155 multimap<string, string> hosts;
37 douglas 154 };
38    
39 douglas 153 extern string program;
40     extern string programName;
41     extern string programVersion;
42     extern bool debug;
43    
44 douglas 154 extern Config config;
45    
46 douglas 155 string platform();
47 douglas 153 void usage();
48     void version();
49 douglas 155 void configure();
50 douglas 153
51 douglas 148 #endif // _Spectre_h_