Remove boost library to parse input args. use a simple struct based approach
This commit is contained in:
1 parent
0ab7ab29ca
commit
011856bbe2
10 files changed
+1019
-126
No files matched your search
+5
-17
@@ -23,8 +23,8 @@
|
||||
*/
|
||||
|
||||
#include "PlaYUVerDefs.h"
|
||||
#include <boost/program_options.hpp>
|
||||
namespace po = boost::program_options;
|
||||
#include "ProgramOptions.h"
|
||||
|
||||
|
||||
namespace plaYUVer
|
||||
{
|
||||
@@ -35,22 +35,10 @@ public:
|
||||
PlaYUVerCmdParser();
|
||||
~PlaYUVerCmdParser();
|
||||
|
||||
Void Config( Int argc, Char *argv[] );
|
||||
Void addOptions( po::options_description );
|
||||
Bool parse();
|
||||
|
||||
po::variables_map getOptionsMap()
|
||||
{
|
||||
return m_cOptionsMap;
|
||||
}
|
||||
|
||||
static po::options_description GetCommandOpts();
|
||||
|
||||
Bool parse( Int argc, Char *argv[] );
|
||||
Options& Opts();
|
||||
private:
|
||||
Int m_iArgc;
|
||||
Char** m_apcArgv;
|
||||
po::options_description m_ParserOptions;
|
||||
po::variables_map m_cOptionsMap;
|
||||
Options m_cParserOptions;
|
||||
|
||||
Bool checkListingOpts();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user