CommandMap¶
Usage
use CommandMap;
or
import CommandMap;
- proc akMsgSign(cmd: string, msgArgs: borrowed MessageArgs, st: borrowed SymTab) : MsgTuple throws¶
This is a dummy function to get the signature of the Arkouda
server FCF. Ideally, the func() function would be able to
construct the FCF type, but there is no way to generate a
FCF that throws using func() today.
- var commandMap : map(string, f.type)¶
- var moduleMap : map(string, (string, int))¶
- var usedModules : set(string)¶
- proc registerFunction(cmd: string, fcf: f.type, modName: string = "", line: int = -1)¶
Register command->function in the CommandMap
This binds a server command to its corresponding function matching the standard
function signature & MsgTuple return type
- proc writeUsedModulesJson(ref mods: set(string))¶
- proc writeUsedModules(fmt: string = "cfg")¶
- proc dumpCommandMap() : string throws¶
Dump the combined contents of the command maps as a single json encoded string
- proc executeCommand(cmd: string, msgArgs, st) : MsgTuple throws¶