-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfiguration.hpp
59 lines (37 loc) · 976 Bytes
/
Configuration.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef Configuration_hpp
#define Configuration_hpp
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <boost/python.hpp>
#include <boost/python/dict.hpp>
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <string>
#include <ctime>
#include "Debug.cpp"
#include "IPCHandler.hpp"
#include "Filesystem.hpp"
typedef struct {
string PathRel;
uint InterpreterCount;
std::shared_ptr<Filesystem> FilesystemRef;
} NamespaceProps_t;
typedef unordered_map<string, NamespaceProps_t> Namespaces_t;
typedef pair<string, NamespaceProps_t> NamespacePair_t;
typedef vector<string> Mimetypes_t;
typedef Namespaces_t& NamespacesRef_t;
class Configuration
{
public:
Configuration();
~Configuration();
string RunAsUnixUser;
string RunAsUnixGroup;
uint16_t RunAsUnixUserID;
uint16_t RunAsUnixGroupID;
string BasePath;
string ServerAddress;
uint16_t ServerPort;
Mimetypes_t Mimetypes;
Namespaces_t Namespaces;
};
#endif