My Project

Loading...
Searching...
No Matches
Global.h
1#ifndef __Global_h__
2# define __Global_h__
3
4# include "MString.h"
5# include "CGIFormattedData.h"
6# include <map>
7
8 namespace jet {
9
10 class __mysql;
11
12 class Global {
13
14 public:
15 Global(char **envp);
16 virtual ~Global();
17
18 void dump();
19 bool sessionExists(coreutils::MString sessionId);
20 void addSession(coreutils::MString sessionId, __mysql *mysql);
21 void removeSession(coreutils::MString sessionId);
22 __mysql * getSession(coreutils::MString sessionId);
23 coreutils::ZString getSessionVariable(coreutils::MString &splitName);
24 void outputHeaders();
25 void setupFormData(coreutils::ZString &formdata);
26 void setupFormURLEncoded(coreutils::ZString &formdata);
27 char *errorCursor = NULL;
28
29 coreutils::CGIFormattedData cookies;
30 std::map<coreutils::MString, coreutils::MString> variables;
31 std::map<coreutils::MString, coreutils::MString> cgiVariables;
32 std::map<coreutils::MString, __mysql *> sessions;
33 std::map<coreutils::MString, coreutils::MString> headers;
34 std::map<coreutils::MString, coreutils::MString> tags;
35 char **envp;
36 bool cgi = false;
37 bool session = false;
38 coreutils::MString sessionId;
39
40 };
41
42}
43
44#endif
jet::Global
Definition Global.h:12
jet::__mysql
Definition __mysql.h:12