#include <CmdLineParser.h>


Public Member Functions | |
| OptionsINT (const Parser &parser) | |
| Option< INT > & | Add (const std::string &, const std::string &="", INT=0, INT=std::numeric_limits< INT >::min(), INT=std::numeric_limits< INT >::max()) |
| bool | Match (int &, char **, int) |
| CmdLine::OptionsINT::OptionsINT | ( | const Parser & | parser | ) | [inline] |
| Option< INT > & OptionsINT::Add | ( | const std::string & | name, | |
| const std::string & | alias = "", |
|||
| INT | def = 0, |
|||
| INT | min = std::numeric_limits<INT>::min(), |
|||
| INT | max = std::numeric_limits<INT>::max() | |||
| ) |
References CmdLine::Parser::m_flags, and CmdLine::OptionsType< T >::m_parser.
| bool OptionsINT::Match | ( | int & | i, | |
| char ** | argv, | |||
| int | argc | |||
| ) |
Try to identify an integer option in command-line and then add it (together its int argument) into m_opts.
References CmdLine::OptionsType< T >::CheckDuplicate(), CmdLine::OptionsType< T >::Find(), CmdLine::Parser::Float, CmdLine::Option< T >::IsSet(), CmdLine::Option< T >::m_found, CmdLine::Option< T >::m_max, CmdLine::Option< T >::m_min, CmdLine::OptionsType< T >::m_parser, CmdLine::Option< T >::m_value, CmdLine::NO_VALUE, CmdLine::OUT_OF_RANGE, and CmdLine::SILENT.
Referenced by CmdLine::Parser::Process().