Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 //
 // 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);
 }