1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>schroot: schroot::main_base Class Reference</title>
4
<link href="tabs.css" rel="stylesheet" type="text/css">
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.9 -->
8
<div class="navigation" id="top">
11
<li><a href="index.html"><span>Main Page</span></a></li>
12
<li><a href="pages.html"><span>Related Pages</span></a></li>
13
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
14
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
15
<li><a href="files.html"><span>Files</span></a></li>
16
<li><a href="dirs.html"><span>Directories</span></a></li>
21
<li><a href="annotated.html"><span>Class List</span></a></li>
22
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
23
<li><a href="functions.html"><span>Class Members</span></a></li>
26
<div class="navpath"><a class="el" href="namespaceschroot.html">schroot</a>::<a class="el" href="classschroot_1_1main__base.html">main_base</a>
29
<div class="contents">
30
<h1>schroot::main_base Class Reference</h1><!-- doxytag: class="schroot::main_base" --><!-- doxytag: inherits="schroot_base::main" -->Frontend base for <a class="el" href="namespaceschroot.html">schroot</a> programs.
31
<a href="#_details">More...</a>
33
<code>#include <<a class="el" href="schroot-main-base_8h_source.html">schroot-main-base.h</a>></code>
35
<div class="dynheader">
36
Inheritance diagram for schroot::main_base:</div>
37
<div class="dynsection">
38
<p><center><img src="classschroot_1_1main__base__inherit__graph.png" border="0" usemap="#schroot_1_1main__base__inherit__map" alt="Inheritance graph"></center>
39
<map name="schroot_1_1main__base__inherit__map">
40
<area shape="rect" href="classdchroot_1_1main__base.html" title="Frontend base class for dchroot." alt="" coords="55,160,191,189"><area shape="rect" href="classschroot_1_1main.html" title="Frontend for schroot." alt="" coords="215,160,313,189"><area shape="rect" href="classschroot__base_1_1main.html" title="Frontend base for schroot programs." alt="" coords="125,5,261,35"><area shape="rect" href="classdchroot_1_1main.html" title="Frontend for dchroot." alt="" coords="5,237,104,267"><area shape="rect" href="classdchroot__dsa_1_1main.html" title="Frontend for dchroot-dsa." alt="" coords="128,237,256,267"></map>
41
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
42
<div class="dynheader">
43
Collaboration diagram for schroot::main_base:</div>
44
<div class="dynsection">
45
<p><center><img src="classschroot_1_1main__base__coll__graph.png" border="0" usemap="#schroot_1_1main__base__coll__map" alt="Collaboration graph"></center>
46
<map name="schroot_1_1main__base__coll__map">
47
<area shape="rect" href="classschroot__base_1_1main.html" title="Frontend base for schroot programs." alt="" coords="16,200,152,229"><area shape="rect" title="STL class." alt="" coords="44,85,124,115"><area shape="rect" title="STL class." alt="" coords="5,5,163,35"></map>
48
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
51
<a href="classschroot_1_1main__base-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
53
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2">error_code</a> { <br>
55
<a class="el" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2b32b0bc0d772d3ebb63501f2c3108280">CHROOTS_NOTFOUND</a>,
56
<a class="el" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2aa84a37703dbcc415a5dcb0a99be4c36">CHROOT_FILE</a>,
57
<a class="el" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2775eb2e93e2f00ad90c6ddb3a60df820">CHROOT_FILE2</a>,
58
<a class="el" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a29b491f4ec524e5f380cf86d350ea583d">CHROOT_NOTDEFINED</a>,
60
<a class="el" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a25f1ad9575195a04c97af5845aaee8dd2">CHROOT_NOTFOUND</a>
64
<tr><td class="mdescLeft"> </td><td class="mdescRight">Error codes. <a href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2">More...</a><br></td></tr>
65
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef sbuild::custom_error<br class="typebreak">
66
< <a class="el" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2">error_code</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#3b6cb9ccf3d2c02efa07ece19062602f">error</a></td></tr>
68
<tr><td class="mdescLeft"> </td><td class="mdescRight">Exception type. <a href="#3b6cb9ccf3d2c02efa07ece19062602f"></a><br></td></tr>
69
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
70
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#a2c9817ac31cb7afc0bea73e6fceb835">main_base</a> (std::string const &<a class="el" href="classschroot__base_1_1main.html#3d6be1d425f4d74cfced7ca5b6b6f79b">program_name</a>, std::string const &<a class="el" href="classschroot__base_1_1main.html#a6c3a9a050dc1f525d289bbe7d63534b">program_usage</a>, <a class="el" href="classschroot_1_1options__base.html#f263f91b2073c330e89a81bf77615b05">options_base::ptr</a> &<a class="el" href="classschroot_1_1options.html">options</a>, bool <a class="el" href="classschroot__base_1_1main.html#660cc63f705d9491745cb8d396f5c17c">use_syslog</a>)</td></tr>
72
<tr><td class="mdescLeft"> </td><td class="mdescRight">The constructor. <a href="#a2c9817ac31cb7afc0bea73e6fceb835"></a><br></td></tr>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#cdaeaeaf78c73277f68cfd7f12480232">~main_base</a> ()</td></tr>
75
<tr><td class="mdescLeft"> </td><td class="mdescRight">The destructor. <a href="#cdaeaeaf78c73277f68cfd7f12480232"></a><br></td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#11e9153dac2cbcd8cf340b8aabe152f8">action_list</a> ()=0</td></tr>
78
<tr><td class="mdescLeft"> </td><td class="mdescRight">List chroots. <a href="#11e9153dac2cbcd8cf340b8aabe152f8"></a><br></td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#c0e473da35b2a6fa0c82372ba1f1b3a1">action_info</a> ()</td></tr>
81
<tr><td class="mdescLeft"> </td><td class="mdescRight">Print detailed information about chroots. <a href="#c0e473da35b2a6fa0c82372ba1f1b3a1"></a><br></td></tr>
82
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#2380cac606d19211908e9dd68d6f9835">action_location</a> ()</td></tr>
84
<tr><td class="mdescLeft"> </td><td class="mdescRight">Print location of chroots. <a href="#2380cac606d19211908e9dd68d6f9835"></a><br></td></tr>
85
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#ca501f4666e44771f37e393709ba21b1">action_config</a> ()=0</td></tr>
87
<tr><td class="mdescLeft"> </td><td class="mdescRight">Dump configuration file for chroots. <a href="#ca501f4666e44771f37e393709ba21b1"></a><br></td></tr>
88
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
89
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a">run_impl</a> ()</td></tr>
91
<tr><td class="mdescLeft"> </td><td class="mdescRight">Run the program. <a href="#667ca8cbdee70a34a4641497ea14421a"></a><br></td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual sbuild::string_list </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#b93b70962e0f92de1a705b9aff666f20">get_chroot_options</a> ()</td></tr>
94
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a list of chroots based on the specified <a class="el" href="classschroot_1_1options.html" title="schroot command-line options.">options</a> (--all, --chroot). <a href="#b93b70962e0f92de1a705b9aff666f20"></a><br></td></tr>
95
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#52bd3a9bc2d975daa81a86239a96dd35">compat_check</a> ()</td></tr>
97
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check compatibility. <a href="#52bd3a9bc2d975daa81a86239a96dd35"></a><br></td></tr>
98
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#0c5dc435d73143412d25a665a724dfb9">load_config</a> ()</td></tr>
100
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load configuration. <a href="#0c5dc435d73143412d25a665a724dfb9"></a><br></td></tr>
101
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#3079d993495664a225f12ddb4edb8edf">create_session</a> (sbuild::session::operation sess_op)=0</td></tr>
103
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a session. <a href="#3079d993495664a225f12ddb4edb8edf"></a><br></td></tr>
104
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
105
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classschroot_1_1options__base.html#f263f91b2073c330e89a81bf77615b05">options_base::ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#deb7d8dd4ef84236b87f890d4fc00dfb">options</a></td></tr>
107
<tr><td class="mdescLeft"> </td><td class="mdescRight">The program <a class="el" href="classschroot_1_1options.html" title="schroot command-line options.">options</a>. <a href="#deb7d8dd4ef84236b87f890d4fc00dfb"></a><br></td></tr>
108
<tr><td class="memItemLeft" nowrap align="right" valign="top">sbuild::chroot_config::ptr </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#640ac7896d7ae52ce0949180c63a0c5b">config</a></td></tr>
110
<tr><td class="mdescLeft"> </td><td class="mdescRight">The chroot configuration. <a href="#640ac7896d7ae52ce0949180c63a0c5b"></a><br></td></tr>
111
<tr><td class="memItemLeft" nowrap align="right" valign="top">sbuild::string_list </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#17b5b5e4934d3d840274c6777caf9e96">chroots</a></td></tr>
113
<tr><td class="mdescLeft"> </td><td class="mdescRight">The chroots to use. <a href="#17b5b5e4934d3d840274c6777caf9e96"></a><br></td></tr>
114
<tr><td class="memItemLeft" nowrap align="right" valign="top">sbuild::session::ptr </td><td class="memItemRight" valign="bottom"><a class="el" href="classschroot_1_1main__base.html#2b62a4d81272034276df78907f262560">session</a></td></tr>
116
<tr><td class="mdescLeft"> </td><td class="mdescRight">The session. <a href="#2b62a4d81272034276df78907f262560"></a><br></td></tr>
118
<hr><a name="_details"></a><h2>Detailed Description</h2>
119
Frontend base for <a class="el" href="namespaceschroot.html">schroot</a> programs.
121
This class is used to "run" <a class="el" href="namespaceschroot.html">schroot</a> programs. This class contains functionality common to all <a class="el" href="namespaceschroot.html">schroot</a> programs (<a class="el" href="namespaceschroot.html">schroot</a>, <a class="el" href="namespacedchroot.html">dchroot</a>, dchroot-dsa). <hr><h2>Member Typedef Documentation</h2>
122
<a class="anchor" name="3b6cb9ccf3d2c02efa07ece19062602f"></a><!-- doxytag: member="schroot::main_base::error" ref="3b6cb9ccf3d2c02efa07ece19062602f" args="" -->
123
<div class="memitem">
124
<div class="memproto">
125
<table class="memname">
127
<td class="memname">typedef sbuild::custom_error<<a class="el" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2">error_code</a>> <a class="el" href="classschroot_1_1main__base.html#3b6cb9ccf3d2c02efa07ece19062602f">schroot::main_base::error</a> </td>
139
<hr><h2>Member Enumeration Documentation</h2>
140
<a class="anchor" name="52c944d66bd5c5acbd1f08f925b9a3a2"></a><!-- doxytag: member="schroot::main_base::error_code" ref="52c944d66bd5c5acbd1f08f925b9a3a2" args="" -->
141
<div class="memitem">
142
<div class="memproto">
143
<table class="memname">
145
<td class="memname">enum <a class="el" href="classschroot_1_1main__base.html#52c944d66bd5c5acbd1f08f925b9a3a2">schroot::main_base::error_code</a> </td>
154
<dl compact><dt><b>Enumerator: </b></dt><dd>
155
<table border="0" cellspacing="2" cellpadding="0">
156
<tr><td valign="top"><em><a class="anchor" name="52c944d66bd5c5acbd1f08f925b9a3a2b32b0bc0d772d3ebb63501f2c3108280"></a><!-- doxytag: member="CHROOTS_NOTFOUND" ref="52c944d66bd5c5acbd1f08f925b9a3a2b32b0bc0d772d3ebb63501f2c3108280" args="" -->CHROOTS_NOTFOUND</em> </td><td>
157
Chroots not found. </td></tr>
158
<tr><td valign="top"><em><a class="anchor" name="52c944d66bd5c5acbd1f08f925b9a3a2aa84a37703dbcc415a5dcb0a99be4c36"></a><!-- doxytag: member="CHROOT_FILE" ref="52c944d66bd5c5acbd1f08f925b9a3a2aa84a37703dbcc415a5dcb0a99be4c36" args="" -->CHROOT_FILE</em> </td><td>
159
No chroots are defined in .... </td></tr>
160
<tr><td valign="top"><em><a class="anchor" name="52c944d66bd5c5acbd1f08f925b9a3a2775eb2e93e2f00ad90c6ddb3a60df820"></a><!-- doxytag: member="CHROOT_FILE2" ref="52c944d66bd5c5acbd1f08f925b9a3a2775eb2e93e2f00ad90c6ddb3a60df820" args="" -->CHROOT_FILE2</em> </td><td>
161
No chroots are defined in ... or .... </td></tr>
162
<tr><td valign="top"><em><a class="anchor" name="52c944d66bd5c5acbd1f08f925b9a3a29b491f4ec524e5f380cf86d350ea583d"></a><!-- doxytag: member="CHROOT_NOTDEFINED" ref="52c944d66bd5c5acbd1f08f925b9a3a29b491f4ec524e5f380cf86d350ea583d" args="" -->CHROOT_NOTDEFINED</em> </td><td>
163
The specified chroots are not defined. </td></tr>
164
<tr><td valign="top"><em><a class="anchor" name="52c944d66bd5c5acbd1f08f925b9a3a25f1ad9575195a04c97af5845aaee8dd2"></a><!-- doxytag: member="CHROOT_NOTFOUND" ref="52c944d66bd5c5acbd1f08f925b9a3a25f1ad9575195a04c97af5845aaee8dd2" args="" -->CHROOT_NOTFOUND</em> </td><td>
165
Chroot not found. </td></tr>
171
<hr><h2>Constructor & Destructor Documentation</h2>
172
<a class="anchor" name="a2c9817ac31cb7afc0bea73e6fceb835"></a><!-- doxytag: member="schroot::main_base::main_base" ref="a2c9817ac31cb7afc0bea73e6fceb835" args="(std::string const &program_name, std::string const &program_usage, options_base::ptr &options, bool use_syslog)" -->
173
<div class="memitem">
174
<div class="memproto">
175
<table class="memname">
177
<td class="memname">main_base::main_base </td>
179
<td class="paramtype">std::string const & </td>
180
<td class="paramname"> <em>program_name</em>, </td>
183
<td class="paramkey"></td>
185
<td class="paramtype">std::string const & </td>
186
<td class="paramname"> <em>program_usage</em>, </td>
189
<td class="paramkey"></td>
191
<td class="paramtype"><a class="el" href="classschroot_1_1options__base.html#f263f91b2073c330e89a81bf77615b05">options_base::ptr</a> & </td>
192
<td class="paramname"> <em>options</em>, </td>
195
<td class="paramkey"></td>
197
<td class="paramtype">bool </td>
198
<td class="paramname"> <em>use_syslog</em></td><td> </td>
203
<td></td><td></td><td></td>
212
<dl compact><dt><b>Parameters:</b></dt><dd>
213
<table border="0" cellspacing="2" cellpadding="0">
214
<tr><td valign="top"></td><td valign="top"><em>program_name</em> </td><td>the program name. </td></tr>
215
<tr><td valign="top"></td><td valign="top"><em>program_usage</em> </td><td>the program usage message. </td></tr>
216
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classschroot_1_1options.html" title="schroot command-line options.">options</a></em> </td><td>the command-line <a class="el" href="classschroot_1_1options.html" title="schroot command-line options.">options</a> to use. </td></tr>
217
<tr><td valign="top"></td><td valign="top"><em>use_syslog</em> </td><td>whether to open a connection to the system logger. </td></tr>
223
<a class="anchor" name="cdaeaeaf78c73277f68cfd7f12480232"></a><!-- doxytag: member="schroot::main_base::~main_base" ref="cdaeaeaf78c73277f68cfd7f12480232" args="()" -->
224
<div class="memitem">
225
<div class="memproto">
226
<table class="memname">
228
<td class="memname">main_base::~main_base </td>
230
<td class="paramname"> </td>
231
<td> ) </td>
232
<td><code> [virtual]</code></td>
242
<p>Reimplemented in <a class="el" href="classdchroot_1_1main__base.html#cdaeaeaf78c73277f68cfd7f12480232">dchroot::main_base</a>.</p>
246
<hr><h2>Member Function Documentation</h2>
247
<a class="anchor" name="ca501f4666e44771f37e393709ba21b1"></a><!-- doxytag: member="schroot::main_base::action_config" ref="ca501f4666e44771f37e393709ba21b1" args="()=0" -->
248
<div class="memitem">
249
<div class="memproto">
250
<table class="memname">
252
<td class="memname">virtual void schroot::main_base::action_config </td>
254
<td class="paramname"> </td>
255
<td> ) </td>
256
<td><code> [pure virtual]</code></td>
263
Dump configuration file for chroots.
266
<p>Implemented in <a class="el" href="classschroot_1_1main.html#a74e403ff9e00d3a9420a833b7a6c16c">schroot::main</a>, and <a class="el" href="classdchroot_1_1main__base.html#f33c774b0b0542ec012c4a016f1aa64c">dchroot::main_base</a>.</p>
268
<p>Referenced by <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
271
<div class="dynheader">
272
Here is the caller graph for this function:</div>
273
<div class="dynsection">
274
<p><center><img src="classschroot_1_1main__base_ca501f4666e44771f37e393709ba21b1_icgraph.png" border="0" usemap="#classschroot_1_1main__base_ca501f4666e44771f37e393709ba21b1_icgraph_map" alt=""></center>
275
<map name="classschroot_1_1main__base_ca501f4666e44771f37e393709ba21b1_icgraph_map">
276
<area shape="rect" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program." alt="" coords="275,5,467,35"></map>
281
<a class="anchor" name="c0e473da35b2a6fa0c82372ba1f1b3a1"></a><!-- doxytag: member="schroot::main_base::action_info" ref="c0e473da35b2a6fa0c82372ba1f1b3a1" args="()" -->
282
<div class="memitem">
283
<div class="memproto">
284
<table class="memname">
286
<td class="memname">void main_base::action_info </td>
288
<td class="paramname"> </td>
289
<td> ) </td>
290
<td><code> [virtual]</code></td>
297
Print detailed information about chroots.
300
<p>References <a class="el" href="schroot-main-base_8h_source.html#l00138">chroots</a>, and <a class="el" href="schroot-main-base_8h_source.html#l00136">config</a>.</p>
302
<p>Referenced by <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
305
<div class="dynheader">
306
Here is the caller graph for this function:</div>
307
<div class="dynsection">
308
<p><center><img src="classschroot_1_1main__base_c0e473da35b2a6fa0c82372ba1f1b3a1_icgraph.png" border="0" usemap="#classschroot_1_1main__base_c0e473da35b2a6fa0c82372ba1f1b3a1_icgraph_map" alt=""></center>
309
<map name="classschroot_1_1main__base_c0e473da35b2a6fa0c82372ba1f1b3a1_icgraph_map">
310
<area shape="rect" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program." alt="" coords="261,5,453,35"></map>
315
<a class="anchor" name="11e9153dac2cbcd8cf340b8aabe152f8"></a><!-- doxytag: member="schroot::main_base::action_list" ref="11e9153dac2cbcd8cf340b8aabe152f8" args="()=0" -->
316
<div class="memitem">
317
<div class="memproto">
318
<table class="memname">
320
<td class="memname">virtual void schroot::main_base::action_list </td>
322
<td class="paramname"> </td>
323
<td> ) </td>
324
<td><code> [pure virtual]</code></td>
334
<p>Implemented in <a class="el" href="classschroot_1_1main.html#93f13260d2b71ecdf621185e9ab47aa7">schroot::main</a>, and <a class="el" href="classdchroot_1_1main__base.html#a7243d8ef3295b06fd5a164fd1c1fc4b">dchroot::main_base</a>.</p>
336
<p>Referenced by <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
339
<div class="dynheader">
340
Here is the caller graph for this function:</div>
341
<div class="dynsection">
342
<p><center><img src="classschroot_1_1main__base_11e9153dac2cbcd8cf340b8aabe152f8_icgraph.png" border="0" usemap="#classschroot_1_1main__base_11e9153dac2cbcd8cf340b8aabe152f8_icgraph_map" alt=""></center>
343
<map name="classschroot_1_1main__base_11e9153dac2cbcd8cf340b8aabe152f8_icgraph_map">
344
<area shape="rect" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program." alt="" coords="256,5,448,35"></map>
349
<a class="anchor" name="2380cac606d19211908e9dd68d6f9835"></a><!-- doxytag: member="schroot::main_base::action_location" ref="2380cac606d19211908e9dd68d6f9835" args="()" -->
350
<div class="memitem">
351
<div class="memproto">
352
<table class="memname">
354
<td class="memname">void main_base::action_location </td>
356
<td class="paramname"> </td>
357
<td> ) </td>
358
<td><code> [virtual]</code></td>
365
Print location of chroots.
368
<p>Reimplemented in <a class="el" href="classdchroot_1_1main.html#945189414729b8d4156b068dd0ca3406">dchroot::main</a>.</p>
370
<p>References <a class="el" href="schroot-main-base_8h_source.html#l00138">chroots</a>, and <a class="el" href="schroot-main-base_8h_source.html#l00136">config</a>.</p>
372
<p>Referenced by <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
375
<div class="dynheader">
376
Here is the caller graph for this function:</div>
377
<div class="dynsection">
378
<p><center><img src="classschroot_1_1main__base_2380cac606d19211908e9dd68d6f9835_icgraph.png" border="0" usemap="#classschroot_1_1main__base_2380cac606d19211908e9dd68d6f9835_icgraph_map" alt=""></center>
379
<map name="classschroot_1_1main__base_2380cac606d19211908e9dd68d6f9835_icgraph_map">
380
<area shape="rect" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program." alt="" coords="285,5,477,35"></map>
385
<a class="anchor" name="52bd3a9bc2d975daa81a86239a96dd35"></a><!-- doxytag: member="schroot::main_base::compat_check" ref="52bd3a9bc2d975daa81a86239a96dd35" args="()" -->
386
<div class="memitem">
387
<div class="memproto">
388
<table class="memname">
390
<td class="memname">void main_base::compat_check </td>
392
<td class="paramname"> </td>
393
<td> ) </td>
394
<td><code> [protected, virtual]</code></td>
403
Does nothing, but derived classes may use it as they see fit.
404
<p>Reimplemented in <a class="el" href="classdchroot_1_1main__base.html#52bd3a9bc2d975daa81a86239a96dd35">dchroot::main_base</a>.</p>
406
<p>Referenced by <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
409
<div class="dynheader">
410
Here is the caller graph for this function:</div>
411
<div class="dynsection">
412
<p><center><img src="classschroot_1_1main__base_52bd3a9bc2d975daa81a86239a96dd35_icgraph.png" border="0" usemap="#classschroot_1_1main__base_52bd3a9bc2d975daa81a86239a96dd35_icgraph_map" alt=""></center>
413
<map name="classschroot_1_1main__base_52bd3a9bc2d975daa81a86239a96dd35_icgraph_map">
414
<area shape="rect" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program." alt="" coords="283,5,475,35"></map>
419
<a class="anchor" name="3079d993495664a225f12ddb4edb8edf"></a><!-- doxytag: member="schroot::main_base::create_session" ref="3079d993495664a225f12ddb4edb8edf" args="(sbuild::session::operation sess_op)=0" -->
420
<div class="memitem">
421
<div class="memproto">
422
<table class="memname">
424
<td class="memname">virtual void schroot::main_base::create_session </td>
426
<td class="paramtype">sbuild::session::operation </td>
427
<td class="paramname"> <em>sess_op</em> </td>
428
<td> ) </td>
429
<td><code> [protected, pure virtual]</code></td>
438
This sets the session member.<p>
439
<dl compact><dt><b>Parameters:</b></dt><dd>
440
<table border="0" cellspacing="2" cellpadding="0">
441
<tr><td valign="top"></td><td valign="top"><em>sess_op</em> </td><td>the session operation to perform. </td></tr>
445
<p>Implemented in <a class="el" href="classschroot_1_1main.html#61789444a1ff1488841740843e8443d0">schroot::main</a>, <a class="el" href="classdchroot_1_1main.html#61789444a1ff1488841740843e8443d0">dchroot::main</a>, and <a class="el" href="classdchroot__dsa_1_1main.html#61789444a1ff1488841740843e8443d0">dchroot_dsa::main</a>.</p>
447
<p>Referenced by <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
450
<div class="dynheader">
451
Here is the caller graph for this function:</div>
452
<div class="dynsection">
453
<p><center><img src="classschroot_1_1main__base_3079d993495664a225f12ddb4edb8edf_icgraph.png" border="0" usemap="#classschroot_1_1main__base_3079d993495664a225f12ddb4edb8edf_icgraph_map" alt=""></center>
454
<map name="classschroot_1_1main__base_3079d993495664a225f12ddb4edb8edf_icgraph_map">
455
<area shape="rect" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program." alt="" coords="285,5,477,35"></map>
460
<a class="anchor" name="b93b70962e0f92de1a705b9aff666f20"></a><!-- doxytag: member="schroot::main_base::get_chroot_options" ref="b93b70962e0f92de1a705b9aff666f20" args="()" -->
461
<div class="memitem">
462
<div class="memproto">
463
<table class="memname">
465
<td class="memname">sbuild::string_list main_base::get_chroot_options </td>
467
<td class="paramname"> </td>
468
<td> ) </td>
469
<td><code> [protected, virtual]</code></td>
476
Get a list of chroots based on the specified <a class="el" href="classschroot_1_1options.html" title="schroot command-line options.">options</a> (--all, --chroot).
478
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a list of chroots. </dd></dl>
480
<p>References <a class="el" href="schroot-main-base_8h_source.html#l00045">CHROOT_NOTFOUND</a>, <a class="el" href="schroot-main-base_8h_source.html#l00041">CHROOTS_NOTFOUND</a>, and <a class="el" href="schroot-main-base_8h_source.html#l00136">config</a>.</p>
482
<p>Referenced by <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
485
<div class="dynheader">
486
Here is the caller graph for this function:</div>
487
<div class="dynsection">
488
<p><center><img src="classschroot_1_1main__base_b93b70962e0f92de1a705b9aff666f20_icgraph.png" border="0" usemap="#classschroot_1_1main__base_b93b70962e0f92de1a705b9aff666f20_icgraph_map" alt=""></center>
489
<map name="classschroot_1_1main__base_b93b70962e0f92de1a705b9aff666f20_icgraph_map">
490
<area shape="rect" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program." alt="" coords="307,5,499,35"></map>
495
<a class="anchor" name="0c5dc435d73143412d25a665a724dfb9"></a><!-- doxytag: member="schroot::main_base::load_config" ref="0c5dc435d73143412d25a665a724dfb9" args="()" -->
496
<div class="memitem">
497
<div class="memproto">
498
<table class="memname">
500
<td class="memname">void main_base::load_config </td>
502
<td class="paramname"> </td>
503
<td> ) </td>
504
<td><code> [protected, virtual]</code></td>
514
<p>Reimplemented in <a class="el" href="classdchroot_1_1main.html#0d03c7db938e0c914e7782f1c91d3471">dchroot::main</a>, and <a class="el" href="classdchroot__dsa_1_1main.html#0d03c7db938e0c914e7782f1c91d3471">dchroot_dsa::main</a>.</p>
516
<p>References <a class="el" href="schroot-main-base_8h_source.html#l00136">config</a>.</p>
518
<p>Referenced by <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
521
<div class="dynheader">
522
Here is the caller graph for this function:</div>
523
<div class="dynsection">
524
<p><center><img src="classschroot_1_1main__base_0c5dc435d73143412d25a665a724dfb9_icgraph.png" border="0" usemap="#classschroot_1_1main__base_0c5dc435d73143412d25a665a724dfb9_icgraph_map" alt=""></center>
525
<map name="classschroot_1_1main__base_0c5dc435d73143412d25a665a724dfb9_icgraph_map">
526
<area shape="rect" href="classschroot_1_1main__base.html#667ca8cbdee70a34a4641497ea14421a" title="Run the program." alt="" coords="264,5,456,35"></map>
531
<a class="anchor" name="667ca8cbdee70a34a4641497ea14421a"></a><!-- doxytag: member="schroot::main_base::run_impl" ref="667ca8cbdee70a34a4641497ea14421a" args="()" -->
532
<div class="memitem">
533
<div class="memproto">
534
<table class="memname">
536
<td class="memname">int main_base::run_impl </td>
538
<td class="paramname"> </td>
539
<td> ) </td>
540
<td><code> [protected, virtual]</code></td>
549
This is the program-specific run method which must be implemented in a derived class.<p>
550
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, 1 on failure or the exit status of the chroot command. </dd></dl>
552
<p>Implements <a class="el" href="classschroot__base_1_1main.html#e252e6014964a24c7290b9c0378c1310">schroot_base::main</a>.</p>
554
<p>References <a class="el" href="classschroot_1_1main__base.html#ca501f4666e44771f37e393709ba21b1">action_config()</a>, <a class="el" href="schroot-options-base_8h_source.html#l00069">schroot::options_base::ACTION_CONFIG</a>, <a class="el" href="schroot-base-main_8cc_source.html#l00074">schroot_base::main::action_help()</a>, <a class="el" href="schroot-base-options_8h_source.html#l00073">schroot_base::options::ACTION_HELP</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00090">action_info()</a>, <a class="el" href="schroot-options-base_8h_source.html#l00065">schroot::options_base::ACTION_INFO</a>, <a class="el" href="classschroot_1_1main__base.html#11e9153dac2cbcd8cf340b8aabe152f8">action_list()</a>, <a class="el" href="schroot-options-base_8h_source.html#l00063">schroot::options_base::ACTION_LIST</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00096">action_location()</a>, <a class="el" href="schroot-options-base_8h_source.html#l00067">schroot::options_base::ACTION_LOCATION</a>, <a class="el" href="schroot-options-base_8h_source.html#l00055">schroot::options_base::ACTION_SESSION_BEGIN</a>, <a class="el" href="schroot-options-base_8h_source.html#l00061">schroot::options_base::ACTION_SESSION_END</a>, <a class="el" href="schroot-options-base_8h_source.html#l00057">schroot::options_base::ACTION_SESSION_RECOVER</a>, <a class="el" href="schroot-options-base_8h_source.html#l00059">schroot::options_base::ACTION_SESSION_RUN</a>, <a class="el" href="schroot-base-main_8cc_source.html#l00056">schroot_base::main::action_version()</a>, <a class="el" href="schroot-base-options_8h_source.html#l00075">schroot_base::options::ACTION_VERSION</a>, <a class="el" href="schroot-main-base_8h_source.html#l00042">CHROOT_FILE</a>, <a class="el" href="schroot-main-base_8h_source.html#l00043">CHROOT_FILE2</a>, <a class="el" href="schroot-main-base_8h_source.html#l00044">CHROOT_NOTDEFINED</a>, <a class="el" href="schroot-main-base_8h_source.html#l00138">chroots</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00102">compat_check()</a>, <a class="el" href="schroot-main-base_8h_source.html#l00136">config</a>, <a class="el" href="classschroot_1_1main__base.html#3079d993495664a225f12ddb4edb8edf">create_session()</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00107">get_chroot_options()</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00158">load_config()</a>, and <a class="el" href="schroot-main-base_8h_source.html#l00140">session</a>.</p>
558
<hr><h2>Member Data Documentation</h2>
559
<a class="anchor" name="17b5b5e4934d3d840274c6777caf9e96"></a><!-- doxytag: member="schroot::main_base::chroots" ref="17b5b5e4934d3d840274c6777caf9e96" args="" -->
560
<div class="memitem">
561
<div class="memproto">
562
<table class="memname">
564
<td class="memname">sbuild::string_list <a class="el" href="classschroot_1_1main__base.html#17b5b5e4934d3d840274c6777caf9e96">schroot::main_base::chroots</a><code> [protected]</code> </td>
574
<p>Referenced by <a class="el" href="schroot-main_8cc_source.html#l00053">schroot::main::action_config()</a>, <a class="el" href="dchroot-main-base_8cc_source.html#l00057">dchroot::main_base::action_config()</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00090">action_info()</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00096">action_location()</a>, <a class="el" href="schroot-main_8cc_source.html#l00073">schroot::main::create_session()</a>, <a class="el" href="dchroot-main_8cc_source.html#l00081">dchroot::main::create_session()</a>, <a class="el" href="dchroot-dsa-main_8cc_source.html#l00073">dchroot_dsa::main::create_session()</a>, and <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
578
<a class="anchor" name="640ac7896d7ae52ce0949180c63a0c5b"></a><!-- doxytag: member="schroot::main_base::config" ref="640ac7896d7ae52ce0949180c63a0c5b" args="" -->
579
<div class="memitem">
580
<div class="memproto">
581
<table class="memname">
583
<td class="memname">sbuild::chroot_config::ptr <a class="el" href="classschroot_1_1main__base.html#640ac7896d7ae52ce0949180c63a0c5b">schroot::main_base::config</a><code> [protected]</code> </td>
590
The chroot configuration.
593
<p>Referenced by <a class="el" href="schroot-main_8cc_source.html#l00053">schroot::main::action_config()</a>, <a class="el" href="dchroot-main-base_8cc_source.html#l00057">dchroot::main_base::action_config()</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00090">action_info()</a>, <a class="el" href="schroot-main_8cc_source.html#l00067">schroot::main::action_list()</a>, <a class="el" href="dchroot-main-base_8cc_source.html#l00092">dchroot::main_base::action_list()</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00096">action_location()</a>, <a class="el" href="dchroot-main_8cc_source.html#l00056">dchroot::main::action_location()</a>, <a class="el" href="schroot-main_8cc_source.html#l00073">schroot::main::create_session()</a>, <a class="el" href="dchroot-main_8cc_source.html#l00081">dchroot::main::create_session()</a>, <a class="el" href="dchroot-dsa-main_8cc_source.html#l00073">dchroot_dsa::main::create_session()</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00107">get_chroot_options()</a>, <a class="el" href="schroot-main-base_8cc_source.html#l00158">load_config()</a>, <a class="el" href="dchroot-main_8cc_source.html#l00064">dchroot::main::load_config()</a>, <a class="el" href="dchroot-dsa-main_8cc_source.html#l00055">dchroot_dsa::main::load_config()</a>, and <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
597
<a class="anchor" name="deb7d8dd4ef84236b87f890d4fc00dfb"></a><!-- doxytag: member="schroot::main_base::options" ref="deb7d8dd4ef84236b87f890d4fc00dfb" args="" -->
598
<div class="memitem">
599
<div class="memproto">
600
<table class="memname">
602
<td class="memname"><a class="el" href="classschroot_1_1options__base.html#f263f91b2073c330e89a81bf77615b05">options_base::ptr</a> <a class="el" href="classschroot_1_1main__base.html#deb7d8dd4ef84236b87f890d4fc00dfb">schroot::main_base::options</a><code> [protected]</code> </td>
609
The program <a class="el" href="classschroot_1_1options.html" title="schroot command-line options.">options</a>.
614
<a class="anchor" name="2b62a4d81272034276df78907f262560"></a><!-- doxytag: member="schroot::main_base::session" ref="2b62a4d81272034276df78907f262560" args="" -->
615
<div class="memitem">
616
<div class="memproto">
617
<table class="memname">
619
<td class="memname">sbuild::session::ptr <a class="el" href="classschroot_1_1main__base.html#2b62a4d81272034276df78907f262560">schroot::main_base::session</a><code> [protected]</code> </td>
629
<p>Referenced by <a class="el" href="schroot-main_8cc_source.html#l00073">schroot::main::create_session()</a>, and <a class="el" href="schroot-main-base_8cc_source.html#l00175">run_impl()</a>.</p>
633
<hr>The documentation for this class was generated from the following files:<ul>
634
<li>bin/schroot/<a class="el" href="schroot-main-base_8h_source.html">schroot-main-base.h</a><li>bin/schroot/<a class="el" href="schroot-main-base_8cc.html">schroot-main-base.cc</a></ul>
636
<hr size="1"><address style="text-align: right;"><small>Generated on Sun May 17 18:39:01 2009 for schroot by
637
<a href="http://www.doxygen.org/index.html">
638
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>