mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add enum decoration, fix attributes for skippers
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
namespace SabreTools.Skippers
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
namespace SabreTools.Skippers
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines the header skip operation
|
/// Determines the header skip operation
|
||||||
@@ -6,9 +8,17 @@
|
|||||||
public enum HeaderSkipOperation
|
public enum HeaderSkipOperation
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
|
|
||||||
|
[XmlEnum("bitswap")]
|
||||||
Bitswap,
|
Bitswap,
|
||||||
|
|
||||||
|
[XmlEnum("byteswap")]
|
||||||
Byteswap,
|
Byteswap,
|
||||||
|
|
||||||
|
[XmlEnum("wordswap")]
|
||||||
Wordswap,
|
Wordswap,
|
||||||
|
|
||||||
|
[XmlEnum("wordbyteswap")]
|
||||||
WordByteswap,
|
WordByteswap,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -17,8 +27,13 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public enum HeaderSkipTestFileOperator
|
public enum HeaderSkipTestFileOperator
|
||||||
{
|
{
|
||||||
|
[XmlEnum("equal")]
|
||||||
Equal = 0,
|
Equal = 0,
|
||||||
|
|
||||||
|
[XmlEnum("less")]
|
||||||
Less,
|
Less,
|
||||||
|
|
||||||
|
[XmlEnum("greater")]
|
||||||
Greater,
|
Greater,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ namespace SabreTools.Skippers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Skipper test using AND
|
/// Skipper test using AND
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[XmlRoot("and")]
|
[XmlType("and")]
|
||||||
public class AndSkipperTest : SkipperTest
|
public class AndSkipperTest : SkipperTest
|
||||||
{
|
{
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
@@ -140,7 +140,7 @@ namespace SabreTools.Skippers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Skipper test using DATA
|
/// Skipper test using DATA
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[XmlRoot("data")]
|
[XmlType("data")]
|
||||||
public class DataSkipperTest : SkipperTest
|
public class DataSkipperTest : SkipperTest
|
||||||
{
|
{
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
@@ -177,7 +177,7 @@ namespace SabreTools.Skippers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Skipper test using FILE
|
/// Skipper test using FILE
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[XmlRoot("file")]
|
[XmlType("file")]
|
||||||
public class FileSkipperTest : SkipperTest
|
public class FileSkipperTest : SkipperTest
|
||||||
{
|
{
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
@@ -214,7 +214,7 @@ namespace SabreTools.Skippers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Skipper test using OR
|
/// Skipper test using OR
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[XmlRoot("or")]
|
[XmlType("or")]
|
||||||
public class OrSkipperTest : SkipperTest
|
public class OrSkipperTest : SkipperTest
|
||||||
{
|
{
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
@@ -259,7 +259,7 @@ namespace SabreTools.Skippers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Skipper test using XOR
|
/// Skipper test using XOR
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[XmlRoot("xor")]
|
[XmlType("xor")]
|
||||||
public class XorSkipperTest : SkipperTest
|
public class XorSkipperTest : SkipperTest
|
||||||
{
|
{
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
|
|||||||
Reference in New Issue
Block a user