public virtual void FromNmea(string[] p) { foreach (int i in Fields.Keys) { NmeaField f = (NmeaField)Fields[i]; if (f == null) { continue; } f.Parse(p); } }
// for debug only public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append(Id).Append(" "); foreach (int i in Fields.Keys) { NmeaField f = (NmeaField)Fields[i]; if (f == null) { continue; } sb.Append(f); sb.Append(" ~ "); } return(sb.ToString()); }