1 | /* Copyright © 2005-2007 Roger Leigh <rleigh@debian.org> |
---|
2 | * |
---|
3 | * schroot is free software: you can redistribute it and/or modify it |
---|
4 | * under the terms of the GNU General Public License as published by |
---|
5 | * the Free Software Foundation, either version 3 of the License, or |
---|
6 | * (at your option) any later version. |
---|
7 | * |
---|
8 | * schroot is distributed in the hope that it will be useful, but |
---|
9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
11 | * General Public License for more details. |
---|
12 | * |
---|
13 | * You should have received a copy of the GNU General Public License |
---|
14 | * along with this program. If not, see |
---|
15 | * <http://www.gnu.org/licenses/>. |
---|
16 | * |
---|
17 | *********************************************************************/ |
---|
18 | |
---|
19 | #ifndef SCHROOT_LISTMOUNTS_OPTIONS_H |
---|
20 | #define SCHROOT_LISTMOUNTS_OPTIONS_H |
---|
21 | |
---|
22 | #include <schroot-base/schroot-base-options.h> |
---|
23 | |
---|
24 | #include <string> |
---|
25 | |
---|
26 | namespace schroot_listmounts |
---|
27 | { |
---|
28 | |
---|
29 | /** |
---|
30 | * schroot-listmounts command-line options. |
---|
31 | */ |
---|
32 | class options : public schroot_base::options |
---|
33 | { |
---|
34 | public: |
---|
35 | /// A shared_ptr to an options object. |
---|
36 | typedef std::tr1::shared_ptr<options> ptr; |
---|
37 | |
---|
38 | /// Begin, run and end a session. |
---|
39 | static const action_type ACTION_LISTMOUNTS; |
---|
40 | |
---|
41 | /// The constructor. |
---|
42 | options (); |
---|
43 | |
---|
44 | /// The destructor. |
---|
45 | virtual ~options (); |
---|
46 | |
---|
47 | /// The mountpoint to check. |
---|
48 | std::string mountpoint; |
---|
49 | |
---|
50 | protected: |
---|
51 | virtual void |
---|
52 | add_options (); |
---|
53 | |
---|
54 | virtual void |
---|
55 | add_option_groups (); |
---|
56 | |
---|
57 | virtual void |
---|
58 | check_options (); |
---|
59 | |
---|
60 | /// Mount options group. |
---|
61 | boost::program_options::options_description mount; |
---|
62 | }; |
---|
63 | |
---|
64 | } |
---|
65 | |
---|
66 | #endif /* SCHROOT_LISTMOUNTS_OPTIONS_H */ |
---|
67 | |
---|
68 | /* |
---|
69 | * Local Variables: |
---|
70 | * mode:C++ |
---|
71 | * End: |
---|
72 | */ |
---|