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.
18 lines
523 B
Django/Jinja
18 lines
523 B
Django/Jinja
#pragma once
|
|
#include <string>
|
|
#include <memory>
|
|
#include <cstdint>
|
|
#include "rpc_common.h" // we'll add this helper header in src/
|
|
#include "{{ cls.name }}.skeleton.h" // for type name consistency
|
|
|
|
class {{ cls.name }}Proxy {
|
|
public:
|
|
{{ cls.name }}Proxy(const char* pipeIn, const char* pipeOut);
|
|
{% for m in cls.methods %}
|
|
{{ m.return_type }} {{ m.name }}({% for a in m.args %}{{ a.type }} {{ a.name }}{% if not loop.last %}, {% endif %}{% endfor %});
|
|
{% endfor %}
|
|
private:
|
|
int fdIn;
|
|
int fdOut;
|
|
};
|