Gnash  0.8.11dev
Classes | Public Types | Public Member Functions | List of all members
Arg_parser Class Reference

#include <arg_parser.h>

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

§ Has_arg

Enumerator
no 
yes 
maybe 

Constructor & Destructor Documentation

§ Arg_parser() [1/2]

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

References data.

Referenced by Arg_parser::ArgParserException::what().

§ Arg_parser() [2/2]

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

Member Function Documentation

§ argument() [1/2]

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

§ argument() [2/2]

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

§ arguments()

int Arg_parser::arguments ( ) const
throw (
)
inline

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

§ code()

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

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

Referenced by main().

§ error()

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

Referenced by main().


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