OLD | NEW |
---|---|
1 {%- import "interface_macros.tmpl" as interface_macros %} | 1 {%- import "interface_macros.tmpl" as interface_macros %} |
2 class {{interface.name}}Proxy; | 2 class {{interface.name}}Proxy; |
3 class {{interface.name}}Stub; | 3 class {{interface.name}}Stub; |
4 | 4 |
5 class {{interface.name}}RequestValidator; | 5 class {{interface.name}}RequestValidator; |
6 {%- if interface|has_callbacks %} | 6 {%- if interface|has_callbacks %} |
7 class {{interface.name}}ResponseValidator; | 7 class {{interface.name}}ResponseValidator; |
8 {%- endif %} | 8 {%- endif %} |
9 {% if interface.client %} | 9 {% if interface.client %} |
10 class {{interface.client}}; | 10 class {{interface.client}}; |
(...skipping 26 matching lines...) Expand all Loading... | |
37 {#--- Enums #} | 37 {#--- Enums #} |
38 {%- for enum in interface.enums %} | 38 {%- for enum in interface.enums %} |
39 {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %} | 39 {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %} |
40 {{enum_def()|indent(2)}} | 40 {{enum_def()|indent(2)}} |
41 {%- endfor %} | 41 {%- endfor %} |
42 | 42 |
43 {#--- Methods #} | 43 {#--- Methods #} |
44 virtual ~{{interface.name}}() {} | 44 virtual ~{{interface.name}}() {} |
45 | 45 |
46 {%- for method in interface.methods %} | 46 {%- for method in interface.methods %} |
47 {% if method.response_parameters != None %} | |
48 typedef {{interface_macros.declare_callback(method)}} {{method.name}}Callback; | |
jamesr
2015/01/28 17:25:32
can you use the 'using' syntax instead? i.e.
usin
yzshen1
2015/01/28 18:30:43
Done.
| |
49 {%- endif %} | |
47 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod)}}) = 0; | 50 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod)}}) = 0; |
48 {%- endfor %} | 51 {%- endfor %} |
49 }; | 52 }; |
OLD | NEW |