Exemplo n.º 1
0
        public override Object Clone()
        {
            IFmtRecordRecord rec = new IFmtRecordRecord();

            rec.field_1_formatIndex = field_1_formatIndex;
            return(rec);
        }
Exemplo n.º 2
0
        public void TestLoad()
        {

            IFmtRecordRecord record = new IFmtRecordRecord(TestcaseRecordInputStream.Create((short)0x104e, data));
            Assert.AreEqual(5, record.FormatIndex);


            Assert.AreEqual(6, record.RecordSize);

        }
Exemplo n.º 3
0
        public void TestStore()
        {
            IFmtRecordRecord record = new IFmtRecordRecord();
            record.FormatIndex = ((short)5);


            byte[] recordBytes = record.Serialize();
            Assert.AreEqual(recordBytes.Length - 4, data.Length);
            for (int i = 0; i < data.Length; i++)
                Assert.AreEqual(data[i], recordBytes[i + 4], "At offset " + i);
        }
Exemplo n.º 4
0
        public AXSAggregate(RecordStream rs, ChartRecordAggregate container)
            : base(RuleName_AXS, container) 
        {
            if (rs.PeekNextChartSid() == IFmtRecordRecord.sid)
                ifmt = (IFmtRecordRecord)rs.GetNext();
            if (rs.PeekNextChartSid() == TickRecord.sid)
                tick = (TickRecord)rs.GetNext();
            if (rs.PeekNextChartSid() == FontXRecord.sid)
                fontx = (FontXRecord)rs.GetNext();
            if (rs.PeekNextChartSid() == AxisLineRecord.sid)
            {
                while (rs.PeekNextChartSid() == AxisLineRecord.sid)
                {
                    axisLines.Add((AxisLineRecord)rs.GetNext());
                    lineFormats.Add((LineFormatRecord)rs.GetNext());
                }
            }

            if (rs.PeekNextChartSid() == AreaFormatRecord.sid)
                areaFormat = (AreaFormatRecord)rs.GetNext();

            if (rs.PeekNextChartSid() == GelFrameRecord.sid)
                gelFrame = new GelFrameAggregate(rs, this);
            if (rs.PeekNextChartSid() == ShapePropsStreamRecord.sid)
            {
                while (rs.PeekNextChartSid() == ShapePropsStreamRecord.sid)
                {
                    shapes.Add(new ShapePropsAggregate(rs,this));
                }
            }
            if (rs.PeekNextChartSid() == TextPropsStreamRecord.sid)
            {
                textProps = (TextPropsStreamRecord)rs.GetNext();
                while (rs.PeekNextChartSid() == ContinueFrt12Record.sid)
                {
                    continues.Add((ContinueFrt12Record)rs.GetNext());
                }
            }
        }
Exemplo n.º 5
0
        public override Object Clone()
        {
            IFmtRecordRecord rec = new IFmtRecordRecord();

            rec.field_1_formatIndex = field_1_formatIndex;
            return rec;
        }