impove ipc
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
std::string {{ cls.name }}Skeleton::dispatch(const std::string& req) {
|
||||
IpcMessage {{ cls.name }}Skeleton::dispatch(const IpcMessage& req) {
|
||||
return invoker.dispatch(req);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,13 +3,11 @@
|
||||
#include "{{ cls.name }}.h"
|
||||
#include "rpc/RpcInvoker.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class {{ cls.name }}Skeleton {
|
||||
public:
|
||||
explicit {{ cls.name }}Skeleton({{ cls.name }}& obj);
|
||||
|
||||
std::string dispatch(const std::string& req);
|
||||
IpcMessage dispatch(const IpcMessage& req);
|
||||
|
||||
private:
|
||||
RpcInvoker invoker;
|
||||
|
||||
Reference in New Issue
Block a user