public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Item:
                    Item = (IStorable)reader.ReadRIFObject();
                    break;

                case MemberName.Priority:
                    Priority = reader.ReadInt32();
                    break;

                case MemberName.ID:
                    Id = new ReferenceID(reader.ReadInt64());
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.OuterGroupingCounters:
                    m_outerGroupingCounters = reader.ReadInt32Array();
                    break;

                case MemberName.OuterGroupings:
                    m_outerGroupings = reader.ReadArrayOfRIFObjects <IReference <RuntimeMemberObj> >();
                    break;

                case MemberName.InnerGroupings:
                    m_innerGroupings = reader.ReadArrayOfRIFObjects <IReference <RuntimeMemberObj> >();
                    break;

                case MemberName.InnerGroupsWithCellsForOuterPeerGroupProcessing:
                    m_innerGroupsWithCellsForOuterPeerGroupProcessing = reader.ReadListOfRIFObjects <List <IReference <RuntimeDataTablixGroupLeafObj> > >();
                    break;

                case MemberName.ScopeInstanceNumber:
                    m_scopeInstanceNumber = reader.ReadInt64();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.FirstRowIndex:
                    m_firstRowOffset = reader.ReadInt64();
                    break;

                case MemberName.DataRegionInstances:
                    m_dataRegionInstances = reader.ReadGenericListOfRIFObjects <IReference <DataRegionInstance> >();
                    break;

                case MemberName.SubReportInstances:
                    m_subReportInstances = reader.ReadGenericListOfRIFObjects <IReference <SubReportInstance> >();
                    break;

                case MemberName.AggregateValues:
                    m_aggregateValues = reader.ReadGenericListOfRIFObjects <DataAggregateObjResult>();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
示例#4
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(BaseReference.m_declaration);
            long num = 0L;

            while (reader.NextMember())
            {
                if (reader.CurrentMember.MemberName == MemberName.ID)
                {
                    num = reader.ReadInt64();
                }
                else
                {
                    Global.Tracer.Assert(false);
                }
            }
            BaseScalabilityCache baseScalabilityCache = reader.PersistenceHelper as BaseScalabilityCache;
            ScalabilityCacheType cacheType            = baseScalabilityCache.CacheType;

            if (num < 0 && cacheType != ScalabilityCacheType.GroupTree && cacheType != ScalabilityCacheType.Lookup)
            {
                PairObj <ReferenceID, BaseScalabilityCache> pairObj = (PairObj <ReferenceID, BaseScalabilityCache>)baseScalabilityCache.FetchStaticReference((int)num);
                this.m_id            = pairObj.First;
                baseScalabilityCache = pairObj.Second;
            }
            else
            {
                this.m_id = new ReferenceID(num);
            }
            this.SetScalabilityCache(baseScalabilityCache);
        }
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Fields:
                    m_fields = reader.ReadArrayOfRIFObjects <FieldImpl>();
                    break;

                case MemberName.Offset:
                    m_streamOffset = reader.ReadInt64();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
示例#6
0
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(GetDeclaration());
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Index:
                    _index = reader.ReadInt32();
                    break;

                case MemberName.Location:
                    _location = reader.ReadInt64();
                    break;

                default:
                    WordOpenXmlUtils.FailSerializable();
                    break;
                }
            }
        }
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(LookupMatches.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.FirstRowOffset:
                    this.m_firstRowOffset = reader.ReadInt64();
                    break;

                case MemberName.RowOffsets:
                    this.m_rowOffsets = reader.ReadRIFObject <ScalableList <long> >();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
示例#8
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(LookupObjResult.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.LookupTablePartitionID:
                    this.m_lookupTablePartitionId = new ReferenceID(reader.ReadInt64());
                    break;

                case MemberName.HasCode:
                    this.m_hasErrorCode = reader.ReadBoolean();
                    break;

                case MemberName.Code:
                    this.m_errorCode = (ProcessingErrorCode)reader.ReadEnum();
                    break;

                case MemberName.Severity:
                    this.m_errorSeverity = (Severity)reader.ReadEnum();
                    break;

                case MemberName.FieldStatus:
                    this.m_dataFieldStatus = (DataFieldStatus)reader.ReadEnum();
                    break;

                case MemberName.Arguments:
                    this.m_errorMessageArgs = reader.ReadStringArray();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(OnDemandMetadata.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.CommonSubReportInfos:
                    this.m_commonSubReportInfoMap = reader.ReadStringRIFObjectDictionary <CommonSubReportInfo>();
                    break;

                case MemberName.SubReportInfos:
                    this.m_subReportInfoMap = reader.ReadStringRIFObjectDictionary <SubReportInfo>();
                    break;

                case MemberName.ReportSnapshot:
                    this.m_reportSnapshot = (AspNetCore.ReportingServices.ReportIntermediateFormat.ReportSnapshot)reader.ReadRIFObject();
                    break;

                case MemberName.GroupTreePartitionOffsets:
                {
                    List <long> list = reader.ReadListOfPrimitives <long>();
                    if (list != null)
                    {
                        this.m_groupTreePartitions = new TreePartitionManager(list);
                    }
                    break;
                }

                case MemberName.DataChunkMap:
                    this.m_dataChunkMap = reader.ReadStringRIFObjectDictionary <DataSetInstance>();
                    break;

                case MemberName.CachedExternalImages:
                    this.m_cachedExternalImages = reader.ReadStringRIFObjectDictionary <AspNetCore.ReportingServices.ReportIntermediateFormat.ImageInfo>();
                    break;

                case MemberName.CachedShapefiles:
                    this.m_cachedShapefiles = reader.ReadStringRIFObjectDictionary <ShapefileInfo>();
                    break;

                case MemberName.TransparentImageChunkName:
                    this.m_transparentImageChunkName = reader.ReadString();
                    break;

                case MemberName.GroupTreeRootOffset:
                    this.m_groupTreeRootOffset = reader.ReadInt64();
                    break;

                case MemberName.TablixProcessingComplete:
                    this.m_tablixProcessingComplete = reader.ReadStringBoolArrayDictionary();
                    break;

                case MemberName.GroupTreePartitions:
                    this.m_groupTreePartitions = (TreePartitionManager)reader.ReadRIFObject();
                    break;

                case MemberName.LookupPartitions:
                    this.m_lookupPartitions = (TreePartitionManager)reader.ReadRIFObject();
                    break;

                case MemberName.LastAssignedGlobalID:
                    this.m_lastAssignedGlobalID = reader.ReadInt32();
                    break;

                case MemberName.UpdatedVariableValues:
                    this.m_updatedVariableValues = reader.ReadStringRIFObjectDictionary <UpdatedVariableValues>();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }