From 64fd5cb1a9d0a70f90be0bb73ae12af9d4cdf674 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Wed, 23 Sep 2015 19:24:56 +0100 Subject: [PATCH] Rename CommandLineHandle class --- tools/CMakeLists.txt | 2 +- tools/PlaYUVerTools.h | 4 ++-- ...LineHandle.cpp => PlaYUVerToolsCmdParser.cpp} | 16 ++++++++-------- ...mandLineHandle.h => PlaYUVerToolsCmdParser.h} | 14 +++++++------- 4 files changed, 18 insertions(+), 18 deletions(-) rename tools/{CommandLineHandle.cpp => PlaYUVerToolsCmdParser.cpp} (92%) rename tools/{CommandLineHandle.h => PlaYUVerToolsCmdParser.h} (90%) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index f45ce07..6dc7b7d 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -11,7 +11,7 @@ INCLUDE_DIRECTORIES( set(plaYUver_Tools_SRCS main.cpp PlaYUVerTools.cpp - CommandLineHandle.cpp + PlaYUVerToolsCmdParser.cpp ) ADD_EXECUTABLE( ${PROJECT_NAME}Tools ${plaYUver_Tools_SRCS} ) diff --git a/tools/PlaYUVerTools.h b/tools/PlaYUVerTools.h index 6a87e3d..ca12ebd 100644 --- a/tools/PlaYUVerTools.h +++ b/tools/PlaYUVerTools.h @@ -29,7 +29,7 @@ #include "lib/PlaYUVerDefs.h" #include "lib/PlaYUVerFrame.h" #include "lib/PlaYUVerStream.h" -#include "CommandLineHandle.h" +#include "PlaYUVerToolsCmdParser.h" namespace plaYUVer { @@ -49,7 +49,7 @@ public: Int Close(); private: - CommandLineHandle m_cCmdLineHandler; + PlaYUVerToolsCmdParser m_cCmdLineHandler; Bool m_bVerbose; UInt m_uiOperation; diff --git a/tools/CommandLineHandle.cpp b/tools/PlaYUVerToolsCmdParser.cpp similarity index 92% rename from tools/CommandLineHandle.cpp rename to tools/PlaYUVerToolsCmdParser.cpp index 5c6f2b8..b39f6d7 100644 --- a/tools/CommandLineHandle.cpp +++ b/tools/PlaYUVerToolsCmdParser.cpp @@ -18,13 +18,13 @@ */ /** - * \file CommandLineHandle.cpp + * \file PlaYUVerToolsCmdParser.cpp * \brief Handle for command line */ #include #include -#include "CommandLineHandle.h" +#include "PlaYUVerToolsCmdParser.h" #include "lib/PlaYUVerFrame.h" #include "lib/PlaYUVerStream.h" #include "lib/PlaYUVerModuleIf.h" @@ -33,7 +33,7 @@ namespace plaYUVer { -CommandLineHandle::CommandLineHandle() +PlaYUVerToolsCmdParser::PlaYUVerToolsCmdParser() { m_uiLogLevel = 0; m_bQuiet = false; @@ -41,12 +41,12 @@ CommandLineHandle::CommandLineHandle() m_iFrames = -1; } -CommandLineHandle::~CommandLineHandle() +PlaYUVerToolsCmdParser::~PlaYUVerToolsCmdParser() { } -Void CommandLineHandle::log( UInt level, const char *fmt, ... ) +Void PlaYUVerToolsCmdParser::log( UInt level, const char *fmt, ... ) { if( level >= m_uiLogLevel ) { @@ -57,7 +57,7 @@ Void CommandLineHandle::log( UInt level, const char *fmt, ... ) } } -Int CommandLineHandle::parseToolsArgs( Int argc, Char *argv[] ) +Int PlaYUVerToolsCmdParser::parseToolsArgs( Int argc, Char *argv[] ) { Int iRet = 0; @@ -108,7 +108,7 @@ Int CommandLineHandle::parseToolsArgs( Int argc, Char *argv[] ) return iRet; } -Void CommandLineHandle::listModules() +Void PlaYUVerToolsCmdParser::listModules() { Bool bDetailed = false; @@ -164,7 +164,7 @@ Void CommandLineHandle::listModules() } } -Void CommandLineHandle::listModuleHelp() +Void PlaYUVerToolsCmdParser::listModuleHelp() { std::string moduleName = m_strModule; PlaYUVerModuleIf* pcCurrModuleIf = NULL; diff --git a/tools/CommandLineHandle.h b/tools/PlaYUVerToolsCmdParser.h similarity index 90% rename from tools/CommandLineHandle.h rename to tools/PlaYUVerToolsCmdParser.h index 8a52177..d2c7510 100644 --- a/tools/CommandLineHandle.h +++ b/tools/PlaYUVerToolsCmdParser.h @@ -18,12 +18,12 @@ */ /** - * \file CommandLineHandle.h + * \file PlaYUVerToolsCmdParser.h * \brief Handle for command line */ -#ifndef __COMMANDLINEHANDLE_H__ -#define __COMMANDLINEHANDLE_H__ +#ifndef __PLAYUVERTOOLSCMDPARSER_H__ +#define __PLAYUVERTOOLSCMDPARSER_H__ #include "config.h" #include "lib/PlaYUVerDefs.h" @@ -34,12 +34,12 @@ namespace plaYUVer class PlaYUVerStream; -class CommandLineHandle: public PlaYUVerCmdParser +class PlaYUVerToolsCmdParser: public PlaYUVerCmdParser { friend class PlaYUVerTools; public: - CommandLineHandle(); - ~CommandLineHandle(); + PlaYUVerToolsCmdParser(); + ~PlaYUVerToolsCmdParser(); Void setLogLevel( enum LOG_LEVEL level ) { @@ -93,4 +93,4 @@ private: } // NAMESPACE -#endif // __COMMANDLINEHANDLE_H__ +#endif // __PLAYUVERTOOLSCMDPARSER_H__