コード例 #1
0
 public override void Deserialize(IntermediateFormatReader reader)
 {
     base.Deserialize(reader);
     reader.RegisterDeclaration(DataCellInstance.m_Declaration);
     while (reader.NextMember())
     {
         if (reader.CurrentMember.MemberName == MemberName.ID)
         {
             this.m_cellDef = reader.ReadGlobalReference <Cell>();
         }
         else
         {
             Global.Tracer.Assert(false);
         }
     }
 }
コード例 #2
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ID:
                    m_dataRegionDef = reader.ReadGlobalReference <DataRegion>();
                    break;

                case MemberName.DataSetIndexInCollection:
                    m_dataSetIndexInCollection = reader.Read7BitEncodedInt();
                    break;

                case MemberName.RowMembers:
                    m_rowMembers = reader.ReadGenericListOfRIFObjectsUsingNew <ScalableList <DataRegionMemberInstance> >();
                    SetReadOnlyList(m_rowMembers);
                    break;

                case MemberName.ColumnMembers:
                    m_columnMembers = reader.ReadGenericListOfRIFObjectsUsingNew <ScalableList <DataRegionMemberInstance> >();
                    SetReadOnlyList(m_columnMembers);
                    break;

                case MemberName.Cells2:
                    m_cells = reader.ReadRIFObject <ScalableList <DataCellInstanceList> >();
                    break;

                case MemberName.Cells:
                    m_upgradedSnapshotCells = reader.ReadGenericListOfRIFObjectsUsingNew <ScalableList <DataCellInstance> >();
                    SetReadOnlyList(m_upgradedSnapshotCells);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
コード例 #3
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(SortFilterEventInfo.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.EventSource:
                    this.m_eventSource = reader.ReadGlobalReference <IInScopeEventSource>();
                    break;

                case MemberName.EventSourceScopeInfo:
                    this.m_eventSourceScopeInfo = reader.ReadArrayOfListsOfPrimitives <object>();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
コード例 #4
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ID:
                    m_memberDef = reader.ReadGlobalReference <ReportHierarchyNode>();
                    break;

                case MemberName.MemberInstanceIndexWithinScopeLevel:
                    m_memberInstanceIndexWithinScopeLevel = reader.Read7BitEncodedInt();
                    break;

                case MemberName.Children:
                    m_children = reader.ReadGenericListOfRIFObjectsUsingNew <ScalableList <DataRegionMemberInstance> >();
                    SetReadOnlyList(m_children);
                    break;

                case MemberName.Cells2:
                    m_cells = reader.ReadRIFObject <ScalableList <DataCellInstanceList> >();
                    break;

                case MemberName.Cells:
                    m_upgradedSnapshotCells = reader.ReadGenericListOfRIFObjectsUsingNew <ScalableList <DataCellInstance> >();
                    SetReadOnlyList(m_upgradedSnapshotCells);
                    break;

                case MemberName.Variables:
                    m_variables = reader.ReadVariantArray();
                    break;

                case MemberName.SerializableVariables:
                    m_variables = reader.ReadSerializableArray();
                    break;

                case MemberName.RecursiveLevel:
                    m_recursiveLevel = reader.Read7BitEncodedInt();
                    break;

                case MemberName.GroupExpressionValues:
                    m_groupExprValues = reader.ReadVariantArray();
                    break;

                case MemberName.ParentInstanceIndex:
                    m_parentInstanceIndex = reader.ReadInt32();
                    break;

                case MemberName.HasRecursiveChildren:
                {
                    object obj = reader.ReadVariant();
                    if (obj != null)
                    {
                        m_hasRecursiveChildren = (bool)obj;
                    }
                    break;
                }

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
コード例 #5
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.SubReport:
                    m_subReportDef = reader.ReadGlobalReference <SubReport>();
                    break;

                case MemberName.Parameters:
                {
                    ParametersImplWrapper parametersImplWrapper = (ParametersImplWrapper)reader.ReadRIFObject();
                    if (parametersImplWrapper != null)
                    {
                        m_parameters = parametersImplWrapper.WrappedParametersImpl;
                    }
                    break;
                }

                case MemberName.ReportInstance:
                    m_reportInstance = (IReference <ReportInstance>)reader.ReadRIFObject();
                    break;

                case MemberName.DataSetUniqueName:
                    m_instanceUniqueName = reader.ReadString();
                    break;

                case MemberName.ThreadCulture:
                    m_threadCulture = reader.ReadCultureInfo();
                    break;

                case MemberName.Status:
                    m_status = (SubReport.Status)reader.ReadEnum();
                    break;

                case MemberName.ProcessedWithError:
                    m_processedWithError = reader.ReadBoolean();
                    break;

                case MemberName.IsInstanceShared:
                {
                    object obj2 = reader.ReadVariant();
                    if (obj2 != null)
                    {
                        m_isInstanceShared = (bool)obj2;
                    }
                    break;
                }

                case MemberName.DataChunkNameModifier:
                {
                    object obj = reader.ReadVariant();
                    if (obj != null)
                    {
                        m_dataChunkNameModifier = (int)obj;
                    }
                    break;
                }

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