paludis::args::AliasArg Class Reference

#include <args_option.hh>

Inheritance diagram for paludis::args::AliasArg:

paludis::args::ArgsOption

List of all members.

Public Member Functions

 AliasArg (ArgsOption *const other, const std::string &new_long_name, bool is_hidden=false)
virtual bool specified () const
virtual void set_specified (const bool value)
virtual bool hidden () const
virtual void set_hidden (const bool value)
ArgsOptionother () const
virtual bool can_be_negated () const
virtual const std::string forwardable_string () const PALUDIS_ATTRIBUTE((warn_unused_result))


Detailed Description

An AliasArg is an alias for another argument.

Constructor & Destructor Documentation

paludis::args::AliasArg::AliasArg ( ArgsOption *const   other,
const std::string &  new_long_name,
bool  is_hidden = false 
)

Constructor.


Member Function Documentation

virtual bool paludis::args::AliasArg::specified (  )  const [inline, virtual]

Fetch whether or not we were specified on the command line.

Reimplemented from paludis::args::ArgsOption.

virtual void paludis::args::AliasArg::set_specified ( const bool  value  )  [inline, virtual]

Set the value returned by specified().

Reimplemented from paludis::args::ArgsOption.

ArgsOption* paludis::args::AliasArg::other (  )  const [inline]

Fetch our associated option.

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

Can we be negated?

Needs to match up with ArgsVisitor logic.

Implements paludis::args::ArgsOption.

virtual const std::string paludis::args::AliasArg::forwardable_string (  )  const [virtual]

Ourself as a forwardable string.

For example, '--foo bar' or '--foo bar --foo baz' or '--foo', or if not specified, the empty string.

Since:
0.40

Implements paludis::args::ArgsOption.


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:12 2009 for paludis by  doxygen 1.5.4