paludis::args::IntegerArg Class Reference

#include <args_option.hh>

Inheritance diagram for paludis::args::IntegerArg:

paludis::args::ArgsOption

List of all members.

Public Member Functions

 IntegerArg (ArgsGroup *const, const std::string &long_name, const char short_name, const std::string &description)
int argument () const
void set_argument (const int arg)
virtual bool can_be_negated () const


Detailed Description

An option that takes an integer argument.

Constructor & Destructor Documentation

paludis::args::IntegerArg::IntegerArg ( ArgsGroup const,
const std::string &  long_name,
const char  short_name,
const std::string &  description 
)

Constructor


Member Function Documentation

int paludis::args::IntegerArg::argument (  )  const [inline]

Fetch the argument that was given to this option.

virtual bool paludis::args::IntegerArg::can_be_negated (  )  const [virtual]

Can we be negated?

Needs to match up with ArgsVisitor logic.

Implements paludis::args::ArgsOption.

void paludis::args::IntegerArg::set_argument ( const int  arg  )  [inline]

Set the argument returned by argument().


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

Generated on Mon Dec 22 19:43:57 2008 for paludis by  doxygen 1.5.7.1