public override void Serialize(IntermediateFormatWriter writer)
        {
            base.Serialize(writer);
            writer.RegisterDeclaration(m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.ID:
                    Global.Tracer.Assert(m_dataRegionDef != null, "(null != m_dataRegionDef)");
                    writer.WriteGlobalReference(m_dataRegionDef);
                    break;

                case MemberName.DataSetIndexInCollection:
                    writer.Write7BitEncodedInt(m_dataSetIndexInCollection);
                    break;

                case MemberName.RowMembers:
                    writer.Write(m_rowMembers);
                    break;

                case MemberName.ColumnMembers:
                    writer.Write(m_columnMembers);
                    break;

                case MemberName.Cells2:
                    writer.Write(m_cells);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Esempio n. 2
0
        public override void Serialize(IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.SubReport:
                    writer.WriteGlobalReference(m_subReportDef);
                    break;

                case MemberName.Parameters:
                    if (m_parameters != null)
                    {
                        writer.Write(new ParametersImplWrapper(m_parameters));
                    }
                    else
                    {
                        writer.WriteNull();
                    }
                    break;

                case MemberName.ReportInstance:
                    writer.Write(m_reportInstance);
                    break;

                case MemberName.DataSetUniqueName:
                    writer.Write(m_instanceUniqueName);
                    break;

                case MemberName.ThreadCulture:
                    writer.Write(m_threadCulture);
                    break;

                case MemberName.Status:
                    writer.WriteEnum((int)m_status);
                    break;

                case MemberName.ProcessedWithError:
                    writer.Write(m_processedWithError);
                    break;

                case MemberName.IsInstanceShared:
                    writer.Write(m_isInstanceShared);
                    break;

                case MemberName.DataChunkNameModifier:
                    writer.Write(m_dataChunkNameModifier);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public override void Serialize(IntermediateFormatWriter writer)
        {
            base.Serialize(writer);
            writer.RegisterDeclaration(m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.ID:
                    Global.Tracer.Assert(m_memberDef != null, "(null != m_memberDef)");
                    writer.WriteGlobalReference(m_memberDef);
                    break;

                case MemberName.MemberInstanceIndexWithinScopeLevel:
                    writer.Write7BitEncodedInt(m_memberInstanceIndexWithinScopeLevel);
                    break;

                case MemberName.Children:
                    writer.Write(m_children);
                    break;

                case MemberName.Cells2:
                    writer.Write(m_cells);
                    break;

                case MemberName.SerializableVariables:
                    writer.WriteSerializableArray(m_variables);
                    break;

                case MemberName.RecursiveLevel:
                    writer.Write7BitEncodedInt(m_recursiveLevel);
                    break;

                case MemberName.GroupExpressionValues:
                    writer.Write(m_groupExprValues);
                    break;

                case MemberName.ParentInstanceIndex:
                    writer.Write(m_parentInstanceIndex);
                    break;

                case MemberName.HasRecursiveChildren:
                    writer.Write(m_hasRecursiveChildren);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Esempio n. 4
0
 public override void Serialize(IntermediateFormatWriter writer)
 {
     base.Serialize(writer);
     writer.RegisterDeclaration(DataCellInstance.m_Declaration);
     while (writer.NextMember())
     {
         if (writer.CurrentMember.MemberName == MemberName.ID)
         {
             Global.Tracer.Assert(null != this.m_cellDef, "(null != m_cellDef)");
             writer.WriteGlobalReference(this.m_cellDef);
         }
         else
         {
             Global.Tracer.Assert(false);
         }
     }
 }
        public void Serialize(IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(SortFilterEventInfo.m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.EventSource:
                    writer.WriteGlobalReference(this.m_eventSource);
                    break;

                case MemberName.EventSourceScopeInfo:
                    writer.WriteArrayOfListsOfPrimitives(this.m_eventSourceScopeInfo);
                    break;

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