ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/CGIRenegadeMapSelector/MapSelector.h
Revision: 137
Committed: 2003-04-14T19:42:11-07:00 (19 years, 9 months ago) by douglas
Content type: text/x-c
File size: 631 byte(s)
Log Message:
Did stuff!

File Contents

# Content
1 // 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 extern RenegadeConfig* config;
14
15 class MapSelector
16 {
17 private:
18 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 public:
36 MapSelector();
37 ~MapSelector() {}
38 };
39
40 #endif // _MapSelector_h_