示例#1
0
 public ShapeDescriptorFile(string filename)
 {
     using (STFReader stf = new STFReader(filename, false))
     {
         stf.ParseFile(new STFReader.TokenProcessor[] {
             new STFReader.TokenProcessor("shape", ()=>{ shape = new SDShape(stf); }),
         });
         //TODO This should be changed to STFException.TraceError() with defaults values created
         if (shape == null)
             throw new STFException(stf, "Missing shape statement");
     }
 }
示例#2
0
 public ShapeDescriptorFile()  // use for files with no SD file
 {
     shape = new SDShape();
 }