~ubuntu-branches/ubuntu/maverick/schroot/maverick-updates

« back to all changes in this revision

Viewing changes to doc/schroot/html/schroot-main-base_8h-source.html

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh
  • Date: 2008-01-20 22:51:04 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20080120225104-3zhs8gk9byqigato
Tags: 1.1.6-1
* New upstream development release.
* Acknowledge NMU.  Thanks to Lucas Nussbaum for fixing the Boost
  library names following another incompatible change in Boost
  (Closes: #439215).
* debian/control: Suggest lvm2 instead of lvm-common (Closes: #452263).
* debian/copyright:
  - Update with new GIT source code repository location.
  - Update licence to GPLv3.
* debian/schroot.init: Update licence to GPLv3.
* bin/schroot/setup/20network, bin/schroot/setup/30passwd: For files to
  copy, compare file device, inode and contents to avoid copying
  identical files (Closes: #428808).
* If unknown keys are present in the configuration file, print a warning
  message to alert the user (Closes: #459658).
* The filesystems to mount in the chroot may be customised by the system
  administrator through the use of an fstab file on a per-chroot basis,
  and a new helper utility, schroot-mount (Closes: #395062, #427047).
  Thanks for your patience while we took the time to implement this the
  right way.
* Update Vietnamese translation (Closes: #461531).  Thanks to Clytie
  Siddall.
* debian/schroot.preinst: Add rm_conffile function to remove
  /etc/schroot/setup.d/20network and /etc/schroot/setup.d/30passwd for
  versions prior to this.  These are replaced by
  /etc/schroot/setup.d/20copyfiles.
* debian/schroot.NEWS: Document conffile changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
6
</head><body>
7
 
<!-- Generated by Doxygen 1.5.2 -->
 
7
<!-- Generated by Doxygen 1.5.4 -->
8
8
<div class="tabs">
9
9
  <ul>
10
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
15
15
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16
16
  </ul>
17
17
</div>
18
 
<div class="tabs">
19
 
  <ul>
20
 
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
21
 
    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
22
 
  </ul>
23
 
</div>
24
18
<div class="nav">
25
 
<a class="el" href="dir_101a379c6bb6ea5a405fc1dc3c87af45.html">bin</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_4e297da731d93540f33b5e45f1166790.html">schroot</a></div>
 
19
<a class="el" href="dir_85aaf03b3f18b2b8320021a91397a390.html">bin</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_46e4579422242d62a8167cdd43f5f1e5.html">schroot</a></div>
26
20
<h1>schroot-main-base.h</h1><a href="schroot-main-base_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright © 2005-2007  Roger Leigh &lt;rleigh@debian.org&gt;</span>
27
21
<a name="l00002"></a>00002 <span class="comment"> *</span>
28
 
<a name="l00003"></a>00003 <span class="comment"> * schroot is free software; you can redistribute it and/or modify it</span>
 
22
<a name="l00003"></a>00003 <span class="comment"> * schroot is free software: you can redistribute it and/or modify it</span>
29
23
<a name="l00004"></a>00004 <span class="comment"> * under the terms of the GNU General Public License as published by</span>
30
 
<a name="l00005"></a>00005 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
 
24
<a name="l00005"></a>00005 <span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span>
31
25
<a name="l00006"></a>00006 <span class="comment"> * (at your option) any later version.</span>
32
26
<a name="l00007"></a>00007 <span class="comment"> *</span>
33
27
<a name="l00008"></a>00008 <span class="comment"> * schroot is distributed in the hope that it will be useful, but</span>
36
30
<a name="l00011"></a>00011 <span class="comment"> * General Public License for more details.</span>
37
31
<a name="l00012"></a>00012 <span class="comment"> *</span>
38
32
<a name="l00013"></a>00013 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
39
 
<a name="l00014"></a>00014 <span class="comment"> * along with this program; if not, write to the Free Software</span>
40
 
<a name="l00015"></a>00015 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston,</span>
41
 
<a name="l00016"></a>00016 <span class="comment"> * MA  02111-1307  USA</span>
42
 
<a name="l00017"></a>00017 <span class="comment"> *</span>
43
 
<a name="l00018"></a>00018 <span class="comment"> *********************************************************************/</span>
44
 
<a name="l00019"></a>00019 
45
 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef SCHROOT_MAIN_BASE_H</span>
46
 
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define SCHROOT_MAIN_BASE_H</span>
47
 
<a name="l00022"></a>00022 <span class="preprocessor"></span>
48
 
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="code" href="schroot-base-main_8h.html">schroot-base/schroot-base-main.h</a>&gt;</span>
49
 
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;<a class="code" href="schroot-options-base_8h.html">schroot/schroot-options-base.h</a>&gt;</span>
50
 
<a name="l00025"></a>00025 
51
 
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/sbuild-custom-error_8h.html">sbuild/sbuild-custom-error.h</a>&gt;</span>
52
 
<a name="l00027"></a>00027 
53
 
<a name="l00028"></a><a class="code" href="namespaceschroot.html">00028</a> <span class="keyword">namespace </span>schroot
54
 
<a name="l00029"></a>00029 {
55
 
<a name="l00030"></a>00030 
56
 
<a name="l00036"></a><a class="code" href="classschroot_1_1main__base.html">00036</a>   <span class="keyword">class </span><a class="code" href="classschroot_1_1main__base.html" title="Frontend base for schroot programs.">main_base</a> : <span class="keyword">public</span> schroot_base::<a class="code" href="classschroot_1_1main.html" title="Frontend for schroot.">main</a>
57
 
<a name="l00037"></a>00037   {
58
 
<a name="l00038"></a>00038   <span class="keyword">public</span>:
59
 
<a name="l00040"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2">00040</a>     <span class="keyword">enum</span> <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2" title="Error codes.">error_code</a>
60
 
<a name="l00041"></a>00041       {
61
 
<a name="l00042"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2b32b0bc0d772d3ebb63501f2c3108280">00042</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2b32b0bc0d772d3ebb63501f2c3108280" title="Chroots not found.">CHROOTS_NOTFOUND</a>,  
62
 
<a name="l00043"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2aa84a37703dbcc415a5dcb0a99be4c36">00043</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2aa84a37703dbcc415a5dcb0a99be4c36" title="No chroots are defined in ....">CHROOT_FILE</a>,       
63
 
<a name="l00044"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2775eb2e93e2f00ad90c6ddb3a60df820">00044</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2775eb2e93e2f00ad90c6ddb3a60df820" title="No chroots are defined in ... or ....">CHROOT_FILE2</a>,      
64
 
<a name="l00045"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a29b491f4ec524e5f380cf86d350ea583d">00045</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a29b491f4ec524e5f380cf86d350ea583d" title="The specified chroots are not defined.">CHROOT_NOTDEFINED</a>, 
65
 
<a name="l00046"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a25f1ad9575195a04c97af5845aaee8dd2">00046</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a25f1ad9575195a04c97af5845aaee8dd2" title="Chroot not found.">CHROOT_NOTFOUND</a>    
66
 
<a name="l00047"></a>00047       };
67
 
<a name="l00048"></a>00048 
68
 
<a name="l00050"></a><a class="code" href="classschroot_1_1main__base.html#3b6cb9ccf3d2c02efa07ece19062602f">00050</a>     <span class="keyword">typedef</span> <a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/classsbuild_1_1custom__error.html">sbuild::custom_error&lt;error_code&gt;</a> <a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/classsbuild_1_1custom__error.html">error</a>;
69
 
<a name="l00051"></a>00051 
70
 
<a name="l00061"></a>00061     <a class="code" href="classschroot_1_1main__base.html#a2c9817ac31cb7afc0bea73e6fceb835" title="The constructor.">main_base</a> (std::string <span class="keyword">const</span>&amp; <a class="code" href="classschroot__base_1_1main.html#3d6be1d425f4d74cfced7ca5b6b6f79b" title="The name of the program.">program_name</a>,
71
 
<a name="l00062"></a>00062                std::string <span class="keyword">const</span>&amp; <a class="code" href="classschroot__base_1_1main.html#a6c3a9a050dc1f525d289bbe7d63534b" title="The usage text of the program.">program_usage</a>,
72
 
<a name="l00063"></a>00063                <a class="code" href="classschroot_1_1options__base.html#f263f91b2073c330e89a81bf77615b05" title="A shared_ptr to an options_base object.">options_base::ptr</a>&amp; <a class="code" href="classschroot_1_1options.html" title="schroot command-line options.">options</a>,
73
 
<a name="l00064"></a>00064                <span class="keywordtype">bool</span>               <a class="code" href="classschroot__base_1_1main.html#660cc63f705d9491745cb8d396f5c17c" title="Use syslog for message logging&gt;.">use_syslog</a>);
74
 
<a name="l00065"></a>00065 
75
 
<a name="l00067"></a>00067     <span class="keyword">virtual</span> <a class="code" href="classschroot_1_1main__base.html#cdaeaeaf78c73277f68cfd7f12480232" title="The destructor.">~main_base</a> ();
76
 
<a name="l00068"></a>00068 
77
 
<a name="l00072"></a>00072     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
78
 
<a name="l00073"></a>00073     <a class="code" href="classschroot_1_1main__base.html#11e9153dac2cbcd8cf340b8aabe152f8" title="List chroots.">action_list</a> () = 0;
79
 
<a name="l00074"></a>00074 
80
 
<a name="l00078"></a>00078     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
81
 
<a name="l00079"></a>00079     <a class="code" href="classschroot_1_1main__base.html#c0e473da35b2a6fa0c82372ba1f1b3a1" title="Print detailed information about chroots.">action_info</a> ();
82
 
<a name="l00080"></a>00080 
83
 
<a name="l00084"></a>00084     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
84
 
<a name="l00085"></a>00085     <a class="code" href="classschroot_1_1main__base.html#2380cac606d19211908e9dd68d6f9835" title="Print location of chroots.">action_location</a> ();
85
 
<a name="l00086"></a>00086 
86
 
<a name="l00090"></a>00090     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
87
 
<a name="l00091"></a>00091     <a class="code" href="classschroot_1_1main__base.html#ca501f4666e44771f37e393709ba21b1" title="Dump configuration file for chroots.">action_config</a> () = 0;
88
 
<a name="l00092"></a>00092 
89
 
<a name="l00093"></a>00093   <span class="keyword">protected</span>:
90
 
<a name="l00101"></a>00101     <span class="keyword">virtual</span> <span class="keywordtype">int</span>
91
 
<a name="l00102"></a>00102     <a class="code" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program.">run_impl</a> ();
92
 
<a name="l00103"></a>00103 
93
 
<a name="l00109"></a>00109     <span class="keyword">virtual</span> <a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">sbuild::string_list</a>
94
 
<a name="l00110"></a>00110     <a class="code" href="classschroot_1_1main__base.html#b93b70962e0f92de1a705b9aff666f20" title="Get a list of chroots based on the specified options (--all, --chroot).">get_chroot_options</a> ();
95
 
<a name="l00111"></a>00111 
96
 
<a name="l00116"></a>00116     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
97
 
<a name="l00117"></a>00117     <a class="code" href="classschroot_1_1main__base.html#52bd3a9bc2d975daa81a86239a96dd35" title="Check compatibility.">compat_check</a> ();
98
 
<a name="l00118"></a>00118 
99
 
<a name="l00122"></a>00122     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
100
 
<a name="l00123"></a>00123     <a class="code" href="classschroot_1_1main__base.html#0c5dc435d73143412d25a665a724dfb9" title="Load configuration.">load_config</a> ();
101
 
<a name="l00124"></a>00124 
102
 
<a name="l00130"></a>00130     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
103
 
<a name="l00131"></a>00131     <a class="code" href="classschroot_1_1main__base.html#3079d993495664a225f12ddb4edb8edf" title="Create a session.">create_session</a> (<a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/classsbuild_1_1session.html#3bedc4f49c2fe2c7f59c8d7ec5c1f5b7">sbuild::session::operation</a> sess_op) = 0;
104
 
<a name="l00132"></a>00132 
105
 
<a name="l00133"></a>00133   <span class="keyword">protected</span>:
106
 
<a name="l00135"></a><a class="code" href="classschroot_1_1main__base.html#deb7d8dd4ef84236b87f890d4fc00dfb">00135</a>     <a class="code" href="classschroot_1_1options__base.html#f263f91b2073c330e89a81bf77615b05" title="A shared_ptr to an options_base object.">options_base::ptr</a>          <a class="code" href="classschroot_1_1options.html" title="schroot command-line options.">options</a>;
107
 
<a name="l00137"></a><a class="code" href="classschroot_1_1main__base.html#640ac7896d7ae52ce0949180c63a0c5b">00137</a>     <a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/classsbuild_1_1chroot__config.html#6138ce730de1d69e0f97d4100228b697">sbuild::chroot_config::ptr</a> <a class="code" href="classschroot_1_1main__base.html#640ac7896d7ae52ce0949180c63a0c5b" title="The chroot configuration.">config</a>;
108
 
<a name="l00139"></a><a class="code" href="classschroot_1_1main__base.html#17b5b5e4934d3d840274c6777caf9e96">00139</a>     <a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">sbuild::string_list</a>        <a class="code" href="classschroot_1_1main__base.html#17b5b5e4934d3d840274c6777caf9e96" title="The chroots to use.">chroots</a>;
109
 
<a name="l00141"></a><a class="code" href="classschroot_1_1main__base.html#2b62a4d81272034276df78907f262560">00141</a>     <a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/classsbuild_1_1session.html#a00bf399848f0ba6c998c9320eaaa698">sbuild::session::ptr</a>       <a class="code" href="classschroot_1_1main__base.html#2b62a4d81272034276df78907f262560" title="The session.">session</a>;
110
 
<a name="l00142"></a>00142   };
111
 
<a name="l00143"></a>00143 
112
 
<a name="l00144"></a>00144 }
113
 
<a name="l00145"></a>00145 
114
 
<a name="l00146"></a>00146 <span class="preprocessor">#endif </span><span class="comment">/* SCHROOT_MAIN_BASE_H */</span>
115
 
<a name="l00147"></a>00147 
116
 
<a name="l00148"></a>00148 <span class="comment">/*</span>
117
 
<a name="l00149"></a>00149 <span class="comment"> * Local Variables:</span>
118
 
<a name="l00150"></a>00150 <span class="comment"> * mode:C++</span>
119
 
<a name="l00151"></a>00151 <span class="comment"> * End:</span>
120
 
<a name="l00152"></a>00152 <span class="comment"> */</span>
121
 
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 8 21:23:55 2007 for schroot by&nbsp;
 
33
<a name="l00014"></a>00014 <span class="comment"> * along with this program.  If not, see</span>
 
34
<a name="l00015"></a>00015 <span class="comment"> * &lt;http://www.gnu.org/licenses/&gt;.</span>
 
35
<a name="l00016"></a>00016 <span class="comment"> *</span>
 
36
<a name="l00017"></a>00017 <span class="comment"> *********************************************************************/</span>
 
37
<a name="l00018"></a>00018 
 
38
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef SCHROOT_MAIN_BASE_H</span>
 
39
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define SCHROOT_MAIN_BASE_H</span>
 
40
<a name="l00021"></a>00021 <span class="preprocessor"></span>
 
41
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;<a class="code" href="schroot-base-main_8h.html">schroot-base/schroot-base-main.h</a>&gt;</span>
 
42
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="code" href="schroot-options-base_8h.html">schroot/schroot-options-base.h</a>&gt;</span>
 
43
<a name="l00024"></a>00024 
 
44
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/sbuild-custom-error_8h.html">sbuild/sbuild-custom-error.h</a>&gt;</span>
 
45
<a name="l00026"></a>00026 
 
46
<a name="l00027"></a><a class="code" href="namespaceschroot.html">00027</a> <span class="keyword">namespace </span>schroot
 
47
<a name="l00028"></a>00028 {
 
48
<a name="l00029"></a>00029 
 
49
<a name="l00035"></a><a class="code" href="classschroot_1_1main__base.html">00035</a>   <span class="keyword">class </span><a class="code" href="classschroot_1_1main__base.html" title="Frontend base for schroot programs.">main_base</a> : <span class="keyword">public</span> schroot_base::<a class="code" href="classschroot_1_1main.html" title="Frontend for schroot.">main</a>
 
50
<a name="l00036"></a>00036   {
 
51
<a name="l00037"></a>00037   <span class="keyword">public</span>:
 
52
<a name="l00039"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2">00039</a>     <span class="keyword">enum</span> <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2" title="Error codes.">error_code</a>
 
53
<a name="l00040"></a>00040       {
 
54
<a name="l00041"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2b32b0bc0d772d3ebb63501f2c3108280">00041</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2b32b0bc0d772d3ebb63501f2c3108280" title="Chroots not found.">CHROOTS_NOTFOUND</a>,  
 
55
<a name="l00042"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2aa84a37703dbcc415a5dcb0a99be4c36">00042</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2aa84a37703dbcc415a5dcb0a99be4c36" title="No chroots are defined in ....">CHROOT_FILE</a>,       
 
56
<a name="l00043"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2775eb2e93e2f00ad90c6ddb3a60df820">00043</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2775eb2e93e2f00ad90c6ddb3a60df820" title="No chroots are defined in ... or ....">CHROOT_FILE2</a>,      
 
57
<a name="l00044"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a29b491f4ec524e5f380cf86d350ea583d">00044</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a29b491f4ec524e5f380cf86d350ea583d" title="The specified chroots are not defined.">CHROOT_NOTDEFINED</a>, 
 
58
<a name="l00045"></a><a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a25f1ad9575195a04c97af5845aaee8dd2">00045</a>         <a class="code" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a25f1ad9575195a04c97af5845aaee8dd2" title="Chroot not found.">CHROOT_NOTFOUND</a>    
 
59
<a name="l00046"></a>00046       };
 
60
<a name="l00047"></a>00047 
 
61
<a name="l00049"></a><a class="code" href="classschroot_1_1main__base.html#3b6cb9ccf3d2c02efa07ece19062602f">00049</a>     <span class="keyword">typedef</span> <a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/classsbuild_1_1custom__error.html">sbuild::custom_error&lt;error_code&gt;</a> <a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/classsbuild_1_1custom__error.html">error</a>;
 
62
<a name="l00050"></a>00050 
 
63
<a name="l00060"></a>00060     <a class="code" href="classschroot_1_1main__base.html#a2c9817ac31cb7afc0bea73e6fceb835" title="The constructor.">main_base</a> (std::string <span class="keyword">const</span>&amp; <a class="code" href="classschroot__base_1_1main.html#3d6be1d425f4d74cfced7ca5b6b6f79b" title="The name of the program.">program_name</a>,
 
64
<a name="l00061"></a>00061                std::string <span class="keyword">const</span>&amp; <a class="code" href="classschroot__base_1_1main.html#a6c3a9a050dc1f525d289bbe7d63534b" title="The usage text of the program.">program_usage</a>,
 
65
<a name="l00062"></a>00062                <a class="code" href="classschroot_1_1options__base.html#f263f91b2073c330e89a81bf77615b05" title="A shared_ptr to an options_base object.">options_base::ptr</a>&amp; <a class="code" href="classschroot_1_1options.html" title="schroot command-line options.">options</a>,
 
66
<a name="l00063"></a>00063                <span class="keywordtype">bool</span>               <a class="code" href="classschroot__base_1_1main.html#660cc63f705d9491745cb8d396f5c17c" title="Use syslog for message logging&amp;gt;.">use_syslog</a>);
 
67
<a name="l00064"></a>00064 
 
68
<a name="l00066"></a>00066     <span class="keyword">virtual</span> <a class="code" href="classschroot_1_1main__base.html#cdaeaeaf78c73277f68cfd7f12480232" title="The destructor.">~main_base</a> ();
 
69
<a name="l00067"></a>00067 
 
70
<a name="l00071"></a>00071     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
71
<a name="l00072"></a>00072     <a class="code" href="classschroot_1_1main__base.html#11e9153dac2cbcd8cf340b8aabe152f8" title="List chroots.">action_list</a> () = 0;
 
72
<a name="l00073"></a>00073 
 
73
<a name="l00077"></a>00077     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
74
<a name="l00078"></a>00078     <a class="code" href="classschroot_1_1main__base.html#c0e473da35b2a6fa0c82372ba1f1b3a1" title="Print detailed information about chroots.">action_info</a> ();
 
75
<a name="l00079"></a>00079 
 
76
<a name="l00083"></a>00083     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
77
<a name="l00084"></a>00084     <a class="code" href="classschroot_1_1main__base.html#2380cac606d19211908e9dd68d6f9835" title="Print location of chroots.">action_location</a> ();
 
78
<a name="l00085"></a>00085 
 
79
<a name="l00089"></a>00089     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
80
<a name="l00090"></a>00090     <a class="code" href="classschroot_1_1main__base.html#ca501f4666e44771f37e393709ba21b1" title="Dump configuration file for chroots.">action_config</a> () = 0;
 
81
<a name="l00091"></a>00091 
 
82
<a name="l00092"></a>00092   <span class="keyword">protected</span>:
 
83
<a name="l00100"></a>00100     <span class="keyword">virtual</span> <span class="keywordtype">int</span>
 
84
<a name="l00101"></a>00101     <a class="code" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program.">run_impl</a> ();
 
85
<a name="l00102"></a>00102 
 
86
<a name="l00108"></a>00108     <span class="keyword">virtual</span> <a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">sbuild::string_list</a>
 
87
<a name="l00109"></a>00109     <a class="code" href="classschroot_1_1main__base.html#b93b70962e0f92de1a705b9aff666f20" title="Get a list of chroots based on the specified options (--all, --chroot).">get_chroot_options</a> ();
 
88
<a name="l00110"></a>00110 
 
89
<a name="l00115"></a>00115     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
90
<a name="l00116"></a>00116     <a class="code" href="classschroot_1_1main__base.html#52bd3a9bc2d975daa81a86239a96dd35" title="Check compatibility.">compat_check</a> ();
 
91
<a name="l00117"></a>00117 
 
92
<a name="l00121"></a>00121     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
93
<a name="l00122"></a>00122     <a class="code" href="classschroot_1_1main__base.html#0c5dc435d73143412d25a665a724dfb9" title="Load configuration.">load_config</a> ();
 
94
<a name="l00123"></a>00123 
 
95
<a name="l00129"></a>00129     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
96
<a name="l00130"></a>00130     <a class="code" href="classschroot_1_1main__base.html#3079d993495664a225f12ddb4edb8edf" title="Create a session.">create_session</a> (<a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/classsbuild_1_1session.html#3bedc4f49c2fe2c7f59c8d7ec5c1f5b7">sbuild::session::operation</a> sess_op) = 0;
 
97
<a name="l00131"></a>00131 
 
98
<a name="l00132"></a>00132   <span class="keyword">protected</span>:
 
99
<a name="l00134"></a><a class="code" href="classschroot_1_1main__base.html#deb7d8dd4ef84236b87f890d4fc00dfb">00134</a>     <a class="code" href="classschroot_1_1options__base.html#f263f91b2073c330e89a81bf77615b05" title="A shared_ptr to an options_base object.">options_base::ptr</a>          <a class="code" href="classschroot_1_1options.html" title="schroot command-line options.">options</a>;
 
100
<a name="l00136"></a><a class="code" href="classschroot_1_1main__base.html#640ac7896d7ae52ce0949180c63a0c5b">00136</a>     <a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/classsbuild_1_1chroot__config.html#6138ce730de1d69e0f97d4100228b697">sbuild::chroot_config::ptr</a> <a class="code" href="classschroot_1_1main__base.html#640ac7896d7ae52ce0949180c63a0c5b" title="The chroot configuration.">config</a>;
 
101
<a name="l00138"></a><a class="code" href="classschroot_1_1main__base.html#17b5b5e4934d3d840274c6777caf9e96">00138</a>     <a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">sbuild::string_list</a>        <a class="code" href="classschroot_1_1main__base.html#17b5b5e4934d3d840274c6777caf9e96" title="The chroots to use.">chroots</a>;
 
102
<a name="l00140"></a><a class="code" href="classschroot_1_1main__base.html#2b62a4d81272034276df78907f262560">00140</a>     <a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/classsbuild_1_1session.html#a00bf399848f0ba6c998c9320eaaa698">sbuild::session::ptr</a>       <a class="code" href="classschroot_1_1main__base.html#2b62a4d81272034276df78907f262560" title="The session.">session</a>;
 
103
<a name="l00141"></a>00141   };
 
104
<a name="l00142"></a>00142 
 
105
<a name="l00143"></a>00143 }
 
106
<a name="l00144"></a>00144 
 
107
<a name="l00145"></a>00145 <span class="preprocessor">#endif </span><span class="comment">/* SCHROOT_MAIN_BASE_H */</span>
 
108
<a name="l00146"></a>00146 
 
109
<a name="l00147"></a>00147 <span class="comment">/*</span>
 
110
<a name="l00148"></a>00148 <span class="comment"> * Local Variables:</span>
 
111
<a name="l00149"></a>00149 <span class="comment"> * mode:C++</span>
 
112
<a name="l00150"></a>00150 <span class="comment"> * End:</span>
 
113
<a name="l00151"></a>00151 <span class="comment"> */</span>
 
114
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 21 00:38:29 2008 for schroot by&nbsp;
122
115
<a href="http://www.doxygen.org/index.html">
123
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
 
116
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
124
117
</body>
125
118
</html>