#include <schroot-listmounts-main.h>
Inheritance diagram for schroot_listmounts::main:
Public Types | |
enum | error_code { FIND, OPEN, CLOSE } |
Error codes. More... | |
typedef sbuild::custom_error< error_code > | error |
Exception type. | |
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.
Definition at line 34 of file schroot-listmounts-main.h.
main::main | ( | options::ptr & | options | ) |
The constructor.
options | the command-line options to use. |
Definition at line 73 of file schroot-listmounts-main.cc.
main::~main | ( | ) | [virtual] |
The destructor.
Reimplemented from schroot_base::main.
Definition at line 83 of file schroot-listmounts-main.cc.
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. |
Definition at line 88 of file schroot-listmounts-main.cc.
References CLOSE, FIND, sbuild::normalname(), and OPEN.
Referenced by action_listmounts().
Here is the call graph for this function:
Here is the caller graph for this function:
void main::action_listmounts | ( | ) | [private, virtual] |
List mounts.
Definition at line 130 of file schroot-listmounts-main.cc.
References list_mounts().
Referenced by run_impl().
Here is the call graph for this function:
Here is the caller graph for this function:
int main::run_impl | ( | ) | [protected, virtual] |
Run the program.
Implements schroot_base::main.
Definition at line 144 of file schroot-listmounts-main.cc.
References schroot_base::main::action_help(), schroot_listmounts::options::ACTION_HELP, action_listmounts(), schroot_listmounts::options::ACTION_LISTMOUNTS, schroot_base::main::action_version(), and schroot_listmounts::options::ACTION_VERSION.
Here is the call graph for this function:
options::ptr schroot_listmounts::main::opts [private] |