Classes | Public Types | Public Member Functions

Arg_parser Class Reference

#include <arg_parser.h>

List of all members.

Classes

class  ArgParserException
struct  Option

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 >
argument (const int i) const throw (ArgParserException)

Member Enumeration Documentation

Enumerator:
no 
yes 
maybe 

Constructor & Destructor Documentation

Arg_parser::Arg_parser ( const int  argc,
const char *const   argv[],
const Option  options[],
const bool  in_order = false 
) throw ()

References _error, data, and gnash::key::i.

Arg_parser::Arg_parser ( const char *const   opt,
const char *const   arg,
const Option  options[] 
) throw ()

References _error, and data.


Member Function Documentation

std::string Arg_parser::argument ( const int  i  )  const throw (ArgParserException) [inline]

References arguments(), and gnash::key::i.

Referenced by argument(), and main().

template<typename T >
T Arg_parser::argument ( const int  i  )  const throw (ArgParserException) [inline]
int Arg_parser::arguments (  )  const throw () [inline]

Referenced by argument(), code(), and main().

int Arg_parser::code ( const int  i  )  const throw () [inline]

References arguments(), and gnash::key::i.

Referenced by main().

const std::string& Arg_parser::error (  )  const throw () [inline]

Referenced by main().


The documentation for this class was generated from the following files: