private string[] parse(string command, ref CMDCODE code) { for (int i = 0; i < scmds.Count; i++) { SupportedCommand curr = scmds.ElementAt(i); string[] ret = curr.check_if_match(command, ref code); if (ret != null) { return(ret); } } return(null); }
public string[] do_command(string command) { CMDCODE code = CMDCODE.UNKNOWN; string[] parameters = parse(command, ref code); string[] retval = new string[1]; switch (code) { case CMDCODE.DUMP_INODE_CONTENTS: break; } return(retval); }
// // returns 'n' parameters in order specified in cmdtemplate code. Must do permutation checks etc. // public string[] check_if_match(string cmduser, ref CMDCODE code) { code = CMDCODE.UNKNOWN; return(null); }