Gnash
0.8.10
|
#include <arg_parser.h>
Classes | |
class | ArgParserException |
struct | Option |
struct | Record |
Public Types | |
enum | Has_arg { no, yes, maybe } |
Public Member Functions | |
DSOEXPORT | Arg_parser (const int argc, const char *const argv[], const Option options[], const bool in_order=false) throw () |
DSOEXPORT | Arg_parser (const char *const opt, const char *const arg, const Option options[]) throw () |
const std::string & | error () const throw () |
int | arguments () const throw () |
int | code (const int i) const throw () |
std::string | argument (const int i) const throw (ArgParserException) |
template<typename T > | |
T | argument (const int i) const throw (ArgParserException) |
enum Arg_parser::Has_arg |
Arg_parser::Arg_parser | ( | const int | argc, |
const char *const | argv[], | ||
const Option | options[], | ||
const bool | in_order = false |
||
) | throw () |
References data, _error, and gnash::key::i.
Arg_parser::Arg_parser | ( | const char *const | opt, |
const char *const | arg, | ||
const Option | options[] | ||
) | throw () |
std::string Arg_parser::argument | ( | const int | i | ) | const throw (ArgParserException) [inline] |
References gnash::key::i, and arguments().
Referenced by argument(), and main().
T Arg_parser::argument | ( | const int | i | ) | const throw (ArgParserException) [inline] |
References gnash::key::T, gnash::key::t, gnash::key::i, arguments(), and argument().
int Arg_parser::arguments | ( | ) | const throw () [inline] |
Referenced by code(), argument(), and main().
int Arg_parser::code | ( | const int | i | ) | const throw () [inline] |
References gnash::key::i, and arguments().
Referenced by main().
const std::string& Arg_parser::error | ( | ) | const throw () [inline] |
Referenced by main().