-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLocation.hpp
55 lines (47 loc) · 2.14 KB
/
Location.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
#ifndef LOCATION_HPP
# define LOCATION_HPP
# include "Library.hpp"
class Location {
private:
std::string _locationName;
bool _locationAutoIndex;
std::string _locationRoot;
std::string _locationIndex;
std::string _locationUploadPath;
bool _locationRedirection;
std::string _locationBinPathPy;
std::string _locationBinPathSh;
std::string _locationPathCgi;
int _locationErrorCode;
std::string _locationErrorDescription;
std::string _locationMethod;
bool _cgiInLocation;
std::string _redirectionSite;
public:
Location();
virtual ~Location();
void setLocationName(const std::string& str);
void setLocationAutoIndex(const bool& index);
void setLocationRoot(const std::string& str);
void setLocationIndex(const std::string& str);
void setLocationUploadPath(const std::string& str);
void setLocationRedirection(const bool& redirection);
void setRedirectionSite(const std::string& str);
void setLocationBinPathPy(const std::string& str);
void setLocationBinPathSh(const std::string& str);
void setIsCgi(const bool& cgi);
void setLocationPathCgi(const std::string&);
void setLocationError(const int &code, const std::string &description);
void setLocationMethod(const std::string& str);
const std::string& getLocationPathCgi(void);
const std::string& getLocationName(void);
const bool& getCgiInLocation(void);
const bool& getLocationRedirection(void);
const std::string& getLocationIndex();
const std::string& getLocationRoot();
const std::string& getLocationUpload();
const std::string& getLocationBinPathPy(void);
const std::string& getLocationBinPathSh(void);
const std::string& getRedirectionSite(void);
};
#endif