[DatFiles/] Add constructor to "cast" base class

This commit is contained in:
Matt Nadareski
2017-10-16 13:52:56 -07:00
parent 1696e15aeb
commit a9d0483a17
12 changed files with 144 additions and 0 deletions

View File

@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class AttractMode : DatFile public class AttractMode : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public AttractMode(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse an AttractMode DAT and return all found games within /// Parse an AttractMode DAT and return all found games within
/// </summary> /// </summary>

View File

@@ -26,6 +26,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class ClrMamePro : DatFile public class ClrMamePro : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public ClrMamePro(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse a ClrMamePro DAT and return all found games and roms within /// Parse a ClrMamePro DAT and return all found games and roms within
/// </summary> /// </summary>

View File

@@ -24,6 +24,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class DosCenter : DatFile public class DosCenter : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public DosCenter(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse a DosCenter DAT and return all found games and roms within /// Parse a DosCenter DAT and return all found games and roms within
/// </summary> /// </summary>

View File

@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class Hashfile : DatFile public class Hashfile : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public Hashfile(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse a hashfile or SFV and return all found games and roms within /// Parse a hashfile or SFV and return all found games and roms within
/// </summary> /// </summary>

View File

@@ -26,6 +26,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class Listroms : DatFile public class Listroms : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public Listroms(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse a MAME Listroms DAT and return all found games and roms within /// Parse a MAME Listroms DAT and return all found games and roms within
/// </summary> /// </summary>

View File

@@ -27,6 +27,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class Logiqx : DatFile public class Logiqx : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public Logiqx(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse a Logiqx XML DAT and return all found games and roms within /// Parse a Logiqx XML DAT and return all found games and roms within
/// </summary> /// </summary>

View File

@@ -24,6 +24,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class Missfile : DatFile public class Missfile : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public Missfile(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse a Missfileand return all found games and roms within /// Parse a Missfileand return all found games and roms within
/// </summary> /// </summary>

View File

@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class OfflineList : DatFile public class OfflineList : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public OfflineList(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse an OfflineList XML DAT and return all found games and roms within /// Parse an OfflineList XML DAT and return all found games and roms within
/// </summary> /// </summary>

View File

@@ -26,6 +26,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class RomCenter : DatFile public class RomCenter : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public RomCenter(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse a RomCenter DAT and return all found games and roms within /// Parse a RomCenter DAT and return all found games and roms within
/// </summary> /// </summary>

View File

@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class SabreDat : DatFile public class SabreDat : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public SabreDat(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse an SabreDat XML DAT and return all found games and roms within /// Parse an SabreDat XML DAT and return all found games and roms within
/// </summary> /// </summary>

View File

@@ -23,6 +23,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class SeparatedValue : DatFile public class SeparatedValue : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public SeparatedValue(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse a character-separated value DAT and return all found games and roms within /// Parse a character-separated value DAT and return all found games and roms within
/// </summary> /// </summary>

View File

@@ -25,6 +25,18 @@ namespace SabreTools.Library.DatFiles
/// </summary> /// </summary>
public class SoftwareList : DatFile public class SoftwareList : DatFile
{ {
/// <summary>
/// Constructor designed for casting a base DatFile
/// </summary>
/// <param name="datFile">Parent DatFile to copy from</param>
public SoftwareList(DatFile datFile)
{
this._datHeader = datFile._datHeader;
this._items = datFile._items;
this._sortedBy = datFile._sortedBy;
this._datStats = datFile._datStats;
}
/// <summary> /// <summary>
/// Parse an SabreDat XML DAT and return all found games and roms within /// Parse an SabreDat XML DAT and return all found games and roms within
/// </summary> /// </summary>