From d6ce938c4ad12b96bf43187b6c8518903091dd39 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Thu, 18 Oct 2012 22:45:04 -0400 Subject: [PATCH] Code Cleanup - Rename the class CmdStatistics to CmdStats for consistency because 'stats' is the command. Signed-off-by: Paul Beckingham --- src/commands/CMakeLists.txt | 2 +- src/commands/{CmdStatistics.cpp => CmdStats.cpp} | 6 +++--- src/commands/{CmdStatistics.h => CmdStats.h} | 8 ++++---- src/commands/Command.cpp | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) rename src/commands/{CmdStatistics.cpp => CmdStats.cpp} (98%) rename src/commands/{CmdStatistics.h => CmdStats.h} (93%) diff --git a/src/commands/CMakeLists.txt b/src/commands/CMakeLists.txt index 166f1a566..fbb126e72 100644 --- a/src/commands/CMakeLists.txt +++ b/src/commands/CMakeLists.txt @@ -43,7 +43,7 @@ set (commands_SRCS Command.cpp Command.h CmdShell.cpp CmdShell.h CmdShow.cpp CmdShow.h CmdStart.cpp CmdStart.h - CmdStatistics.cpp CmdStatistics.h + CmdStats.cpp CmdStats.h CmdStop.cpp CmdStop.h CmdSummary.cpp CmdSummary.h CmdSynch.cpp CmdSynch.h diff --git a/src/commands/CmdStatistics.cpp b/src/commands/CmdStats.cpp similarity index 98% rename from src/commands/CmdStatistics.cpp rename to src/commands/CmdStats.cpp index daa23801f..7e374030d 100644 --- a/src/commands/CmdStatistics.cpp +++ b/src/commands/CmdStats.cpp @@ -37,12 +37,12 @@ #include #include #include -#include +#include extern Context context; //////////////////////////////////////////////////////////////////////////////// -CmdStatistics::CmdStatistics () +CmdStats::CmdStats () { _keyword = "stats"; _usage = "task stats"; @@ -52,7 +52,7 @@ CmdStatistics::CmdStatistics () } //////////////////////////////////////////////////////////////////////////////// -int CmdStatistics::execute (std::string& output) +int CmdStats::execute (std::string& output) { int rc = 0; std::stringstream out; diff --git a/src/commands/CmdStatistics.h b/src/commands/CmdStats.h similarity index 93% rename from src/commands/CmdStatistics.h rename to src/commands/CmdStats.h index 624eec3c5..b2868be62 100644 --- a/src/commands/CmdStatistics.h +++ b/src/commands/CmdStats.h @@ -25,17 +25,17 @@ // //////////////////////////////////////////////////////////////////////////////// -#ifndef INCLUDED_CMDSTATISTICS -#define INCLUDED_CMDSTATISTICS +#ifndef INCLUDED_CMDSTATS +#define INCLUDED_CMDSTATS #define L10N // Localization complete. #include #include -class CmdStatistics : public Command +class CmdStats : public Command { public: - CmdStatistics (); + CmdStats (); int execute (std::string&); }; diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index 28b665abf..01bea08a4 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -80,7 +80,7 @@ #include #include #include -#include +#include #include #include //#include @@ -155,7 +155,7 @@ void Command::factory (std::map & all) c = new CmdShell (); all[c->keyword ()] = c; c = new CmdShow (); all[c->keyword ()] = c; c = new CmdStart (); all[c->keyword ()] = c; - c = new CmdStatistics (); all[c->keyword ()] = c; + c = new CmdStats (); all[c->keyword ()] = c; c = new CmdStop (); all[c->keyword ()] = c; c = new CmdSummary (); all[c->keyword ()] = c; // c = new CmdSynch (); all[c->keyword ()] = c;