Compare commits
No commits in common. 'e7aa646a8041b7dc4f8906b1b386c7c349a7b0cb' and '43f67275e28b3dbdb0dde85868707130904f3f50' have entirely different histories.
e7aa646a80
...
43f67275e2
@ -1,10 +1,5 @@
|
|||||||
#include "MyService.h"
|
#include "MyService.h"
|
||||||
|
|
||||||
int MyService::add(int a, int b) {
|
int MyService::add(int a, int b) {
|
||||||
counter_ += (a + b);
|
return a + b;
|
||||||
return counter_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int MyService::get() {
|
|
||||||
return counter_;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
#include "{{ cls.name }}.proxy.h"
|
#include "{{ cls.name }}.proxy.h"
|
||||||
|
|
||||||
// Реализация шаблонного прокси целиком находится в заголовочном файле.
|
{{ cls.name }}Proxy::{{ cls.name }}Proxy(ProxyMarshaller& marshaller)
|
||||||
// Этот cpp остаётся пустым, чтобы сгенерированные файлы по‑прежнему
|
: impl(marshaller) {}
|
||||||
// могли участвовать в сборке как отдельная единица трансляции.
|
|
||||||
|
{% for m in cls.methods %}
|
||||||
|
{{ m.return_type }} {{ cls.name }}Proxy::{{ m.name }}({% for a in m.args %}{{ a.type }} {{ a.name }}{% if not loop.last %}, {% endif %}{% endfor %}) {
|
||||||
|
return impl.callTyped<{{ m.return_type }}>("{{ cls.name }}.{{ m.name }}"{% for a in m.args %}, {{ a.name }}{% endfor %});
|
||||||
|
}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue