Пример #1
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(SiteModelID);
            writer.WriteInt((int)OTGCellBottomLeftX);
            writer.WriteInt((int)OTGCellBottomLeftY);
            writer.WriteDouble(CellSize);
            writer.WriteByte((byte)SurveyedSurfacePatchType);

            writer.WriteBoolean(ProcessingMap != null);
            if (ProcessingMap != null)
            {
                writer.WriteByteArray(ProcessingMap.ToBytes());
            }

            writer.WriteBoolean(IncludedSurveyedSurfaces != null);
            if (IncludedSurveyedSurfaces != null)
            {
                var count = IncludedSurveyedSurfaces.Length;
                writer.WriteInt(count);
                for (int i = 0; i < count; i++)
                {
                    writer.WriteGuid(IncludedSurveyedSurfaces[i]);
                }
            }
        }
Пример #2
0
        public void ToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectUID);
            writer.WriteGuid(AssetUID);
            writer.WriteString(FileName);
        }
Пример #3
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(OriginatingIgniteNodeId);
            writer.WriteGuid(ExternalDescriptor);
            writer.WriteLong(RequestEmissionDateUtc.ToBinary());
        }
Пример #4
0
        public void ToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectUID);
            writer.WriteGuid(AssetUID);
            writer.WriteInt((int)StreamType);
        }
Пример #5
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectID);
            writer.WriteGuid(DesignID);
        }
Пример #6
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(SourceNodeUid);
            writer.WriteGuid(SiteModelUid);
            writer.WriteGuid(DesignUid);
            writer.WriteInt((int)FileType);
            writer.WriteBoolean(DesignRemoved);
        }
Пример #7
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteLong(InsertUTC.ToBinary());
            writer.WriteByteArray(Content);
            writer.WriteGuid(ProjectUID);
            writer.WriteGuid(MachineUid);
            writer.WriteInt((int)Operation);
            writer.WriteInt((int)Origin);
        }
Пример #8
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectID);
            writer.WriteGuid(AlignmentDesignID);
            writer.WriteBoolean(ConvertArcsToPolyLines);
            writer.WriteDouble(ArcChordTolerance);
        }
Пример #9
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteLong(InsertUTC.ToBinary());
            writer.WriteString(FileName);
            writer.WriteByteArray(Content);
            writer.WriteGuid(ProjectID);
            writer.WriteGuid(AssetID);
            writer.WriteBoolean(IsJohnDoe);
            writer.WriteInt((int)SubmissionFlags);
            writer.WriteInt((int)OriginSource);
        }
Пример #10
0
        /// <summary>
        /// Serialize out the state of the cell spatial filter using the Ignite IBinarizable serialisation
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteBoolean(Fence != null);
            Fence?.ToBinary(writer);

            writer.WriteBoolean(AlignmentFence != null);
            AlignmentFence?.ToBinary(writer);

            writer.WriteDouble(PositionX);
            writer.WriteDouble(PositionY);
            writer.WriteDouble(PositionRadius);
            writer.WriteBoolean(IsSquare);

            OverrideSpatialCellRestriction.ToBinary(writer);

            writer.WriteBoolean(StartStation.HasValue);
            if (StartStation.HasValue)
            {
                writer.WriteDouble(StartStation.Value);
            }

            writer.WriteBoolean(EndStation.HasValue);
            if (EndStation.HasValue)
            {
                writer.WriteDouble(EndStation.Value);
            }

            writer.WriteBoolean(LeftOffset.HasValue);
            if (LeftOffset.HasValue)
            {
                writer.WriteDouble(LeftOffset.Value);
            }

            writer.WriteBoolean(RightOffset.HasValue);
            if (RightOffset.HasValue)
            {
                writer.WriteDouble(RightOffset.Value);
            }

            writer.WriteBoolean(CoordsAreGrid);
            writer.WriteBoolean(IsSpatial);
            writer.WriteBoolean(IsPositional);

            writer.WriteBoolean(IsDesignMask);
            writer.WriteGuid(SurfaceDesignMaskDesignUid);

            writer.WriteBoolean(IsAlignmentMask);
            writer.WriteGuid(AlignmentDesignMaskDesignUID);
        }
Пример #11
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectID);
            writer.WriteGuid(AssetID);
            writer.WriteString(TAGFileName);
            writer.WriteString(TCCOrgID);
            writer.WriteByteArray(TagFileContent);
            writer.WriteBoolean(TreatAsJohnDoe);
            writer.WriteInt((int)SubmissionFlags);
            writer.WriteInt((int)OriginSource);
        }
Пример #12
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(NodeId);
            writer.WriteGuid(RequestDescriptor);

            writer.WriteBoolean(Payload?.Bytes != null);
            if (Payload?.Bytes != null)
            {
                writer.WriteByteArray(Payload.Bytes);
            }
        }
Пример #13
0
        /// <summary>
        /// Serializes content to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectUid);
            writer.WriteByte((byte)RebuildResult);
        }
Пример #14
0
        public void ToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectUID);
            writer.WriteLong(InsertUTCTicks);
        }
Пример #15
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteBoolean(Success);
            writer.WriteGuid(NodeUid);
        }
Пример #16
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(DesignID);
            writer.WriteDouble(Offset);
        }
Пример #17
0
        /// <summary>
        /// Serializes content of the cell to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(DesignID);
            writer.WriteString(Folder);
            writer.WriteString(FileName);
        }
Пример #18
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteBoolean(Undo);
            writer.WriteGuid(ProjectID);
            writer.WriteGuid(AssetID);
            writer.WriteLong(StartUTC.ToBinary());
            writer.WriteLong(EndUTC.ToBinary());
            writer.WriteString(MachineDesignName);
            writer.WriteBoolean(LayerID.HasValue);
            if (LayerID.HasValue)
            {
                writer.WriteInt(LayerID.Value);
            }
        }
Пример #19
0
        /// <summary>
        /// Writes this object to the given writer.
        /// </summary>
        public void WriteBinary(IBinaryRawWriter writer, bool changesOnly)
        {
            ((IgniteSessionStateItemCollection)Items).WriteBinary(writer, changesOnly);
            writer.WriteByteArray(SerializeStaticObjects());
            writer.WriteInt(Timeout);

            writer.WriteGuid(LockNodeId);
            writer.WriteLong(LockId);
            writer.WriteTimestamp(LockTime);
        }
        /// <summary>
        /// Writes this object to the given writer.
        /// </summary>
        public void WriteBinary(IBinaryRawWriter writer, bool changesOnly)
        {
            ((IgniteSessionStateItemCollection)Items).WriteBinary(writer, changesOnly);
            writer.WriteByteArray(SerializeStaticObjects());
            writer.WriteInt(Timeout);

            writer.WriteGuid(LockNodeId);
            writer.WriteLong(LockId);
            writer.WriteTimestamp(LockTime);
        }
Пример #21
0
        /// <summary>
        /// Serializes content to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectID);
            writer.WriteInt((int)DeletionSelectivity);
            writer.WriteByte((byte)OriginS3TransferProxy);
        }
Пример #22
0
        /// <summary>
        /// Writes the lock info.
        /// </summary>
        private void WriteLockInfo(IBinaryRawWriter writer, long lockId, bool writeTime = false)
        {
            writer.WriteGuid(Cache.Ignite.GetCluster().GetLocalNode().Id);
            writer.WriteLong(lockId);

            if (writeTime)
            {
                writer.WriteTimestamp(DateTime.UtcNow);
            }
        }
Пример #23
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(SourceNodeUid);
            writer.WriteGuid(SiteModelID);
            writer.WriteBoolean(ExistenceMapModified);
            writer.WriteBoolean(DesignsModified);
            writer.WriteBoolean(SurveyedSurfacesModified);
            writer.WriteBoolean(CsibModified);
            writer.WriteBoolean(MachinesModified);
            writer.WriteBoolean(MachineTargetValuesModified);
            writer.WriteBoolean(MachineDesignsModified);
            writer.WriteBoolean(ProofingRunsModified);
            writer.WriteByteArray(ExistenceMapChangeMask);
            writer.WriteBoolean(AlignmentsModified);
            writer.WriteBoolean(SiteModelMarkedForDeletion);
            writer.WriteGuid(ChangeEventUid);
            writer.WriteLong(TimeSentUtc.ToBinary());
        }
Пример #24
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(TRexNodeID);
            writer.WriteGuid(ProjectID);

            writer.WriteBoolean(ReferenceDesign != null);
            ReferenceDesign?.ToBinary(writer);

            writer.WriteBoolean(Filters != null);
            Filters?.ToBinary(writer);

            writer.WriteBoolean(Overrides != null);
            Overrides?.ToBinary(writer);

            writer.WriteBoolean(LiftParams != null);
            LiftParams?.ToBinary(writer);
        }
Пример #25
0
        /// <summary>
        /// Serializes content to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(AlignmentDesignUid);
            writer.WriteDouble(CrossSectionInterval);
            writer.WriteDouble(StartStation);
            writer.WriteDouble(EndStation);
            writer.WriteDoubleArray(Offsets);
        }
Пример #26
0
        public void ToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteString(FileName);
            writer.WriteGuid(AssetUid);
            writer.WriteBoolean(Success);
            writer.WriteString(Exception);
            writer.WriteInt((int)ReadResult);
            writer.WriteInt((int)SubmissionFlags);
            writer.WriteInt((int)OriginSource);
        }
Пример #27
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectID);
            writer.WriteBoolean(DesignDescriptor != null);
            DesignDescriptor?.ToBinary(writer);

            writer.WriteBoolean(Extents != null);
            Extents?.ToBinary(writer);
        }
Пример #28
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectUid);

            writer.WriteBoolean(ResponseItems != null);
            if (ResponseItems != null)
            {
                writer.WriteInt(ResponseItems.Length);
                ResponseItems.ForEach(x => x.ToBinary(writer));
            }
        }
Пример #29
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ID);
            writer.WriteLong(CreationDate.ToBinary());
            writer.WriteLong(LastModifiedDate.ToBinary());

            writer.WriteBoolean(SiteModelExtent != null);
            SiteModelExtent?.ToBinary(writer);

            writer.WriteInt(MachineCount);
            writer.WriteInt(DesignCount);
            writer.WriteInt(SurveyedSurfaceCount);
            writer.WriteInt(AlignmentCount);
        }
Пример #30
0
        /// <summary>
        /// Write node IDs.
        /// </summary>
        /// <param name="writer">Writer.</param>
        /// <param name="nodes">Nodes.</param>
        private static void WriteNodeIds(IBinaryRawWriter writer, ICollection <IClusterNode> nodes)
        {
            if (nodes == null)
            {
                writer.WriteBoolean(false);
            }
            else
            {
                writer.WriteBoolean(true);
                writer.WriteInt(nodes.Count);

                foreach (IClusterNode node in nodes)
                {
                    writer.WriteGuid(node.Id);
                }
            }
        }
Пример #31
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteGuid(ProjectID);

            writer.WriteInt(TAGFiles?.Count ?? 0);
            if (TAGFiles != null)
            {
                foreach (var tagFile in TAGFiles)
                {
                    tagFile.ToBinary(writer);
                }
            }
        }