paludis::args::SwitchArg Class Reference

#include <args_option.hh>

Inheritance diagram for paludis::args::SwitchArg:

paludis::args::ArgsOption

List of all members.

Public Member Functions

 SwitchArg (ArgsGroup *const group, std::string long_name, char short_name, std::string description, const bool can_be_negated)
 SwitchArg (ArgsGroup *const group, std::string long_name, char short_name, std::string description) PALUDIS_ATTRIBUTE((deprecated))
virtual bool can_be_negated () const


Detailed Description

A SwitchArg is an option that can either be specified or not specified, and that takes no value (for example, --help).

Constructor & Destructor Documentation

paludis::args::SwitchArg::SwitchArg ( ArgsGroup *const   group,
std::string  long_name,
char  short_name,
std::string  description,
const bool  can_be_negated 
)

Constructor.

Since:
0.26

paludis::args::SwitchArg::SwitchArg ( ArgsGroup *const   group,
std::string  long_name,
char  short_name,
std::string  description 
)

Constructor.

Deprecated:
Use the form with the additional can_be_negated arg. Deprecated in 0.26.


Member Function Documentation

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

Can we be negated?

Needs to match up with ArgsVisitor logic.

Implements paludis::args::ArgsOption.


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

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