Line data Source code
1 : #pragma once
2 :
3 : #include <string>
4 : #include <memory>
5 : #include <functional>
6 :
7 : namespace demo{
8 :
9 : namespace request
10 : {
11 2 : struct set
12 : {
13 : std::string key;
14 : std::string value;
15 : typedef std::unique_ptr<set> ptr;
16 :
17 0 : static set create_schema()
18 : {
19 0 : set sch;
20 0 : sch.key = "key1";
21 0 : sch.value = "value1";
22 0 : return sch;
23 : }
24 : };
25 : }
26 :
27 : namespace response
28 : {
29 1 : struct set
30 : {
31 : typedef std::unique_ptr<set> ptr;
32 : typedef std::function< void(ptr)> handler;
33 : bool status = false;
34 : };
35 : }
36 :
37 : }
|