Esempio n. 1
0
        private static ActualNmeaValueType Value2ActualType(NmeaValueType t)
        {
            switch (t)
            {
            case NmeaValueType.Double:
                return(ActualNmeaValueType.Double);

            case NmeaValueType.Time:
                return(ActualNmeaValueType.Time);

            case NmeaValueType.Integer:
                return(ActualNmeaValueType.Integer);

            case NmeaValueType.GeoDegrees:
                return(ActualNmeaValueType.Double);

            case NmeaValueType.Enum:
                return(ActualNmeaValueType.Char);

            case NmeaValueType.Speed:
                return(ActualNmeaValueType.Double);

            case NmeaValueType.Degrees:
                return(ActualNmeaValueType.Double);

            case NmeaValueType.Date:
                return(ActualNmeaValueType.Date);
            }
            return(ActualNmeaValueType.Other);
        }
Esempio n. 2
0
 public NmeaField(NmeaValueType nmeaValueType)
 {
     _nmeaValueType = nmeaValueType;
 }
Esempio n. 3
0
 public NmeaField(NmeaValueType nmeaValueType)
 {
     _nmeaValueType = nmeaValueType;
 }
Esempio n. 4
0
 private static ActualNmeaValueType Value2ActualType(NmeaValueType t)
 {
     switch (t)
     {
         case NmeaValueType.Double:
             return ActualNmeaValueType.Double;
         case NmeaValueType.Time:
             return ActualNmeaValueType.Time;
         case NmeaValueType.Integer:
             return ActualNmeaValueType.Integer;
         case NmeaValueType.GeoDegrees:
             return ActualNmeaValueType.Double;
         case NmeaValueType.Enum:
             return ActualNmeaValueType.Char;
         case NmeaValueType.Speed:
             return ActualNmeaValueType.Double;
         case NmeaValueType.Degrees:
             return ActualNmeaValueType.Double;
         case NmeaValueType.Date:
             return ActualNmeaValueType.Date;
     }
     return ActualNmeaValueType.Other;
 }