#include <schroot-releaselock-options.h>
Inheritance diagram for schroot_releaselock::options:
Public Types | |
typedef std::tr1::shared_ptr< options > | ptr |
A shared_ptr to an options object. | |
ACTION_RELEASELOCK | |
Release lock. | |
ACTION_HELP | |
Display program help. | |
ACTION_VERSION | |
Display program version. | |
enum | action_type { ACTION_RELEASELOCK, 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 | device |
The device to unlock. | |
int | pid |
The PID holding the lock. | |
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 | lock |
Lock options group. |
typedef std::tr1::shared_ptr<options> schroot_releaselock::options::ptr |
options::options | ( | ) |
options::~options | ( | ) | [virtual] |
void options::add_option_groups | ( | ) | [protected, virtual] |
void options::add_options | ( | ) | [protected, virtual] |
void options::check_options | ( | ) | [protected, virtual] |
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. |
The action to perform.
std::string schroot_releaselock::options::device |
The device to unlock.
boost::program_options::options_description schroot_releaselock::options::lock [protected] |
Lock options group.
The PID holding the lock.