| 193 | |
| 194 | template<typename Svc, typename In, typename Out> |
| 195 | void addMethod( |
| 196 | const char *name, |
| 197 | command_result (Svc::*fptr)(color_ostream &out, const In *input, Out *output), |
| 198 | int flags = 0 |
| 199 | ) { |
| 200 | assert(!owner); |
| 201 | functions.push_back(new ServerMethod<Svc,In,Out>(this, name, flags, fptr)); |
| 202 | } |
| 203 | |
| 204 | template<typename Svc, typename In> |
| 205 | void addMethod( |