#include <schroot-listmounts-options.h>
Inheritance diagram for schroot_listmounts::options:
Public Types | |
enum | action_type { ACTION_LISTMOUNTS, ACTION_HELP, ACTION_VERSION } |
The action to perform. More... | |
typedef std::tr1::shared_ptr< options > | ptr |
A shared_ptr to an options object. | |
Public Member Functions | |
options () | |
The constructor. | |
virtual | ~options () |
The destructor. | |
Public Attributes | |
action_type | action |
The action to perform. | |
std::string | mountpoint |
The mountpoint to check. | |
Protected Member Functions | |
void | set_action (action_type action) |
Set action. | |
virtual void | add_options () |
Add options to option groups. | |
virtual void | add_option_groups () |
Add option groups to container groups. | |
virtual void | check_options () |
Check options after parsing. | |
Protected Attributes | |
boost::program_options::options_description | mount |
Mount options group. |
Definition at line 33 of file schroot-listmounts-options.h.
typedef std::tr1::shared_ptr<options> schroot_listmounts::options::ptr |
A shared_ptr to an options object.
Reimplemented from schroot_base::options.
Definition at line 37 of file schroot-listmounts-options.h.
The action to perform.
ACTION_LISTMOUNTS | List mount points. |
ACTION_HELP | Display program help. |
ACTION_VERSION | Display program version. |
Definition at line 40 of file schroot-listmounts-options.h.
options::options | ( | ) |
The constructor.
Reimplemented from schroot_base::options.
Definition at line 37 of file schroot-listmounts-options.cc.
options::~options | ( | ) | [virtual] |
The destructor.
Reimplemented from schroot_base::options.
Definition at line 45 of file schroot-listmounts-options.cc.
void options::set_action | ( | action_type | action | ) | [protected] |
Set action.
This detects if an action has already been set (only one action may be specified at once).
action | the action to set. |
Definition at line 93 of file schroot-listmounts-options.cc.
References _, and ACTION_LISTMOUNTS.
Referenced by check_options().
Here is the caller graph for this function:
void options::add_options | ( | ) | [protected, virtual] |
Add options to option groups.
Reimplemented from schroot_base::options.
Definition at line 50 of file schroot-listmounts-options.cc.
References _, schroot_base::options::add_options(), mount, and mountpoint.
Here is the call graph for this function:
void options::add_option_groups | ( | ) | [protected, virtual] |
Add option groups to container groups.
Reimplemented from schroot_base::options.
Definition at line 60 of file schroot-listmounts-options.cc.
References schroot_base::options::add_option_groups(), schroot_base::options::global, mount, and schroot_base::options::visible.
Here is the call graph for this function:
void options::check_options | ( | ) | [protected, virtual] |
Check options after parsing.
Reimplemented from schroot_base::options.
Definition at line 76 of file schroot-listmounts-options.cc.
References _, action, ACTION_HELP, ACTION_VERSION, schroot_base::options::check_options(), set_action(), and schroot_base::options::vm.
Here is the call graph for this function:
The action to perform.
Definition at line 54 of file schroot-listmounts-options.h.
Referenced by check_options().
std::string schroot_listmounts::options::mountpoint |
The mountpoint to check.
Definition at line 56 of file schroot-listmounts-options.h.
Referenced by add_options().
boost::program_options::options_description schroot_listmounts::options::mount [protected] |
Mount options group.
Definition at line 78 of file schroot-listmounts-options.h.
Referenced by add_option_groups(), and add_options().