public void Process() { UavTalkWalker w = new UavTalkWalker(); while (true) { try { UavDataObject obj = w.GetNextObject(mInput); Console.WriteLine(obj.ToString()); } catch (EndOfStreamException) { break; } catch (Exception ex) { Console.Error.WriteLine(ex.Message); } } }
// __ Impl ____________________________________________________________ private void Process(BinaryReader reader) { UavTalkWalker w = new UavTalkWalker(); while (true) { try { UavDataObject obj = w.GetNextObject(reader); if (OnTelemetryMessage != null) OnTelemetryMessage(obj); } catch (EndOfStreamException) { break; } catch (Exception ex) { Console.Error.WriteLine(ex.Message); } } }