Module: Tdms::DataType

Defined in:
lib/tdms/datatypes.rb

Defined Under Namespace

Classes: Base, Boolean, Double, DoubleWithUnit, Int16, Int32, Int64, Int8, Single, SingleWithUnit, Timestamp, Uint16, Uint32, Uint64, Uint8, Utf8String

Constant Summary collapse

DataTypesById =
{
  Int8::Id           => Int8,
  Int16::Id          => Int16,
  Int32::Id          => Int32,
  Int64::Id          => Int64,
  Uint8::Id          => Uint8,
  Uint16::Id         => Uint16,
  Uint32::Id         => Uint32,
  Uint64::Id         => Uint64,
  Single::Id         => Single,
  SingleWithUnit::Id => SingleWithUnit,
  Double::Id         => Double,
  DoubleWithUnit::Id => DoubleWithUnit,
  Utf8String::Id     => Utf8String,
  Boolean::Id        => Boolean,
  Timestamp::Id      => Timestamp
}

Class Method Summary collapse

Class Method Details

.find_by_id(id_byte) ⇒ Object



166
167
168
# File 'lib/tdms/datatypes.rb', line 166

def find_by_id(id_byte)
  DataTypesById[id_byte] || raise(ArgumentError, "Don't know type %d" % id_byte)
end