| OLD | NEW |
| 1 class {{interface.name}}Proxy; | 1 class {{interface.name}}Proxy; |
| 2 class {{interface.name}}Stub; | 2 class {{interface.name}}Stub; |
| 3 class {{interface.peer}}; | 3 class {{interface.peer}}; |
| 4 | 4 |
| 5 class {{interface.name}} { | 5 class {{interface.name}} { |
| 6 public: | 6 public: |
| 7 typedef {{interface.name}}Proxy _Proxy; | 7 typedef {{interface.name}}Proxy _Proxy; |
| 8 typedef {{interface.name}}Stub _Stub; | 8 typedef {{interface.name}}Stub _Stub; |
| 9 typedef {{interface.peer}} _Peer; | 9 typedef {{interface.peer}} _Peer; |
| 10 | 10 |
| 11 {%- for method in interface.methods %} | 11 {#--- Enums #} |
| 12 {%- for enum in interface.enums %} |
| 13 {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %} |
| 14 {{enum_def()|indent(2)}} |
| 15 {%- endfor %} |
| 16 |
| 17 {#--- Methods #} |
| 18 {% for method in interface.methods %} |
| 12 virtual void {{method.name}}( | 19 virtual void {{method.name}}( |
| 13 {%- for param in method.parameters -%} | 20 {%- for param in method.parameters -%} |
| 14 {{param.kind|cpp_const_wrapper_type}} {{param.name}} | 21 {{param.kind|cpp_const_wrapper_type}} {{param.name}} |
| 15 {%- if not loop.last %}, {% endif -%} | 22 {%- if not loop.last %}, {% endif -%} |
| 16 {%- endfor -%} | 23 {%- endfor -%} |
| 17 ) = 0; | 24 ) = 0; |
| 18 {%- endfor %} | 25 {%- endfor %} |
| 19 }; | 26 }; |
| OLD | NEW |