30
30
<code>#include <<a class="el" href="sbuild-chroot-config_8h-source.html">sbuild-chroot-config.h</a>></code>
32
Collaboration diagram for sbuild::chroot_config:<p><center><img src="classsbuild_1_1chroot__config__coll__graph.png" border="0" usemap="#sbuild_1_1chroot__config__coll__map" alt="Collaboration graph"></center>
32
<div class="dynheader">
33
Collaboration diagram for sbuild::chroot_config:</div>
34
<div class="dynsection">
35
<p><center><img src="classsbuild_1_1chroot__config__coll__graph.png" border="0" usemap="#sbuild_1_1chroot__config__coll__map" alt="Collaboration graph"></center>
33
36
<map name="sbuild_1_1chroot__config__coll__map">
34
<area shape="rect" title="STL class." alt="" coords="48,5,160,32"><area shape="rect" title="chroots" alt="" coords="91,28,99,36"><area shape="rect" title="chroots" alt="" coords="65,183,73,191"><area shape="rect" title="\< std::string, std::string \>" alt="" coords="116,28,124,36"><area shape="rect" title="\< std::string, std::string \>" alt="" coords="196,92,204,100"><area shape="rect" title="aliases" alt="" coords="191,119,199,127"><area shape="rect" title="aliases" alt="" coords="91,183,99,191"></map>
35
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classsbuild_1_1chroot__config-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
37
<area shape="rect" title="STL class." alt="" coords="53,7,184,34"></map>
38
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
41
<a href="classsbuild_1_1chroot__config-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
37
43
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
38
44
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#41561f59fc684eef2fe045932139ed09">error_code</a> { <br>
44
50
<a class="el" href="classsbuild_1_1chroot__config.html#41561f59fc684eef2fe045932139ed099201ffec6def86b37c1ef884bd327eda">FILE_OPEN</a>,
45
51
<a class="el" href="classsbuild_1_1chroot__config.html#41561f59fc684eef2fe045932139ed09ed1b617b0954cc663c84384e290536dd">FILE_OWNER</a>,
46
<a class="el" href="classsbuild_1_1chroot__config.html#41561f59fc684eef2fe045932139ed09cbee3414b1eb338082554736d62bbeca">FILE_PERMS</a>,
47
<a class="el" href="classsbuild_1_1chroot__config.html#41561f59fc684eef2fe045932139ed099e60f2de1d5a2289200af5562104e359">FILE_STAT</a>
52
<a class="el" href="classsbuild_1_1chroot__config.html#41561f59fc684eef2fe045932139ed09cbee3414b1eb338082554736d62bbeca">FILE_PERMS</a>
63
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="classsbuild_1_1custom__error.html">custom_error</a>< <a class="el" href="classsbuild_1_1chroot__config.html#41561f59fc684eef2fe045932139ed09">error_code</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#a7ee23a948cd404acfa87df13b4607c6">error</a></td></tr>
65
70
<tr><td class="mdescLeft"> </td><td class="mdescRight">Exception type. <a href="#a7ee23a948cd404acfa87df13b4607c6"></a><br></td></tr>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::tr1::shared_ptr<<br>
67
<a class="el" href="classsbuild_1_1chroot__config.html">chroot_config</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#6138ce730de1d69e0f97d4100228b697">ptr</a></td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::tr1::shared_ptr<br>
72
< <a class="el" href="classsbuild_1_1chroot__config.html">chroot_config</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#6138ce730de1d69e0f97d4100228b697">ptr</a></td></tr>
69
74
<tr><td class="mdescLeft"> </td><td class="mdescRight">A shared_ptr to a <a class="el" href="classsbuild_1_1chroot__config.html" title="Chroot configuration.">chroot_config</a> object. <a href="#6138ce730de1d69e0f97d4100228b697"></a><br></td></tr>
70
75
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
80
85
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#c580115ce03027f886ed2c8cf46e7b1b">add</a> (std::string const &location, bool active)</td></tr>
82
87
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add a configuration file or directory. <a href="#c580115ce03027f886ed2c8cf46e7b1b"></a><br></td></tr>
83
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classsbuild_1_1chroot__config.html#2f5c15ac05dd764c9844a76d4834db83">chroot_list</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#c638ba1d392b1294b1175506a81af022">get_chroots</a> () const</td></tr>
88
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classsbuild_1_1chroot__config.html#2f5c15ac05dd764c9844a76d4834db83">chroot_list</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#cc56f30c91ee4765662d59b6b0909852">get_chroots</a> () const </td></tr>
85
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a list of available chroots. <a href="#c638ba1d392b1294b1175506a81af022"></a><br></td></tr>
90
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a list of available chroots. <a href="#cc56f30c91ee4765662d59b6b0909852"></a><br></td></tr>
86
91
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a">chroot::ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#3224fe813f1bddd6ba56a49b7553f497">find_chroot</a> (std::string const &name) const </td></tr>
88
93
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find a <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> by its name. <a href="#3224fe813f1bddd6ba56a49b7553f497"></a><br></td></tr>
89
94
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a">chroot::ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#faaaa9bc058e38d398bffeba867cb9f5">find_alias</a> (std::string const &name) const </td></tr>
91
96
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find a <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> by its name or an alias. <a href="#faaaa9bc058e38d398bffeba867cb9f5"></a><br></td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">string_list</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#31dd02f6e3d06d4be0cd4db1fee64d36">get_chroot_list</a> () const</td></tr>
94
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the names (including aliases) of all the available chroots, sorted in alphabetical order. <a href="#31dd02f6e3d06d4be0cd4db1fee64d36"></a><br></td></tr>
95
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#5b48be455da8714f9ec0b5d7bf52ef85">print_chroot_list</a> (std::ostream &stream) const</td></tr>
97
<tr><td class="mdescLeft"> </td><td class="mdescRight">Print all the available chroots to the specified stream. <a href="#5b48be455da8714f9ec0b5d7bf52ef85"></a><br></td></tr>
98
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#a8179c0a28c714cfb540598c366778ec">print_chroot_list_simple</a> (std::ostream &stream) const</td></tr>
100
<tr><td class="mdescLeft"> </td><td class="mdescRight">Print a single line of all the available chroots to the specified stream. <a href="#a8179c0a28c714cfb540598c366778ec"></a><br></td></tr>
97
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">string_list</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#d3038678d455444163b44677d2d3554c">get_chroot_list</a> () const </td></tr>
99
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the names (including aliases) of all the available chroots, sorted in alphabetical order. <a href="#d3038678d455444163b44677d2d3554c"></a><br></td></tr>
100
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#3a5e20d25c6e45b99b032c1410d3611c">print_chroot_list</a> (std::ostream &stream) const </td></tr>
102
<tr><td class="mdescLeft"> </td><td class="mdescRight">Print all the available chroots to the specified stream. <a href="#3a5e20d25c6e45b99b032c1410d3611c"></a><br></td></tr>
103
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#59f5dceb1944ca6df73ed486faa3e989">print_chroot_list_simple</a> (std::ostream &stream) const </td></tr>
105
<tr><td class="mdescLeft"> </td><td class="mdescRight">Print a single line of all the available chroots to the specified stream. <a href="#59f5dceb1944ca6df73ed486faa3e989"></a><br></td></tr>
101
106
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classsbuild_1_1chroot__config.html#43402fdc6b09d73d8e5d43b79eb08733">print_chroot_info</a> (<a class="el" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">string_list</a> const &<a class="el" href="classsbuild_1_1chroot__config.html#fd4596298ae5fb82629cce2c696d1833">chroots</a>, std::ostream &stream) const </td></tr>
103
108
<tr><td class="mdescLeft"> </td><td class="mdescRight">Print information about the specified chroots to the specified stream. <a href="#43402fdc6b09d73d8e5d43b79eb08733"></a><br></td></tr>
142
147
Chroot configuration.
144
149
This class holds the configuration details from the configuration file. Conceptually, it's an opaque container of <a class="el" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a> objects.<p>
145
Methods are provided to query the available chroots and find specific chroots.
147
<hr><h2>Member Typedef Documentation</h2>
150
Methods are provided to query the available chroots and find specific chroots. <hr><h2>Member Typedef Documentation</h2>
148
151
<a class="anchor" name="2f5c15ac05dd764c9844a76d4834db83"></a><!-- doxytag: member="sbuild::chroot_config::chroot_list" ref="2f5c15ac05dd764c9844a76d4834db83" args="" -->
149
152
<div class="memitem">
150
153
<div class="memproto">
261
264
File is not owned by user root. </td></tr>
262
265
<tr><td valign="top"><em><a class="anchor" name="41561f59fc684eef2fe045932139ed09cbee3414b1eb338082554736d62bbeca"></a><!-- doxytag: member="FILE_PERMS" ref="41561f59fc684eef2fe045932139ed09cbee3414b1eb338082554736d62bbeca" args="" -->FILE_PERMS</em> </td><td>
263
266
File has write permissions for others. </td></tr>
264
<tr><td valign="top"><em><a class="anchor" name="41561f59fc684eef2fe045932139ed099e60f2de1d5a2289200af5562104e359"></a><!-- doxytag: member="FILE_STAT" ref="41561f59fc684eef2fe045932139ed099e60f2de1d5a2289200af5562104e359" args="" -->FILE_STAT</em> </td><td>
265
Failed to stat file. </td></tr>
946
947
<hr>The documentation for this class was generated from the following files:<ul>
947
948
<li>sbuild/<a class="el" href="sbuild-chroot-config_8h-source.html">sbuild-chroot-config.h</a><li>sbuild/<a class="el" href="sbuild-chroot-config_8cc.html">sbuild-chroot-config.cc</a></ul>
948
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 8 21:23:49 2007 for sbuild by
949
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 21 00:38:20 2008 for sbuild by
949
950
<a href="http://www.doxygen.org/index.html">
950
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
951
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>