Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace FirmwareGenerator
- {
- [Serializable]
- public class CfObject
- {
- private string _name;
- [XmlAttribute("name")]
- public string Name
- {
- get { return _name; }
- set { _name = value; }
- }
- }
- [Serializable, XmlRoot("CFMemoryTemplate")]
- public class CfMemoryTemplate : CfObject
- {
- private string _pID;
- private CfObject[] _items;
- [XmlAttribute("PID")]
- public string Pid
- {
- get { return _pID; }
- set { _pID = value; }
- }
- [XmlElement("CfParam", typeof(CfParam))]
- [XmlElement("CfDesc", typeof(CfDesc))]
- [XmlElement("CfItemList", typeof(CfItemList))]
- [XmlElement("CfImg", typeof(CfImg))]
- public CfObject[] Items
- {
- get { return _items; }
- set { _items = value; }
- }
- }
- [Serializable]
- public class CfParam : CfObject
- {
- private string _value;
- [XmlAttribute("value")]
- public string Value
- {
- get { return _value; }
- set { _value = value; }
- }
- }
- [Serializable]
- public class CfDesc : CfObject
- {
- private object[] _items;
- [XmlElement("CfDescNumber", typeof(CfDescNumber))]
- [XmlElement("CfDescCount", typeof(CfDescCount))]
- [XmlElement("CfDescAddr", typeof(CfDescAddr))]
- [XmlElement("CfDescText", typeof(CfDescText))]
- [XmlElement("CfDescCrc", typeof(CfDescCrc))]
- [XmlElement("CfDescSize", typeof(CfDescSize))]
- public object[] Items
- {
- get { return _items; }
- set { _items = value; }
- }
- }
- [Serializable]
- public class CfItemList : CfObject
- {
- private string _path;
- private CfObject[] _items;
- private ItemTemplate _itemTemplate;
- [XmlAttribute("path")]
- public string Path
- {
- get { return _path; }
- set { _path = value; }
- }
- [XmlElement("ItemTemplate")]
- public ItemTemplate ItemTemplateProp
- {
- get { return _itemTemplate; }
- set { _itemTemplate = value; }
- }
- [XmlElement("CfImg", typeof(CfImg))]
- [XmlElement("CfDesc", typeof(CfDesc))]
- public CfObject[] Items
- {
- get { return _items; }
- set { _items = value; }
- }
- }
- [Serializable]
- public class CfDescNumber : CfObject
- {
- private string _path;
- private string _value;
- private byte _size;
- [XmlAttribute("path")]
- public string Path
- {
- get { return _path; }
- set { _path = value; }
- }
- [XmlAttribute("value")]
- public string Value
- {
- get { return _value; }
- set { _value = value; }
- }
- [XmlAttribute("size")]
- public byte Size
- {
- get { return _size; }
- set { _size = value; }
- }
- }
- [Serializable]
- public class CfDescCount : CfObject
- {
- private string _path;
- [XmlAttribute("path")]
- public string Path
- {
- get { return _path; }
- set { _path = value; }
- }
- }
- [Serializable]
- public class ItemTemplate
- {
- private CfObject[] _items;
- [XmlElement("CfImg", typeof(CfImg))]
- [XmlElement("CfDesc", typeof(CfDesc))]
- public CfObject[] Items
- {
- get { return _items; }
- set { _items = value; }
- }
- }
- [Serializable]
- public class CfImg : CfObject
- {
- private uint _type;
- private string _path;
- [XmlAttribute("type")]
- public uint Type
- {
- get { return _type; }
- set { _type = value; }
- }
- [XmlAttribute("path")]
- public string Path
- {
- get { return _path; }
- set { _path = value; }
- }
- }
- [Serializable]
- public class CfDescAddr : CfObject
- {
- private string _path;
- [XmlAttribute("path")]
- public string Path
- {
- get { return _path; }
- set { _path = value; }
- }
- }
- [Serializable]
- public class CfDescSize : CfObject
- {
- private string _path;
- [XmlAttribute("path")]
- public string Path
- {
- get { return _path; }
- set { _path = value; }
- }
- }
- [Serializable]
- public class CfDescText : CfObject
- {
- private string _path;
- private string _value;
- private byte _size;
- [XmlAttribute("path")]
- public string Path
- {
- get { return _path; }
- set { _path = value; }
- }
- [XmlAttribute("value")]
- public string Value
- {
- get { return _value; }
- set { _value = value; }
- }
- [XmlAttribute("size")]
- public byte Size
- {
- get { return _size; }
- set { _size = value; }
- }
- }
- [Serializable]
- public class CfDescCrc : CfObject
- {
- private string _path;
- [XmlAttribute("path")]
- public string Path
- {
- get { return _path; }
- set { _path = value; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement