-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathcpp.hpp
47 lines (39 loc) · 980 Bytes
/
cpp.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
#pragma once
#include "servlet.hpp"
#include "module.hpp"
#include <unordered_map>
#include <memory>
#include <string>
#include <list>
namespace hi
{
class cpp
{
public:
cpp();
cpp(const std::vector<std::string> &path);
virtual ~cpp();
void main(const request &, response &);
private:
/*class cb_t
{
private:
typedef servlet *create_t();
typedef void destroy_t(servlet *);
public:
cb_t() = delete;
cb_t(const std::string &);
~cb_t();
void main(const request &, response &);
private:
servlet *make_obj();
void free(servlet *);
private:
void *m;
create_t *create;
destroy_t *destroy;
};*/
std::list<std::string> path;
std::unordered_map<std::string, std::shared_ptr<module<servlet>>> modules;
};
} // namespace anybyte