public void Serialize(IntermediateFormatWriter writer)
 {
     writer.RegisterDeclaration(m_Declaration);
     while (writer.NextMember())
     {
         MemberName memberName = writer.CurrentMember.MemberName;
         if (memberName == MemberName.SortFilterEventInfos)
         {
             writer.WriteStringRIFObjectDictionary(m_sortFilterEventInfos);
         }
         else
         {
             Global.Tracer.Assert(condition: false);
         }
     }
 }
        public void Serialize(IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.StyleAttributes:
                    writer.WriteStringRIFObjectDictionary(m_styleAttributes);
                    break;

                case MemberName.ExpressionList:
                    writer.Write(m_expressionList);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #3
0
        public override void Serialize(IntermediateFormatWriter writer)
        {
            base.Serialize(writer);
            IScalabilityCache scalabilityCache = writer.PersistenceHelper as IScalabilityCache;

            writer.RegisterDeclaration(m_declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.HierarchyDef:
                {
                    int value2 = scalabilityCache.StoreStaticReference(m_hierarchyDef);
                    writer.Write(value2);
                    break;
                }

                case MemberName.OuterScope:
                    writer.Write(m_outerScope);
                    break;

                case MemberName.ProcessingStage:
                    writer.WriteEnum((int)m_processingStage);
                    break;

                case MemberName.ScopedRunningValues:
                    writer.WriteListOfPrimitives(m_scopedRunningValues);
                    break;

                case MemberName.RunningValuesInGroup:
                    writer.WriteListOfPrimitives(m_runningValuesInGroup);
                    break;

                case MemberName.PreviousValuesInGroup:
                    writer.WriteListOfPrimitives(m_previousValuesInGroup);
                    break;

                case MemberName.GroupCollection:
                    writer.WriteStringRIFObjectDictionary(m_groupCollection);
                    break;

                case MemberName.DataAction:
                    writer.WriteEnum((int)m_dataAction);
                    break;

                case MemberName.OuterDataAction:
                    writer.WriteEnum((int)m_outerDataAction);
                    break;

                case MemberName.GroupingType:
                    writer.WriteEnum((int)m_groupingType);
                    break;

                case MemberName.Filters:
                {
                    int value = scalabilityCache.StoreStaticReference(m_groupFilters);
                    writer.Write(value);
                    break;
                }

                case MemberName.ParentExpression:
                    writer.Write(m_parentExpression);
                    break;

                case MemberName.CurrentGroupExprValue:
                    writer.Write(m_currentGroupExprValue);
                    break;

                case MemberName.SaveGroupExprValues:
                    writer.Write(m_saveGroupExprValues);
                    break;

                case MemberName.SortFilterExpressionScopeInfoIndices:
                    writer.Write(m_sortFilterExpressionScopeInfoIndices);
                    break;

                case MemberName.BuiltinSortOverridden:
                    writer.Write(m_builtinSortOverridden);
                    break;

                case MemberName.IsDetailGroup:
                    writer.Write(m_isDetailGroup);
                    break;

                case MemberName.DetailUserSortTargetInfo:
                    writer.Write(m_detailUserSortTargetInfo);
                    break;

                case MemberName.DetailRows:
                    writer.Write(m_detailDataRows);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public virtual void Serialize(IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(OnDemandMetadata.m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.CommonSubReportInfos:
                    writer.WriteStringRIFObjectDictionary(this.m_commonSubReportInfoMap);
                    break;

                case MemberName.SubReportInfos:
                    writer.WriteStringRIFObjectDictionary(this.m_subReportInfoMap);
                    break;

                case MemberName.ReportSnapshot:
                    writer.Write(this.m_reportSnapshot);
                    break;

                case MemberName.DataChunkMap:
                    writer.WriteStringRIFObjectDictionary(this.m_dataChunkMap);
                    break;

                case MemberName.CachedExternalImages:
                    writer.WriteStringRIFObjectDictionary(this.m_cachedExternalImages);
                    break;

                case MemberName.CachedShapefiles:
                    writer.WriteStringRIFObjectDictionary(this.m_cachedShapefiles);
                    break;

                case MemberName.TransparentImageChunkName:
                    writer.Write(this.m_transparentImageChunkName);
                    break;

                case MemberName.GroupTreeRootOffset:
                    writer.Write(this.m_groupTreeRootOffset);
                    break;

                case MemberName.TablixProcessingComplete:
                    writer.WriteStringBoolArrayDictionary(this.m_tablixProcessingComplete);
                    break;

                case MemberName.GroupTreePartitions:
                    writer.Write(this.m_groupTreePartitions);
                    break;

                case MemberName.LookupPartitions:
                    writer.Write(this.m_lookupPartitions);
                    break;

                case MemberName.LastAssignedGlobalID:
                    writer.Write(this.m_lastAssignedGlobalID);
                    break;

                case MemberName.UpdatedVariableValues:
                    writer.WriteStringRIFObjectDictionary(this.m_updatedVariableValues);
                    break;

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