#include <schroot-listmounts-main.h>
Inheritance diagram for schroot_listmounts::main:


Public Types | |
| typedef sbuild::custom_error< error_code > | error |
| Exception type. | |
| OPEN | |
| Failed to open file. | |
| CLOSE | |
| Failed to close file. | |
| enum | error_code { OPEN, CLOSE } |
| Error codes. More... | |
Public Member Functions | |
| main (options::ptr &options) | |
| The constructor. | |
| virtual | ~main () |
| The destructor. | |
Protected Member Functions | |
| virtual int | run_impl () |
| Run the program. | |
Private Member Functions | |
| sbuild::string_list | list_mounts (std::string const &mountfile) const |
| List mounts (internal helper). | |
| virtual void | action_listmounts () |
| List mounts. | |
Private Attributes | |
| options::ptr | opts |
| The program options. | |
This class is used to "run" schroot.
Exception type.
| main::main | ( | options::ptr & | options | ) |
The constructor.
| options | the command-line options to use. |
| main::~main | ( | ) | [virtual] |
| void main::action_listmounts | ( | ) | [private, virtual] |
List mounts.
| sbuild::string_list main::list_mounts | ( | std::string const & | mountfile | ) | const [private] |
List mounts (internal helper).
| mountfile | the file containing the database of mounted filesystems. |
| int main::run_impl | ( | ) | [protected, virtual] |
Run the program.
Implements schroot_base::main.
options::ptr schroot_listmounts::main::opts [private] |
The program options.
1.4.7