Example #1
0
        /// <summary>
        /// Serialises content to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteShort((short)LastTempRangeMin);
            writer.WriteShort((short)LastTempRangeMax);
        }
Example #2
0
        //Procedure ReadFromStream(const Stream : TStream);
        //Procedure WriteToStream(const Stream : TStream);

        /// <summary>
        /// Serializes content of the cell to the writer
        /// </summary>
        public void ToBinary(IBinaryRawWriter writer)
        {
            writer.WriteShort(TargetCCV);
            writer.WriteShort(TargetMDP);
            writer.WriteFloat(TargetLiftThickness);
            writer.WriteInt(TargetPassCount);
            writer.WriteInt(TempWarningLevelMin);
            writer.WriteInt(TempWarningLevelMax);
            writer.WriteByte(TargetCCA);
        }
Example #3
0
 /// <summary>
 /// Serialises content to the writer
 /// </summary>
 public void ToBinary(IBinaryRawWriter writer)
 {
     writer.WriteDouble(Northing);
     writer.WriteDouble(Easting);
     writer.WriteDouble(Elevation);
     writer.WriteDouble(CutFill);
     writer.WriteShort(Cmv);
     writer.WriteShort(Mdp);
     writer.WriteShort(PassCount);
     writer.WriteShort(Temperature);
 }
Example #4
0
        /// <summary>
        /// Serialises content to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteShort(LastTargetCMV);
        }
Example #5
0
        /// <summary>
        /// Serialises content to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteBoolean(UseMachineTargetCMV);
            writer.WriteShort(AbsoluteTargetCMV);

            CMVPercentageRange.ToBinary(writer);
        }
Example #6
0
 /// <summary>
 /// Serializes content of the cell to the writer
 /// </summary>
 public void ToBinary(IBinaryRawWriter writer)
 {
     writer.WriteByte((byte)EventElevationMappingMode);
     writer.WriteByte(EventInAvoidZoneState);
     writer.WriteInt(EventDesignNameID);
     writer.WriteByte((byte)EventVibrationState);
     writer.WriteByte((byte)EventAutoVibrationState);
     writer.WriteByte((byte)EventMachineGear);
     writer.WriteShort(EventMachineRMVThreshold);
     writer.WriteByte((byte)EventMachineAutomatics);
     writer.WriteByte((byte)PositioningTechnology);
     writer.WriteInt(GPSTolerance);
     writer.WriteByte((byte)GPSAccuracy);
     writer.WriteLong(MapReset_PriorDate.ToBinary());
     writer.WriteInt(MapReset_DesignNameID);
     writer.WriteInt(LayerID);
     writer.WriteByte(EventFlags);
 }
Example #7
0
        /// <summary>
        /// Serializes content to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteString(FileName);
            writer.WriteInt((int)CoordType);
            writer.WriteInt((int)OutputType);
            UserPreferences.ToBinary(writer);
            var count = MappedMachines.Count;

            writer.WriteInt(count);
            foreach (var machine in MappedMachines)
            {
                writer.WriteGuid(machine.Uid);
                writer.WriteShort(machine.InternalSiteModelMachineIndex);
                writer.WriteString(machine.Name);
            }
            writer.WriteBoolean(RestrictOutputSize);
            writer.WriteBoolean(RawDataAsDBase);
        }
Example #8
0
        /// <summary>
        /// Serializes content of the cell to the writer
        /// </summary>
        public void ToBinary(IBinaryRawWriter writer)
        {
            writer.WriteInt(StartCellPassIdx);
            writer.WriteInt(EndCellPassIdx);
            writer.WriteShort(MachineID);
            writer.WriteLong(LastLayerPassTime.ToBinary());

            writer.WriteShort(CCV);
            writer.WriteLong(CCV_Time.ToBinary());
            writer.WriteShort(CCV_MachineID);
            writer.WriteFloat(CCV_Elev);
            writer.WriteShort(TargetCCV);
            writer.WriteInt(CCV_CellPassIdx);

            writer.WriteShort(MDP);
            writer.WriteLong(MDP_Time.ToBinary());
            writer.WriteShort(MDP_MachineID);
            writer.WriteFloat(MDP_Elev);
            writer.WriteShort(TargetMDP);

            writer.WriteByte(CCA);
            writer.WriteLong(CCA_Time.ToBinary());
            writer.WriteShort(CCA_MachineID);
            writer.WriteFloat(CCA_Elev);
            writer.WriteShort(TargetCCA);

            writer.WriteByte(RadioLatency);
            writer.WriteInt(TargetPassCount);
            writer.WriteFloat(Thickness);
            writer.WriteFloat(TargetThickness);
            writer.WriteFloat(Height);
            writer.WriteShort(RMV);
            writer.WriteInt(Frequency);
            writer.WriteInt(Amplitude);
            writer.WriteInt(MaterialTemperature);
            writer.WriteLong(MaterialTemperature_Time.ToBinary());
            writer.WriteShort(MaterialTemperature_MachineID);
            writer.WriteFloat(MaterialTemperature_Elev);

            writer.WriteInt((int)Status);
            writer.WriteFloat(MaxThickness);
            writer.WriteInt(FilteredPassCount);
            writer.WriteInt(FilteredHalfPassCount);
            writer.WriteFloat(MinimumPassHeight);
            writer.WriteFloat(MaximumPassHeight);
            writer.WriteFloat(FirstPassHeight);
            writer.WriteFloat(LastPassHeight);
        }
 /** <inheritDoc /> */
 public void Write(IBinaryRawWriter writer)
 {
     writer.WriteShort(ServerNodes);
     writer.WriteBoolean(_value);
 }
 /** <inheritDoc /> */
 public void Write(IBinaryRawWriter writer)
 {
     writer.WriteShort(Attribute);
     writer.WriteString(_key);
     writer.WriteString(_value);
 }
Example #11
0
        /// <summary>
        /// Serializes content to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            int count = Layers?.Count() ?? 0;

            writer.WriteInt(count);
            for (int i = 0; i < count; i++)
            {
                Layers[i].ToBinary(writer);
            }

            writer.WriteFloat(CellLowestElev);
            writer.WriteFloat(CellHighestElev);
            writer.WriteFloat(CellLastElev);
            writer.WriteFloat(CellFirstElev);
            writer.WriteFloat(CellLowestCompositeElev);
            writer.WriteFloat(CellHighestCompositeElev);
            writer.WriteFloat(CellLastCompositeElev);
            writer.WriteFloat(CellFirstCompositeElev);

            writer.WriteShort(CellCCV);
            writer.WriteShort(CellTargetCCV);
            writer.WriteShort(CellPreviousMeasuredCCV);
            writer.WriteShort(CellPreviousMeasuredTargetCCV);

            writer.WriteFloat(CellCCVElev);

            writer.WriteShort(CellMDP);
            writer.WriteShort(CellTargetMDP);
            writer.WriteFloat(CellMDPElev);

            writer.WriteByte(CellCCA);
            writer.WriteShort(CellTargetCCA);
            writer.WriteFloat(CellCCAElev);

            writer.WriteFloat(CellTopLayerThickness);
            writer.WriteBoolean(IncludesProductionData);

            writer.WriteInt(TopLayerPassCount);
            writer.WriteInt(TopLayerPassCountTargetRangeMin);
            writer.WriteInt(TopLayerPassCountTargetRangeMax);

            writer.WriteInt(CellMaxSpeed);
            writer.WriteInt(CellMinSpeed);

            Passes.ToBinary(writer);

            writer.WriteBooleanArray(FilteredPassFlags);
            writer.WriteInt(FilteredPassCount);
            writer.WriteInt(FilteredHalfPassCount);
            writer.WriteInt((int)AttributeExistenceFlags);

            writer.WriteInt(CellMaterialTemperature);
            writer.WriteInt(CellMaterialTemperatureWarnMin);
            writer.WriteInt(CellMaterialTemperatureWarnMax);

            writer.WriteFloat(CellMaterialTemperatureElev);
        }