public void log(tmessage message) { fe.log(message); }
public bool ParseFile(string path, tmessage message) { bool rc = false; using (StreamReader stream = new StreamReader(path)) { rc = ParseStream(stream, message); } return rc; }
public Progress(tmessage AProgress) { fProgress = AProgress; }
public void log(tmessage message) { if (fcount > 0) message(null, Capt + "s: " + fcount.ToString() + "."); }
public bool ParseStream(StreamReader stream, tmessage message) { fjson = new XJson(); fjson.message = message; fjson.setListener(this); bool rc = true; if (fdoc != null) { tsContentBound bound = new tsContentBound(); jsonData temp = fData; fData = new jsonData(this, bound); fjson.setListener(this); fjson.Parse(stream); fData = temp; if (bound.count > 0) rc = fdoc.Bound(bound.minLat, bound.minLon, bound.maxLat, bound.maxLon); } if (rc) if (fdoc == null) rc=ParseStage(stream,0); else for(int i=0; i < fdoc.GetStageCount(); i++ ) rc=ParseStage(stream,i); if (rc) fData.log(message); fjson.Close(); return rc; }
public void log(tmessage message) { fPoint.log(message); fPolyline.log(message); fPolygon.log(message); fFeature.log(message); }