[RombaSharp] Create all skeleton methods

This commit is contained in:
Matt Nadareski
2016-09-02 14:08:34 -07:00
parent aca3588a3d
commit 223755843c
3 changed files with 66 additions and 14 deletions

View File

@@ -253,16 +253,49 @@ namespace SabreTools
_port = port; _port = port;
} }
/// <summary>
/// Display the statistics in the database
/// </summary>
/// <remarks>
/// This list of stats should include:
/// - Total uncompressed size of the files
/// - Total number of files
/// - Total number of files that exist
/// - Total number of files that don't exist
/// - Total number of files with CRC
/// - Total number of files with MD5
/// - Total number of files with SHA-1
/// - Total number of unique DAT hashes
/// </remarks>
private static void DisplayDBStats() private static void DisplayDBStats()
{ {
_logger.User("This feature is not yet implemented: dbstats"); _logger.User("This feature is not yet implemented: dbstats");
} }
/// <summary>
/// Display the current memory usage of the application
/// </summary>
private static void DisplayMemoryStats() private static void DisplayMemoryStats()
{ {
_logger.User("This feature is not yet implemented: memstats"); _logger.User("This feature is not yet implemented: memstats");
} }
/// <summary>
/// Moves DAT index entries for orphaned DATs to backup folder
/// </summary>
private static void PurgeBackup()
{
_logger.User("This feature is not yet implemented: purge-backup");
}
/// <summary>
/// Deletes DAT index entries for orphaned DATs
/// </summary>
private static void PurgeDelete()
{
_logger.User("This feature is not yet implemented: purge-delete");
}
/// <summary> /// <summary>
/// Populate or refresh the database information /// Populate or refresh the database information
/// </summary> /// </summary>

View File

@@ -10,51 +10,70 @@ namespace SabreTools
{ {
#region Init Methods #region Init Methods
/// <summary>
/// Wrap adding files to the depots
/// </summary>
/// <param name="inputs"></param>
/// <param name="onlyNeeded"></param>
private static void InitArchive(List<string> inputs, bool onlyNeeded) private static void InitArchive(List<string> inputs, bool onlyNeeded)
{ {
_logger.User("This feature is not yet implemented: archive"); _logger.User("This feature is not yet implemented: archive");
} }
/// <summary>
/// Wrap building all files from a set of DATs
/// </summary>
/// <param name="inputs"></param>
private static void InitBuild(List<string> inputs) private static void InitBuild(List<string> inputs)
{ {
_logger.User("This feature is not yet implemented: build"); _logger.User("This feature is not yet implemented: build");
} }
/// <summary>
/// Wrap finding all files that are in both the database and a new Dat
/// </summary>
/// <param name="newdat"></param>
private static void InitDiffDat(string newdat) private static void InitDiffDat(string newdat)
{ {
_logger.User("This feature is not yet implemented: diffdat"); _logger.User("This feature is not yet implemented: diffdat");
} }
/// <summary>
/// Wrap creating a Dat from a directory
/// </summary>
/// <param name="inputs"></param>
private static void InitDir2Dat(List<string> inputs) private static void InitDir2Dat(List<string> inputs)
{ {
_logger.User("This feature is not yet implemented: dir2dat"); _logger.User("This feature is not yet implemented: dir2dat");
} }
/// <summary>
/// Wrap creating a fixdat for each Dat
/// </summary>
/// <param name="inputs"></param>
private static void InitFixdat(List<string> inputs) private static void InitFixdat(List<string> inputs)
{ {
_logger.User("This feature is not yet implemented: fixdat"); _logger.User("This feature is not yet implemented: fixdat");
} }
/// <summary>
/// Wrap looking up if hashes exist in the database
/// </summary>
/// <param name="inputs"></param>
private static void InitLookup(List<string> inputs) private static void InitLookup(List<string> inputs)
{ {
_logger.User("This feature is not yet implemented: lookup"); _logger.User("This feature is not yet implemented: lookup");
} }
/// <summary>
/// Wrap creating a havefile and a missfile for each Dat
/// </summary>
/// <param name="inputs"></param>
private static void InitMiss(List<string> inputs) private static void InitMiss(List<string> inputs)
{ {
_logger.User("This feature is not yet implemented: miss"); _logger.User("This feature is not yet implemented: miss");
} }
private static void InitPurgeBackup()
{
_logger.User("This feature is not yet implemented: purge-backup");
}
private static void InitPurgeDelete()
{
_logger.User("This feature is not yet implemented: purge-delete");
}
#endregion #endregion
} }
} }

View File

@@ -277,19 +277,19 @@ namespace SabreTools
// Shows progress of the currently running command // Shows progress of the currently running command
else if (progress) else if (progress)
{ {
_logger.User("This feature is not yet implemented!"); _logger.User("This feature is not used in RombaSharp: progress");
} }
// Moves DAT index entries for orphaned DATs // Moves DAT index entries for orphaned DATs
else if (purgeBackup) else if (purgeBackup)
{ {
InitPurgeBackup(); PurgeBackup();
} }
// Deletes DAT index entries for orphaned DATs // Deletes DAT index entries for orphaned DATs
else if (purgeDelete) else if (purgeDelete)
{ {
InitPurgeDelete(); PurgeDelete();
} }
// Refreshes the DAT index from the files in the DAT master directory tree // Refreshes the DAT index from the files in the DAT master directory tree
@@ -301,7 +301,7 @@ namespace SabreTools
// Gracefully shuts down server // Gracefully shuts down server
else if (shutdown) else if (shutdown)
{ {
_logger.User("This feature is not yet implemented!"); _logger.User("This feature is not used in RombaSharp: shutdown");
} }
// If nothing is set, show the help // If nothing is set, show the help