ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/CGIRenegadeMapSelector/MapSelector.h
Revision: 368
Committed: 2008-08-23T02:44:00-07:00 (16 years, 10 months ago) by douglas
Content type: text/x-c
File size: 631 byte(s)
Log Message:
Rearranged everything else.

File Contents

# User Rev Content
1 douglas 136 // CGI Renegade Map Selector
2     //
3     // Douglas Thrift
4     //
5     // MapSelector.h
6    
7     #ifndef _MapSelector_h_
8     #define _MapSelector_h_
9    
10     #include "CGIRenegadeMapSelector.h"
11     #include "RenegadeConfig.h"
12    
13 douglas 137 extern RenegadeConfig* config;
14    
15 douglas 136 class MapSelector
16     {
17     private:
18 douglas 137 string server;
19     string ini;
20     string html;
21     string redirect;
22     long session;
23     vector<string> available;
24     vector<string> selected;
25     long load(long session);
26     void select(const string& button);
27     string directory()
28     {
29     ostringstream path;
30    
31     path << "/tmp/" << program << '_' << session;
32    
33     return path.str();
34     }
35 douglas 136 public:
36 douglas 137 MapSelector();
37     ~MapSelector() {}
38 douglas 136 };
39    
40     #endif // _MapSelector_h_