Rename CommandLineHandle class
This commit is contained in:
1 parent
c7c33417c7
commit
64fd5cb1a9
4 files changed
+18
-18
No files matched your search
@@ -0,0 +1,96 @@
|
||||
/* This file is a part of plaYUVer project
|
||||
* Copyright (C) 2014-2015 by Luis Lucas (luisfrlucas@gmail.com)
|
||||
* Joao Carreira (jfmcarreira@gmail.com)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file PlaYUVerToolsCmdParser.h
|
||||
* \brief Handle for command line
|
||||
*/
|
||||
|
||||
#ifndef __PLAYUVERTOOLSCMDPARSER_H__
|
||||
#define __PLAYUVERTOOLSCMDPARSER_H__
|
||||
|
||||
#include "config.h"
|
||||
#include "lib/PlaYUVerDefs.h"
|
||||
#include "lib/PlaYUVerCmdParser.h"
|
||||
|
||||
namespace plaYUVer
|
||||
{
|
||||
|
||||
class PlaYUVerStream;
|
||||
|
||||
class PlaYUVerToolsCmdParser: public PlaYUVerCmdParser
|
||||
{
|
||||
friend class PlaYUVerTools;
|
||||
public:
|
||||
PlaYUVerToolsCmdParser();
|
||||
~PlaYUVerToolsCmdParser();
|
||||
|
||||
Void setLogLevel( enum LOG_LEVEL level )
|
||||
{
|
||||
m_uiLogLevel = level;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send the specified message to the log if the level is higher than or equal
|
||||
* to the current LogLevel. By default, all logging messages are sent to
|
||||
* stdout.
|
||||
*
|
||||
* @param level The importance level of the message expressed using a @ref
|
||||
* lavu_log_constants "Logging Constant".
|
||||
* @param fmt The format string (printf-compatible) that specifies how
|
||||
* subsequent arguments are converted to output.
|
||||
*
|
||||
* @note this function might not be safe in C++ (try to upgrade it)
|
||||
*/
|
||||
Void log( UInt level, const char *fmt, ... );
|
||||
|
||||
Int parseToolsArgs( Int argc, Char *argv[] );
|
||||
|
||||
private:
|
||||
Options m_cParserOptions;
|
||||
UInt m_uiLogLevel;
|
||||
|
||||
/**
|
||||
* Command line opts for PlaYUVerTools
|
||||
*/
|
||||
Bool m_bShowHelp;
|
||||
Bool m_bShowVersion;
|
||||
Bool m_bQuiet;
|
||||
std::vector<std::string> m_apcInputs;
|
||||
std::string m_strInput;
|
||||
std::string m_strOutput;
|
||||
std::string m_strResolution;
|
||||
std::string m_strPelFmt;
|
||||
UInt m_uiBitsPerPixel;
|
||||
Bool m_bListPelFmts;
|
||||
Int m_iFrames;
|
||||
|
||||
Bool m_bListQuality;
|
||||
std::string m_strQualityMetric;
|
||||
Bool m_bListModules;
|
||||
std::string m_strModule;
|
||||
|
||||
Void listModules();
|
||||
Void listModuleHelp();
|
||||
|
||||
};
|
||||
|
||||
} // NAMESPACE
|
||||
|
||||
#endif // __PLAYUVERTOOLSCMDPARSER_H__
|
||||
Reference in new issue
Block a user