コード例 #1
0
 public virtual void FromNmea(string[] p)
 {
     foreach (int i in Fields.Keys)
     {
         NmeaField f = (NmeaField)Fields[i];
         if (f == null)
         {
             continue;
         }
         f.Parse(p);
     }
 }
コード例 #2
0
        // 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());
        }