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_ |