Exemplo 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);
        }
Exemplo n.º 2
0
 public NmeaField(NmeaValueType nmeaValueType)
 {
     _nmeaValueType = nmeaValueType;
 }
Exemplo n.º 3
0
 public NmeaField(NmeaValueType nmeaValueType)
 {
     _nmeaValueType = nmeaValueType;
 }
Exemplo 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;
 }