Revision 24167,
1.7 KB
checked in by broder, 15 years ago
(diff) |
Import schroot upstream into subversion.
|
Line | |
---|
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_MOUNT_OPTIONS_H |
---|
20 | #define SCHROOT_MOUNT_OPTIONS_H |
---|
21 | |
---|
22 | #include <schroot-base/schroot-base-options.h> |
---|
23 | |
---|
24 | #include <string> |
---|
25 | |
---|
26 | namespace schroot_mount |
---|
27 | { |
---|
28 | |
---|
29 | /** |
---|
30 | * schroot-mount 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_MOUNT; |
---|
40 | |
---|
41 | /// The constructor. |
---|
42 | options (); |
---|
43 | |
---|
44 | /// The destructor. |
---|
45 | virtual ~options (); |
---|
46 | |
---|
47 | /// Dry run. |
---|
48 | bool dry_run; |
---|
49 | |
---|
50 | /// The fstab to read. |
---|
51 | std::string fstab; |
---|
52 | |
---|
53 | /// The mountpoint to check. |
---|
54 | std::string mountpoint; |
---|
55 | |
---|
56 | protected: |
---|
57 | virtual void |
---|
58 | add_options (); |
---|
59 | |
---|
60 | virtual void |
---|
61 | add_option_groups (); |
---|
62 | |
---|
63 | virtual void |
---|
64 | check_options (); |
---|
65 | |
---|
66 | /// Mount options group. |
---|
67 | boost::program_options::options_description mount; |
---|
68 | }; |
---|
69 | |
---|
70 | } |
---|
71 | |
---|
72 | #endif /* SCHROOT_MOUNT_OPTIONS_H */ |
---|
73 | |
---|
74 | /* |
---|
75 | * Local Variables: |
---|
76 | * mode:C++ |
---|
77 | * End: |
---|
78 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.