using System.Collections.Generic;
///
/// This holds all of the auxiliary types needed for proper parsing
///
namespace SabreTools.Library.DatItems
{
#region Machine
#region ListXML
///
/// Represents one ListXML info object
///
public class ListXmlInfo
{
public string Name { get; set; }
public string Value { get; set; }
public ListXmlInfo(string name, string value)
{
Name = name;
Value = value;
}
}
#endregion
#region OpenMSX
///
/// Represents the OpenMSX original value
///
public class OpenMSXOriginal
{
public string Original { get; set; }
public bool? Value { get; set; }
public OpenMSXOriginal(string original, bool? value)
{
Original = original;
Value = value;
}
}
#endregion
#region ListXML
///
/// Represents one ListXML dipswitch
///
/// Also used by SoftwareList
public class ListXMLDipSwitch
{
public string Name { get; set; }
public string Tag { get; set; }
public string Mask { get; set; }
public List Locations { get; set; }
public List Values { get; set; }
public ListXMLDipSwitch(string name, string tag, string mask)
{
Name = name;
Tag = tag;
Mask = mask;
Locations = new List();
Values = new List();
}
}
///
/// Represents one ListXML diplocation
///
public class ListXMLDipLocation
{
public string Name { get; set; }
public string Number { get; set; }
public bool? Inverted { get; set; }
public ListXMLDipLocation(string name, string number, bool? inverted)
{
Name = name;
Number = number;
Inverted = inverted;
}
}
///
/// Represents one ListXML dipvalue
///
/// Also used by SoftwareList
public class ListXMLDipValue
{
public string Name { get; set; }
public string Value { get; set; }
public bool? Default { get; set; }
public ListXMLDipValue(string name, string value, bool? def)
{
Name = name;
Value = value;
Default = def;
}
}
#endregion
#region SoftwareList
///
/// Represents one SoftwareList shared feature object
///
public class SoftwareListSharedFeature
{
public string Name { get; set; }
public string Value { get; set; }
public SoftwareListSharedFeature(string name, string value)
{
Name = name;
Value = value;
}
}
#endregion
#endregion // Machine
#region DatItem
#region SoftwareList
///
/// Represents one SoftwareList feature object
///
public class SoftwareListFeature
{
public string Name { get; set; }
public string Value { get; set; }
public SoftwareListFeature(string name, string value)
{
Name = name;
Value = value;
}
}
#endregion
#endregion //DatItem
}