schroot_listmounts::options Class Reference

schroot-listmounts command-line options. More...

#include <schroot-listmounts-options.h>

Inheritance diagram for schroot_listmounts::options:

Inheritance graph
[legend]
Collaboration diagram for schroot_listmounts::options:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::tr1::shared_ptr<
options
ptr
 A shared_ptr to an options object.
 ACTION_LISTMOUNTS
 List mount points.
 ACTION_HELP
 Display program help.
 ACTION_VERSION
 Display program version.
enum  action_type { ACTION_LISTMOUNTS, ACTION_HELP, ACTION_VERSION }
 The action to perform. More...

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.

Detailed Description

schroot-listmounts command-line options.


Member Typedef Documentation

typedef std::tr1::shared_ptr<options> schroot_listmounts::options::ptr

A shared_ptr to an options object.

Reimplemented from schroot_base::options.


Member Enumeration Documentation

enum schroot_listmounts::options::action_type

The action to perform.

Enumerator:
ACTION_LISTMOUNTS  List mount points.
ACTION_HELP  Display program help.
ACTION_VERSION  Display program version.


Constructor & Destructor Documentation

options::options (  ) 

The constructor.

Reimplemented from schroot_base::options.

options::~options (  )  [virtual]

The destructor.

Reimplemented from schroot_base::options.


Member Function Documentation

void options::add_option_groups (  )  [protected, virtual]

Add option groups to container groups.

Reimplemented from schroot_base::options.

void options::add_options (  )  [protected, virtual]

Add options to option groups.

Reimplemented from schroot_base::options.

void options::check_options (  )  [protected, virtual]

Check options after parsing.

Reimplemented from schroot_base::options.

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).

Parameters:
action the action to set.


Member Data Documentation

action_type schroot_listmounts::options::action

The action to perform.

boost::program_options::options_description schroot_listmounts::options::mount [protected]

Mount options group.

std::string schroot_listmounts::options::mountpoint

The mountpoint to check.


The documentation for this class was generated from the following files:
Generated on Mon Sep 11 23:20:31 2006 for schroot by  doxygen 1.4.7