<!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>libgdamm: Gnome::Gda::Blob 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.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libgdamm <span id="projectnumber">4.1.3</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <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> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGnome.html">Gnome</a> </li> <li class="navelem"><a class="el" href="namespaceGnome_1_1Gda.html">Gda</a> </li> <li class="navelem"><a class="el" href="classGnome_1_1Gda_1_1Blob.html">Blob</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gnome::Gda::Blob Class Reference<div class="ingroups"><a class="el" href="group__DataHandlers.html">Data Handlers</a></div></h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gnome::Gda::Blob" --> <p>This object is a base class for individual database providers which support BLOB types. <a href="#_details">More...</a></p> <div class="dynheader"> Collaboration diagram for Gnome::Gda::Blob:</div> <div class="dyncontent"> <div class="center"><img src="classGnome_1_1Gda_1_1Blob__coll__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1Blob_coll__map" alt="Collaboration graph"/></div> <map name="Gnome_1_1Gda_1_1Blob_coll__map" id="Gnome_1_1Gda_1_1Blob_coll__map"> </map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGnome_1_1Gda_1_1Blob-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Blob.html#ae0fd7461b467cc5e2ec7a9250900cfdf">Blob</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Blob.html#a9ed998dfa646448497f1a0d131563b9f">Blob</a> (const GdaBlob* gobject)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GdaBlob* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Blob.html#a12633dace443eb9ff3920b6ec9f6ba79">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. <a href="#a12633dace443eb9ff3920b6ec9f6ba79"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GdaBlob* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Blob.html#a07b0f54022a494b12bbdee034e1c1b65">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. <a href="#a07b0f54022a494b12bbdee034e1c1b65"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Blob.html#aef0c319d4a980cfb993030b36ebcb324">set_op</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGnome_1_1Gda_1_1BlobOp.html">BlobOp</a> >& op)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">correctly assigns <em>op</em> to <em>blob</em> <a href="#aef0c319d4a980cfb993030b36ebcb324"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Blob.html#aac54945e2a4118723e9177455747e5ec">to_string</a> (guint maxlen=0) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts all the non printable characters of blob->data into the representation where xxx is the octal representation of the byte, and the '\' (backslash) character is converted to "\\". <a href="#aac54945e2a4118723e9177455747e5ec"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GdaBlob </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Blob.html#a1f4298f97bd8a2767f0434ef9acedb6d">gobject_</a></td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGnome_1_1Gda_1_1Blob.html">Gnome::Gda::Blob</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Blob.html#ab2e601d51ea3d593d695863957c1201a">wrap</a> (GdaBlob* object)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGnome_1_1Gda_1_1Blob.html">Gnome::Gda::Blob</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1Blob.html#a56dece1dbea4981095e9d76a89f675e0">wrap</a> (const GdaBlob* object)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>This object is a base class for individual database providers which support BLOB types. </p> <p>It supports operations to read and write data in a BLOB. </p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ae0fd7461b467cc5e2ec7a9250900cfdf"></a><!-- doxytag: member="Gnome::Gda::Blob::Blob" ref="ae0fd7461b467cc5e2ec7a9250900cfdf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gnome::Gda::Blob::Blob </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a9ed998dfa646448497f1a0d131563b9f"></a><!-- doxytag: member="Gnome::Gda::Blob::Blob" ref="a9ed998dfa646448497f1a0d131563b9f" args="(const GdaBlob *gobject)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gnome::Gda::Blob::Blob </td> <td>(</td> <td class="paramtype">const GdaBlob * </td> <td class="paramname"><em>gobject</em></td><td>)</td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a12633dace443eb9ff3920b6ec9f6ba79"></a><!-- doxytag: member="Gnome::Gda::Blob::gobj" ref="a12633dace443eb9ff3920b6ec9f6ba79" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GdaBlob* Gnome::Gda::Blob::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 instance. </p> </div> </div> <a class="anchor" id="a07b0f54022a494b12bbdee034e1c1b65"></a><!-- doxytag: member="Gnome::Gda::Blob::gobj" ref="a07b0f54022a494b12bbdee034e1c1b65" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GdaBlob* Gnome::Gda::Blob::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 instance. </p> </div> </div> <a class="anchor" id="aef0c319d4a980cfb993030b36ebcb324"></a><!-- doxytag: member="Gnome::Gda::Blob::set_op" ref="aef0c319d4a980cfb993030b36ebcb324" args="(const Glib::RefPtr< BlobOp > &op)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gnome::Gda::Blob::set_op </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGnome_1_1Gda_1_1BlobOp.html">BlobOp</a> >& </td> <td class="paramname"><em>op</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>correctly assigns <em>op</em> to <em>blob</em> </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">op</td><td>A <a class="el" href="classGnome_1_1Gda_1_1BlobOp.html" title="Blobs handling.">Gda::BlobOp</a> object, or <code>0</code>. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aac54945e2a4118723e9177455747e5ec"></a><!-- doxytag: member="Gnome::Gda::Blob::to_string" ref="aac54945e2a4118723e9177455747e5ec" args="(guint maxlen=0) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gnome::Gda::Blob::to_string </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>maxlen</em> = <code>0</code></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Converts all the non printable characters of blob->data into the representation where xxx is the octal representation of the byte, and the '\' (backslash) character is converted to "\\". </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">maxlen</td><td>A maximum len used to truncate, or 0 for no maximum length. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A new string from <em>blob</em>. </dd></dl> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="ab2e601d51ea3d593d695863957c1201a"></a><!-- doxytag: member="Gnome::Gda::Blob::wrap" ref="ab2e601d51ea3d593d695863957c1201a" args="(GdaBlob *object)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGnome_1_1Gda_1_1Blob.html">Gnome::Gda::Blob</a>& wrap </td> <td>(</td> <td class="paramtype">GdaBlob * </td> <td class="paramname"><em>object</em></td><td>)</td> <td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance </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> <a class="anchor" id="a56dece1dbea4981095e9d76a89f675e0"></a><!-- doxytag: member="Gnome::Gda::Blob::wrap" ref="a56dece1dbea4981095e9d76a89f675e0" args="(const GdaBlob *object)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classGnome_1_1Gda_1_1Blob.html">Gnome::Gda::Blob</a>& wrap </td> <td>(</td> <td class="paramtype">const GdaBlob * </td> <td class="paramname"><em>object</em></td><td>)</td> <td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance </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/><h2>Member Data Documentation</h2> <a class="anchor" id="a1f4298f97bd8a2767f0434ef9acedb6d"></a><!-- doxytag: member="Gnome::Gda::Blob::gobject_" ref="a1f4298f97bd8a2767f0434ef9acedb6d" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GdaBlob <a class="el" href="classGnome_1_1Gda_1_1Blob.html#a1f4298f97bd8a2767f0434ef9acedb6d">Gnome::Gda::Blob::gobject_</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>libgdamm/blob.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Sep 22 2011 11:20:02 for libgdamm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>