You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
479 B
Django/Jinja
17 lines
479 B
Django/Jinja
#include "{{ cls.name }}.skeleton.h"
|
|
|
|
{{ cls.name }}Skeleton::{{ cls.name }}Skeleton({{ cls.name }}& obj, RpcInvoker& inv)
|
|
: invoker(inv) {
|
|
{% for m in cls.methods %}
|
|
invoker.registerMethod(&obj,
|
|
"{{ cls.name }}.{{ m.name }}",
|
|
&{{ cls.name }}::{{ m.name }});
|
|
{% endfor %}
|
|
}
|
|
|
|
RpcValue {{ cls.name }}Skeleton::dispatch(const std::string& method,
|
|
const RpcArgs& args) {
|
|
return invoker.dispatch(method, args);
|
|
}
|
|
|