MCPcopy Create free account
hub / github.com/DFHack/dfhack / addMethod

Function addMethod

library/include/RemoteServer.h:195–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(

Callers 1

CoreServiceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected