Line data Source code
1 : #pragma once
2 :
3 : #include <string>
4 : #include <memory>
5 : #include <functional>
6 :
7 : namespace demo{ namespace hash{
8 :
9 : namespace request
10 : {
11 2 : struct get_hash
12 : {
13 : std::string value;
14 : typedef std::unique_ptr<get_hash> ptr;
15 : };
16 : }
17 :
18 : namespace response
19 : {
20 1 : struct get_hash
21 : {
22 : size_t value = 0;
23 : typedef std::unique_ptr<get_hash> ptr;
24 : typedef std::function< void(ptr)> handler;
25 : };
26 : }
27 :
28 : }}
|