Tell() public method

public Tell ( string command ) : Result
command string
return Result
Ejemplo n.º 1
0
 public Dimension(string name, Grads grads)
 {
     this.grads = grads;
     this.name = name;
     Result co = grads.Tell("q dims");
     if (co.Status != 0)
         throw new Exception("Cannot query grads!");
     parse_output(co.Output);
     co = grads.Tell("q file");
     limit = -1;
     foreach (string s in co.Output)
     {
         if (!s.Contains(name + "size"))
             continue;
         string tmp = s.Substring(s.IndexOf(name));
         tmp = tmp.Substring(tmp.IndexOf("= ") + 2);
         tmp = tmp.Substring(0, tmp.IndexOf(" "));
         limit = double.Parse(tmp);
     }
 }