Backup 1

Committer:
borlanic
Date:
Tue Apr 24 11:45:18 2018 +0000
Revision:
0:02dd72d1d465
BaBoRo_test2 - backup 1

Who changed what in which revision?

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