Exemple #1
0
        public override object Create(Stream fileStream, BinaryReader binaryReader, int offset, int endOffset)
        {
            TBMInfoForNA141B tbdInfo = new TBMInfoForNA141B();

            fileStream.Seek(offset, SeekOrigin.Begin);
            tbdInfo.MinLat      = ToLocalEndian.ToDouble64FromBig(binaryReader.ReadBytes(3));
            tbdInfo.MaxLat      = ToLocalEndian.ToDouble64FromBig(binaryReader.ReadBytes(3));
            tbdInfo.MinLon      = ToLocalEndian.ToDouble64FromBig(binaryReader.ReadBytes(4));
            tbdInfo.MaxLon      = ToLocalEndian.ToDouble64FromBig(binaryReader.ReadBytes(4));
            tbdInfo.BeginHour   = ToLocalEndian.ToInt16FromBig(binaryReader.ReadBytes(2));
            tbdInfo.BeginMinite = ToLocalEndian.ToInt16FromBig(binaryReader.ReadBytes(2));
            tbdInfo.DataTime    = ToLocalEndian.ToInt32FromBig(binaryReader.ReadBytes(3));
            tbdInfo.IsAddData   = ToLocalEndian.ToInt16FromBig(binaryReader.ReadBytes(1)) == 1 ? true : false;
            base.Create(fileStream, binaryReader, offset, endOffset);
            return(tbdInfo);
        }
Exemple #2
0
 public NA141BHeader(object tbdInfoForNA141B, object commonInfoForNA141B)
 {
     _tbdInfoForNA141B    = tbdInfoForNA141B as TBMInfoForNA141B;
     _commonInfoForNA141B = commonInfoForNA141B as CommonInfoForNA141B;
 }