<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>glibmm: Gio::UnixOutputStream Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceGio.html">Gio</a>::<a class="el" href="classGio_1_1UnixOutputStream.html">UnixOutputStream</a> </div> </div> <div class="contents"> <h1>Gio::UnixOutputStream Class Reference<br/> <small> [<a class="el" href="group__Streams.html">Stream Classes</a>]</small> </h1><!-- doxytag: class="Gio::UnixOutputStream" --><!-- doxytag: inherits="Gio::OutputStream" --> <p><a class="el" href="classGio_1_1UnixOutputStream.html" title="UnixOutputStream implements OutputStream for writing to a a unix file descriptor...">UnixOutputStream</a> implements <a class="el" href="classGio_1_1OutputStream.html" title="Base class for implementing streaming output.">OutputStream</a> for writing to a a unix file descriptor, including asynchronous operations. <a href="#_details">More...</a></p> <p>Inherits <a class="el" href="classGio_1_1OutputStream.html">Gio::OutputStream</a>.</p> <div class="dynheader"> Collaboration diagram for Gio::UnixOutputStream:</div> <div class="dynsection"> <div class="center"><img src="classGio_1_1UnixOutputStream__coll__graph.png" border="0" usemap="#Gio_1_1UnixOutputStream_coll__map" alt="Collaboration graph"/></div> <map name="Gio_1_1UnixOutputStream_coll__map" id="Gio_1_1UnixOutputStream_coll__map"> <area shape="rect" href="classGio_1_1OutputStream.html" title="Base class for implementing streaming output." alt="" coords="17,237,148,267"/><area shape="rect" href="classGlib_1_1Object.html" title="Glib::Object" alt="" coords="37,160,128,189"/><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="23,83,143,112"/><area shape="rect" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="29,5,136,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGio_1_1UnixOutputStream-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#a176f5170fbd871cfc5a9ef60c9fc93e7">~UnixOutputStream</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GUnixOutputStream* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#ac22d258873e88661e29140587687d1d7">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#ac22d258873e88661e29140587687d1d7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GUnixOutputStream* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#ab9e89719d791ca893290ef5074fe2cf7">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#ab9e89719d791ca893290ef5074fe2cf7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GUnixOutputStream* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#a9d24719266d36067e08320d597f84f0d">gobj_copy</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#a9d24719266d36067e08320d597f84f0d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#a537abb20777901b37115aa527c791599">set_close_fd</a> (bool close_fd=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether the file descriptor of <em>stream</em> shall be closed when the stream is closed. <a href="#a537abb20777901b37115aa527c791599"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#a9cfacde4665024383bbb8d40c70c739f">get_close_fd</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return value: <code>true</code> if the file descriptor is closed when done. <a href="#a9cfacde4665024383bbb8d40c70c739f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#a60dbaa5fc2db03c096452693b9eb6bf7">get_fd</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the UNIX file descriptor that the stream writes to. <a href="#a60dbaa5fc2db03c096452693b9eb6bf7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#a2c176ac39c262c3aa42ab49cc40baaff">property_fd</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The file descriptor to write to. <a href="#a2c176ac39c262c3aa42ab49cc40baaff"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#a9eec7de6ee2ae4829c944162ad4027cf">property_close_fd</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to close the file descriptor when the stream is closed. <a href="#a9eec7de6ee2ae4829c944162ad4027cf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#aedf70cd26e305a13423a790b9c60efe1">property_close_fd</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to close the file descriptor when the stream is closed. <a href="#aedf70cd26e305a13423a790b9c60efe1"></a><br/></td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/> < <a class="el" href="classGio_1_1UnixOutputStream.html">UnixOutputStream</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#a037edba8c8a72d0a102fed1f8a8ab9d3">create</a> (int fd, bool close_fd_at_close)</td></tr> <tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#ac935a3825494bcdb3033b5ab9cfd7391">UnixOutputStream</a> (int fd, bool close_fd_at_close)</td></tr> <tr><td colspan="2"><h2>Related Functions</h2></td></tr> <tr><td colspan="2"><p>(Note that these are not member functions.) </p> <br/><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/> < <a class="el" href="classGio_1_1UnixOutputStream.html">Gio::UnixOutputStream</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1UnixOutputStream.html#ad0dc702aab1a415385bf6225fc71388f">wrap</a> (GUnixOutputStream* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#ad0dc702aab1a415385bf6225fc71388f"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p><a class="el" href="classGio_1_1UnixOutputStream.html" title="UnixOutputStream implements OutputStream for writing to a a unix file descriptor...">UnixOutputStream</a> implements <a class="el" href="classGio_1_1OutputStream.html" title="Base class for implementing streaming output.">OutputStream</a> for writing to a a unix file descriptor, including asynchronous operations. </p> <p>The file descriptor much be selectable, so it doesn't work with opened files.</p> <dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000048">Since glibmm 2.16:</a></b></dt><dd></dd></dl> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a176f5170fbd871cfc5a9ef60c9fc93e7"></a><!-- doxytag: member="Gio::UnixOutputStream::~UnixOutputStream" ref="a176f5170fbd871cfc5a9ef60c9fc93e7" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gio::UnixOutputStream::~UnixOutputStream </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ac935a3825494bcdb3033b5ab9cfd7391"></a><!-- doxytag: member="Gio::UnixOutputStream::UnixOutputStream" ref="ac935a3825494bcdb3033b5ab9cfd7391" args="(int fd, bool close_fd_at_close)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gio::UnixOutputStream::UnixOutputStream </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>fd</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>close_fd_at_close</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [explicit, protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a037edba8c8a72d0a102fed1f8a8ab9d3"></a><!-- doxytag: member="Gio::UnixOutputStream::create" ref="a037edba8c8a72d0a102fed1f8a8ab9d3" args="(int fd, bool close_fd_at_close)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1UnixOutputStream.html">UnixOutputStream</a>> Gio::UnixOutputStream::create </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>fd</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>close_fd_at_close</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a9cfacde4665024383bbb8d40c70c739f"></a><!-- doxytag: member="Gio::UnixOutputStream::get_close_fd" ref="a9cfacde4665024383bbb8d40c70c739f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gio::UnixOutputStream::get_close_fd </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Return value: <code>true</code> if the file descriptor is closed when done. </p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the file descriptor is closed when done</dd></dl> <dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000019">Since glibmm 2.20:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a60dbaa5fc2db03c096452693b9eb6bf7"></a><!-- doxytag: member="Gio::UnixOutputStream::get_fd" ref="a60dbaa5fc2db03c096452693b9eb6bf7" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Gio::UnixOutputStream::get_fd </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Return the UNIX file descriptor that the stream writes to. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The file descriptor of <em>stream</em> </dd></dl> <dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000020">Since glibmm 2.20:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="ab9e89719d791ca893290ef5074fe2cf7"></a><!-- doxytag: member="Gio::UnixOutputStream::gobj" ref="ab9e89719d791ca893290ef5074fe2cf7" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GUnixOutputStream* Gio::UnixOutputStream::gobj </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GObject. </p> <p>Reimplemented from <a class="el" href="classGio_1_1OutputStream.html#ac29e6ad7ccffde24201a1da608f25ac9">Gio::OutputStream</a>.</p> </div> </div> <a class="anchor" id="ac22d258873e88661e29140587687d1d7"></a><!-- doxytag: member="Gio::UnixOutputStream::gobj" ref="ac22d258873e88661e29140587687d1d7" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GUnixOutputStream* Gio::UnixOutputStream::gobj </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GObject. </p> <p>Reimplemented from <a class="el" href="classGio_1_1OutputStream.html#ac5a71a1f432f8ac2a53de2c66eb81d9d">Gio::OutputStream</a>.</p> </div> </div> <a class="anchor" id="a9d24719266d36067e08320d597f84f0d"></a><!-- doxytag: member="Gio::UnixOutputStream::gobj_copy" ref="a9d24719266d36067e08320d597f84f0d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GUnixOutputStream* Gio::UnixOutputStream::gobj_copy </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p> <p>Reimplemented from <a class="el" href="classGio_1_1OutputStream.html#ad9128985ea683716db40d7831cb7075c">Gio::OutputStream</a>.</p> </div> </div> <a class="anchor" id="aedf70cd26e305a13423a790b9c60efe1"></a><!-- doxytag: member="Gio::UnixOutputStream::property_close_fd" ref="aedf70cd26e305a13423a790b9c60efe1" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> Gio::UnixOutputStream::property_close_fd </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Whether to close the file descriptor when the stream is closed. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a9eec7de6ee2ae4829c944162ad4027cf"></a><!-- doxytag: member="Gio::UnixOutputStream::property_close_fd" ref="a9eec7de6ee2ae4829c944162ad4027cf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gio::UnixOutputStream::property_close_fd </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Whether to close the file descriptor when the stream is closed. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a2c176ac39c262c3aa42ab49cc40baaff"></a><!-- doxytag: member="Gio::UnixOutputStream::property_fd" ref="a2c176ac39c262c3aa42ab49cc40baaff" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><int> Gio::UnixOutputStream::property_fd </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The file descriptor to write to. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a537abb20777901b37115aa527c791599"></a><!-- doxytag: member="Gio::UnixOutputStream::set_close_fd" ref="a537abb20777901b37115aa527c791599" args="(bool close_fd=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gio::UnixOutputStream::set_close_fd </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>close_fd</em> = <code>true</code></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets whether the file descriptor of <em>stream</em> shall be closed when the stream is closed. </p> <dl class="since_2_20"><dt><b><a class="el" href="since_2_20.html#_since_2_20000018">Since glibmm 2.20:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>close_fd</em> </td><td><code>true</code> to close the file descriptor when done. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="ad0dc702aab1a415385bf6225fc71388f"></a><!-- doxytag: member="Gio::UnixOutputStream::wrap" ref="ad0dc702aab1a415385bf6225fc71388f" args="(GUnixOutputStream *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1UnixOutputStream.html">Gio::UnixOutputStream</a> > wrap </td> <td>(</td> <td class="paramtype">GUnixOutputStream * </td> <td class="paramname"> <em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The C instance. </td></tr> <tr><td valign="top"></td><td valign="top"><em>take_copy</em> </td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>giomm/unixoutputstream.h</li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Mon Sep 21 11:07:24 2009 for glibmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>