Exemplo n.º 1
0
        protected override void ProcessInternal(CustomBinaryReader reader)
        {
            previousRecordLength = reader.ReadSInt16();
            currentRecordLength  = reader.ReadSInt16();
            recordDate           = reader.ReadTimeReal();
            dailyPresenceCounter = reader.ReadBCDString(2);
            distance             = reader.ReadSInt16();

            uint recordCount = (currentRecordLength - 12) / 2;

            this.ProcessedRegions.Capacity = (int)recordCount;

            WriteLine(LogLevel.DEBUG, "Reading {0} activity records", recordCount);

            while (recordCount > 0)
            {
                ActivityChangeRegion acr = new ActivityChangeRegion();
                acr.Name = "ActivityChangeInfo";
                acr.Process(reader);
                this.ProcessedRegions.Add(acr);
                recordCount--;
            }
        }
Exemplo n.º 2
0
        protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer)
        {
            previousRecordLength = reader.ReadSInt16();
            currentRecordLength  = reader.ReadSInt16();
            recordDate           = reader.ReadTimeReal();
            dailyPresenceCounter = reader.ReadBCDString(2);
            distance             = reader.ReadSInt16();

            writer.WriteAttributeString("DateTime", recordDate.ToString("u"));
            writer.WriteAttributeString("DailyPresenceCounter", dailyPresenceCounter.ToString());
            writer.WriteAttributeString("Distance", distance.ToString());

            uint recordCount = (currentRecordLength - 12) / 2;

            WriteLine(LogLevel.DEBUG, "Reading {0} activity records", recordCount);

            while (recordCount > 0)
            {
                ActivityChangeRegion acr = new ActivityChangeRegion();
                acr.Name = "ActivityChangeInfo";
                acr.Process(reader, writer);
                recordCount--;
            }
        }
Exemplo n.º 3
0
        protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer)
        {
            previousRecordLength=reader.ReadSInt16();
            currentRecordLength=reader.ReadSInt16();
            recordDate=reader.ReadTimeReal();
            dailyPresenceCounter=reader.ReadSInt16();
            distance=reader.ReadSInt16();

            writer.WriteAttributeString("DateTime", recordDate.ToString());
            writer.WriteAttributeString("DailyPresenceCounter", dailyPresenceCounter.ToString());
            writer.WriteAttributeString("Distance", distance.ToString());

            uint recordCount=(currentRecordLength-12)/2;
            WriteLine(LogLevel.DEBUG, "Reading {0} activity records", recordCount);

            while (recordCount > 0)
            {
                ActivityChangeRegion acr=new ActivityChangeRegion();
                acr.Name="ActivityChangeInfo";
                acr.Process(reader, writer);
                recordCount--;
            }
        }