You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/DOM/Model/Flow/Table.cs

41 lines
1.1 KiB

6 years ago
using System.Collections.Generic;
using ZeroLevel.Services.Serialization;
namespace ZeroLevel.DocumentObjectModel.Flow
{
public class Table :
6 years ago
ContentElement
{
public string Name;
public string Abstract;
public List<Column> Columns = new List<Column>();
public List<Row> Rows = new List<Row>();
public Table()
: base(ContentElementType.Table)
6 years ago
{
}
public Table(IBinaryReader reader)
6 years ago
: base(ContentElementType.Table)
{
Deserialize(reader);
}
public override void Deserialize(IBinaryReader reader)
{
Name = reader.ReadString();
Abstract = reader.ReadString();
Columns = reader.ReadCollection<Column>();
Rows = reader.ReadCollection<Row>();
}
public override void Serialize(IBinaryWriter writer)
{
writer.WriteString(Name);
writer.WriteString(Abstract);
writer.WriteCollection(Columns);
writer.WriteCollection(Rows);
}
}
}

Powered by TurnKey Linux.