BBR 1 Ebene

Committer:
borlanic
Date:
Mon May 14 11:29:06 2018 +0000
Revision:
0:fbdae7e6d805
BBR

Who changed what in which revision?

UserRevisionLine numberNew contents of line
borlanic 0:fbdae7e6d805 1 class Rpc{{name}} : public RPC {
borlanic 0:fbdae7e6d805 2 public:
borlanic 0:fbdae7e6d805 3 Rpc{{name}}({{cons_proto}}) : RPC(name), o({{cons_call}}) {}
borlanic 0:fbdae7e6d805 4
borlanic 0:fbdae7e6d805 5 {{methods}}
borlanic 0:fbdae7e6d805 6
borlanic 0:fbdae7e6d805 7 virtual const struct rpc_method *get_rpc_methods() {
borlanic 0:fbdae7e6d805 8 static const rpc_method rpc_methods[] = {
borlanic 0:fbdae7e6d805 9 {{rpc_methods}},
borlanic 0:fbdae7e6d805 10 RPC_METHOD_SUPER(RPC)
borlanic 0:fbdae7e6d805 11 };
borlanic 0:fbdae7e6d805 12 return rpc_methods;
borlanic 0:fbdae7e6d805 13 }
borlanic 0:fbdae7e6d805 14 static struct rpc_class *get_rpc_class() {
borlanic 0:fbdae7e6d805 15 static const rpc_function funcs[] = {
borlanic 0:fbdae7e6d805 16 {"new", rpc_function_caller<const char*, {{cons_type}}, &RPC::construct<Rpc{{name}}, {{cons_type}}> >},
borlanic 0:fbdae7e6d805 17 RPC_METHOD_END
borlanic 0:fbdae7e6d805 18 };
borlanic 0:fbdae7e6d805 19 static rpc_class c = {"{{name}}", funcs, NULL};
borlanic 0:fbdae7e6d805 20 return &c;
borlanic 0:fbdae7e6d805 21 }
borlanic 0:fbdae7e6d805 22 private:
borlanic 0:fbdae7e6d805 23 {{name}} o;
borlanic 0:fbdae7e6d805 24 };