Code Cleanup

- Rename the class CmdStatistics to CmdStats for consistency
  because 'stats' is the command.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Scott Kostyshak 2012-10-18 22:45:04 -04:00 committed by Paul Beckingham
parent fb427a4c6f
commit d6ce938c4a
4 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -37,12 +37,12 @@
#include <text.h>
#include <util.h>
#include <i18n.h>
#include <CmdStatistics.h>
#include <CmdStats.h>
extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdStatistics::CmdStatistics ()
CmdStats::CmdStats ()
{
_keyword = "stats";
_usage = "task <filter> 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;

View file

@ -25,17 +25,17 @@
//
////////////////////////////////////////////////////////////////////////////////
#ifndef INCLUDED_CMDSTATISTICS
#define INCLUDED_CMDSTATISTICS
#ifndef INCLUDED_CMDSTATS
#define INCLUDED_CMDSTATS
#define L10N // Localization complete.
#include <string>
#include <Command.h>
class CmdStatistics : public Command
class CmdStats : public Command
{
public:
CmdStatistics ();
CmdStats ();
int execute (std::string&);
};

View file

@ -80,7 +80,7 @@
#include <CmdShell.h>
#include <CmdShow.h>
#include <CmdStart.h>
#include <CmdStatistics.h>
#include <CmdStats.h>
#include <CmdStop.h>
#include <CmdSummary.h>
//#include <CmdSynch.h>
@ -155,7 +155,7 @@ void Command::factory (std::map <std::string, Command*>& 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;