Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > 8d90331d2ecb84d76208e0114aebc325 > files > 174

lib64gdamm4.0-devel-3.99.17.1-1mdv2010.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libgdamm: Gnome::Gda::MetaStruct 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.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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 class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGnome.html">Gnome</a>::<a class="el" href="namespaceGnome_1_1Gda.html">Gda</a>::<a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html">MetaStruct</a>
  </div>
</div>
<div class="contents">
<h1>Gnome::Gda::MetaStruct Class Reference</h1><!-- doxytag: class="Gnome::Gda::MetaStruct" --><!-- doxytag: inherits="Glib::Object" -->In-memory representation of some database objects. <a href="#_details">More...</a>
<p>
Inherits <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html">Glib::Object</a>.
<p>
<div class="dynheader">
Collaboration diagram for Gnome::Gda::MetaStruct:</div>
<div class="dynsection">
<p><center><img src="classGnome_1_1Gda_1_1MetaStruct__coll__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1MetaStruct__coll__map" alt="Collaboration graph"></center>
<map name="Gnome_1_1Gda_1_1MetaStruct__coll__map">
<area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="44,155,135,181"><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="29,80,149,107"><area shape="rect" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="36,5,143,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classGnome_1_1Gda_1_1MetaStruct-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#59787fc011cda64de8b09a495b6db3da">~MetaStruct</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaMetaStruct*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#0d3d48ad3b583ee49c05fe4268868839">gobj</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#0d3d48ad3b583ee49c05fe4268868839"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GdaMetaStruct*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#6f74aaa10d88e5a6e41e860d9b217cb7">gobj</a> () const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#6f74aaa10d88e5a6e41e860d9b217cb7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaMetaStruct*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#e356e8a84eff616e00197d9cefe0f4c4">gobj_copy</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</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="#e356e8a84eff616e00197d9cefe0f4c4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaMetaDbObject*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#bcacd8d7d6b6318f872d254f2e4a35ac">complement</a> (<a class="el" href="group__libgdammEnums.html#gbc8cfdadb9858da2ba0d869b7032dac8">MetaDbObjectType</a> type, const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; catalog, const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; schema, const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; name)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new Gda::MetaDbObject structure in <em>mstruct</em> to represent the database object (of type <em>type</em>) which can be uniquely identified as <em>catalog</em>. <a href="#bcacd8d7d6b6318f872d254f2e4a35ac"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#ec2673f024ff7982a59eae7c5585fa54">complement_schema</a> (const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; catalog, const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; schema)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is similar to <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#bcacd8d7d6b6318f872d254f2e4a35ac" title="Creates a new Gda::MetaDbObject structure in mstruct to represent the database object...">complement()</a> but creates Gda::MetaDbObject for all the database object which are in the <em>schema</em> schema (and in the <em>catalog</em> catalog). <a href="#ec2673f024ff7982a59eae7c5585fa54"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#8f6cf4f17b48973bea9aa1f295e47317">complement_default</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is similar to <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#bcacd8d7d6b6318f872d254f2e4a35ac" title="Creates a new Gda::MetaDbObject structure in mstruct to represent the database object...">complement()</a> and <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#5abb92eb8d5a1808999aada40babb9b0" title="This method is similar to complement() and complement_default() but creates Gda::MetaDbObject...">complement_all()</a> but creates Gda::MetaDbObject for all the database object which are useable using only their short name (that is which do not need to be prefixed by the schema in which they are to be used). <a href="#8f6cf4f17b48973bea9aa1f295e47317"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#8e5b22c9af08ba84dc7f9450faf40dfb">sort_db_object</a> (<a class="el" href="group__libgdammEnums.html#g9245327dfad017057e2a418e29e6d3b3">MetaSortType</a> sort_type)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reorders the list of database objects within <em>mstruct</em> in a way specified by <em>sort_type</em>. <a href="#8e5b22c9af08ba84dc7f9450faf40dfb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaMetaDbObject*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#df118667000c7a449244dde9eeb44ba2">get_db_object</a> (const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; catalog, const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; schema, const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; name)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Tries to locate the Gda::MetaDbObject structure representing the database object named after <em>catalog</em>, <em>schema</em> and <em>name</em>. <a href="#df118667000c7a449244dde9eeb44ba2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaMetaTableColumn*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#8f9960b6d768dceab314517b3db889c6">get_table_column</a> (GdaMetaTable* table, const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; col_name)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Tries to find the Gda::MetaTableColumn representing the column named <em>col_name</em> in <em>table</em>. <a href="#8f9960b6d768dceab314517b3db889c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#a2e870983a1e2c52589a7ace7fe4d938">dump_as_graph</a> (<a class="el" href="group__libgdammEnums.html#g6a80b8a7f482510aef6747a0f475c951">MetaGraphInfo</a> info)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new graph (in the GraphViz syntax) representation of <em>mstruct</em>. <a href="#a2e870983a1e2c52589a7ace7fe4d938"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#5abb92eb8d5a1808999aada40babb9b0">complement_all</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is similar to <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#bcacd8d7d6b6318f872d254f2e4a35ac" title="Creates a new Gda::MetaDbObject structure in mstruct to represent the database object...">complement()</a> and <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#8f6cf4f17b48973bea9aa1f295e47317" title="This method is similar to complement() and complement_all() but creates Gda::MetaDbObject...">complement_default()</a> but creates Gda::MetaDbObject for all the database object. <a href="#5abb92eb8d5a1808999aada40babb9b0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GSList*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#180972e1cf18756b121a0dac758b9859">get_all_db_objects</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a list of all the Gda::MetaDbObject structures representing database objects in <em>mstruct</em>. <a href="#180972e1cf18756b121a0dac758b9859"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak">
&lt; guint &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#324dcf7e434dc94cadcc32f6f2a4f81f">property_features</a> () const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">You rarely need to use properties because there are get_ and set_ methods for almost all of them. <a href="#324dcf7e434dc94cadcc32f6f2a4f81f"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html">MetaStruct</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#ef9fb9b374fe83b8bcce7370705671cb">create</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1MetaStore.html">MetaStore</a> &gt;&amp; store, <a class="el" href="group__libgdammEnums.html#g2fb8a6fe04eb92bef76005464d523c79">MetaStructFeature</a> features=META_STRUCT_FEATURE_ALL)</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#371a6e2def014eade66fdcd43c918eda">MetaStruct</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1MetaStore.html">MetaStore</a> &gt;&amp; meta_store, <a class="el" href="group__libgdammEnums.html#g2fb8a6fe04eb92bef76005464d523c79">MetaStructFeature</a> features)</td></tr>

<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak">
&lt; <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html">Gnome::Gda::MetaStruct</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#f470e3244817822f7e3e63ff36907abf">wrap</a> (GdaMetaStruct* object, bool take_copy=false)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#f470e3244817822f7e3e63ff36907abf"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
In-memory representation of some database objects. <p>
The <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html" title="In-memory representation of some database objects.">Gda::MetaStruct</a> object reads data from a <a class="el" href="classGnome_1_1Gda_1_1MetaStore.html" title="Dictionary object.">Gda::MetaStore</a> object and creates an easy to use in memory representation for some database objects. For example one can easily analyse the columns of a table (or its foreign keys) using a <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html" title="In-memory representation of some database objects.">Gda::MetaStruct</a>.<p>
When created, the new <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html" title="In-memory representation of some database objects.">Gda::MetaStruct</a> object is empty (it does not have any information about any database object). Information about database objects is computed upon request using the gda_meta_struct_complement() method. Information about individual database objects is represented by GdaMetaDbObject structures, which can be obtained using <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#df118667000c7a449244dde9eeb44ba2" title="Tries to locate the Gda::MetaDbObject structure representing the database object...">get_db_object()</a> or <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#180972e1cf18756b121a0dac758b9859" title="Get a list of all the Gda::MetaDbObject structures representing database objects...">get_all_db_objects()</a>.<p>
Note that the Gda::MetaDbObject structures may change or may be removed or replaced by others, so it not advised to keep pointers to these structures: pointers to these structures should be considered valid as long as <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#bcacd8d7d6b6318f872d254f2e4a35ac" title="Creates a new Gda::MetaDbObject structure in mstruct to represent the database object...">complement()</a> and other similar functions have not been called. <hr><h2>Constructor&amp; Destructor Documentation</h2>
<a class="anchor" name="59787fc011cda64de8b09a495b6db3da"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::~MetaStruct" ref="59787fc011cda64de8b09a495b6db3da" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gnome::Gda::MetaStruct::~MetaStruct </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="371a6e2def014eade66fdcd43c918eda"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::MetaStruct" ref="371a6e2def014eade66fdcd43c918eda" args="(const Glib::RefPtr&lt; MetaStore &gt; &amp;meta_store, MetaStructFeature features)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gnome::Gda::MetaStruct::MetaStruct </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1MetaStore.html">MetaStore</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>meta_store</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__libgdammEnums.html#g2fb8a6fe04eb92bef76005464d523c79">MetaStructFeature</a>&#160;</td>
          <td class="paramname"> <em>features</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="bcacd8d7d6b6318f872d254f2e4a35ac"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::complement" ref="bcacd8d7d6b6318f872d254f2e4a35ac" args="(MetaDbObjectType type, const Value &amp;catalog, const Value &amp;schema, const Value &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaMetaDbObject* Gnome::Gda::MetaStruct::complement </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__libgdammEnums.html#gbc8cfdadb9858da2ba0d869b7032dac8">MetaDbObjectType</a>&#160;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&#160;</td>
          <td class="paramname"> <em>catalog</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&#160;</td>
          <td class="paramname"> <em>schema</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&#160;</td>
          <td class="paramname"> <em>name</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new Gda::MetaDbObject structure in <em>mstruct</em> to represent the database object (of type <em>type</em>) which can be uniquely identified as <em>catalog</em>. <p>
<em>schema</em>. <em>name</em>.<p>
If <em>catalog</em> is not <code>0</code>, then <em>schema</em> should not be <code>0</code>.<p>
If both <em>catalog</em> and <em>schema</em> are <code>0</code>, then the database object will be the one which is "visible" by default (that is which can be accessed only by its short <em>name</em> name).<p>
If <em>catalog</em> is <code>0</code> and <em>schema</em> is not <code>0</code>, then the database object will be the one which can be accessed by its <em>schema</em>. <em>name</em> name.<p>
Important note: <em>catalog</em>, <em>schema</em> and <em>name</em> must respect the following convention: &lt;itemizedlist&gt; &lt;listitem&gt;be surrounded by double quotes for a case sensitive search&lt;/listitem&gt; &lt;listitem&gt;otherwise they will be converted to lower case for search&lt;/listitem&gt; &lt;/itemizedlist&gt; <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&#160;</td><td>The type of object to add (which can be GDA_META_DB_UNKNOWN). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>catalog</em>&#160;</td><td>The catalog the object belongs to (as a G_TYPE_STRING GValue), or <code>0</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>schema</em>&#160;</td><td>The schema the object belongs to (as a G_TYPE_STRING GValue), or <code>0</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&#160;</td><td>The object's name (as a G_TYPE_STRING GValue), not <code>0</code>. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The Gda::MetaDbObject corresponding to the database object if no error occurred, or <code>0</code>. </dd></dl>

</div>
</div><p>
<a class="anchor" name="5abb92eb8d5a1808999aada40babb9b0"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::complement_all" ref="5abb92eb8d5a1808999aada40babb9b0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gnome::Gda::MetaStruct::complement_all </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This method is similar to <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#bcacd8d7d6b6318f872d254f2e4a35ac" title="Creates a new Gda::MetaDbObject structure in mstruct to represent the database object...">complement()</a> and <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#8f6cf4f17b48973bea9aa1f295e47317" title="This method is similar to complement() and complement_all() but creates Gda::MetaDbObject...">complement_default()</a> but creates Gda::MetaDbObject for all the database object. <p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div><p>
<a class="anchor" name="8f6cf4f17b48973bea9aa1f295e47317"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::complement_default" ref="8f6cf4f17b48973bea9aa1f295e47317" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gnome::Gda::MetaStruct::complement_default </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This method is similar to <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#bcacd8d7d6b6318f872d254f2e4a35ac" title="Creates a new Gda::MetaDbObject structure in mstruct to represent the database object...">complement()</a> and <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#5abb92eb8d5a1808999aada40babb9b0" title="This method is similar to complement() and complement_default() but creates Gda::MetaDbObject...">complement_all()</a> but creates Gda::MetaDbObject for all the database object which are useable using only their short name (that is which do not need to be prefixed by the schema in which they are to be used). <p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div><p>
<a class="anchor" name="ec2673f024ff7982a59eae7c5585fa54"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::complement_schema" ref="ec2673f024ff7982a59eae7c5585fa54" args="(const Value &amp;catalog, const Value &amp;schema)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gnome::Gda::MetaStruct::complement_schema </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&#160;</td>
          <td class="paramname"> <em>catalog</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&#160;</td>
          <td class="paramname"> <em>schema</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This method is similar to <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html#bcacd8d7d6b6318f872d254f2e4a35ac" title="Creates a new Gda::MetaDbObject structure in mstruct to represent the database object...">complement()</a> but creates Gda::MetaDbObject for all the database object which are in the <em>schema</em> schema (and in the <em>catalog</em> catalog). <p>
If <em>catalog</em> is <code>0</code>, then any catalog will be used, and if <em>schema</em> is <code>0</code> then any schema will be used (if <em>schema</em> is <code>0</code> then catalog must also be <code>0</code>). <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>catalog</em>&#160;</td><td>Name of a catalog, or <code>0</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>schema</em>&#160;</td><td>Name of a schema, or <code>0</code>. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div><p>
<a class="anchor" name="ef9fb9b374fe83b8bcce7370705671cb"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::create" ref="ef9fb9b374fe83b8bcce7370705671cb" args="(const Glib::RefPtr&lt; MetaStore &gt; &amp;store, MetaStructFeature features=META_STRUCT_FEATURE_ALL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html">MetaStruct</a>&gt; Gnome::Gda::MetaStruct::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1MetaStore.html">MetaStore</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>store</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__libgdammEnums.html#g2fb8a6fe04eb92bef76005464d523c79">MetaStructFeature</a>&#160;</td>
          <td class="paramname"> <em>features</em> = <code>META_STRUCT_FEATURE_ALL</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="a2e870983a1e2c52589a7ace7fe4d938"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::dump_as_graph" ref="a2e870983a1e2c52589a7ace7fe4d938" args="(MetaGraphInfo info)" -->
<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::MetaStruct::dump_as_graph </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__libgdammEnums.html#g6a80b8a7f482510aef6747a0f475c951">MetaGraphInfo</a>&#160;</td>
          <td class="paramname"> <em>info</em> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new graph (in the GraphViz syntax) representation of <em>mstruct</em>. <p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>info</em>&#160;</td><td>Informs what kind of information to show in the resulting graph. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A new string, or <code>0</code> if an error occurred. </dd></dl>

</div>
</div><p>
<a class="anchor" name="180972e1cf18756b121a0dac758b9859"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::get_all_db_objects" ref="180972e1cf18756b121a0dac758b9859" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GSList* Gnome::Gda::MetaStruct::get_all_db_objects </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get a list of all the Gda::MetaDbObject structures representing database objects in <em>mstruct</em>. <p>
Note that no Gda::MetaDbObject structure must not be modified. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A new SList list of pointers which must be destroyed after usage using Glib::slist_free(). </dd></dl>

</div>
</div><p>
<a class="anchor" name="df118667000c7a449244dde9eeb44ba2"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::get_db_object" ref="df118667000c7a449244dde9eeb44ba2" args="(const Value &amp;catalog, const Value &amp;schema, const Value &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaMetaDbObject* Gnome::Gda::MetaStruct::get_db_object </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&#160;</td>
          <td class="paramname"> <em>catalog</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&#160;</td>
          <td class="paramname"> <em>schema</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&#160;</td>
          <td class="paramname"> <em>name</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tries to locate the Gda::MetaDbObject structure representing the database object named after <em>catalog</em>, <em>schema</em> and <em>name</em>. <p>
If one or both of <em>catalog</em> and <em>schema</em> are <code>0</code>, and more than one database object matches the name, then the return value is also <code>0</code>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>catalog</em>&#160;</td><td>The catalog the object belongs to (as a G_TYPE_STRING GValue), or <code>0</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>schema</em>&#160;</td><td>The schema the object belongs to (as a G_TYPE_STRING GValue), or <code>0</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&#160;</td><td>The object's name (as a G_TYPE_STRING GValue), not <code>0</code>. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The Gda::MetaDbObject or <code>0</code> if not found. </dd></dl>

</div>
</div><p>
<a class="anchor" name="8f9960b6d768dceab314517b3db889c6"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::get_table_column" ref="8f9960b6d768dceab314517b3db889c6" args="(GdaMetaTable *table, const Value &amp;col_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaMetaTableColumn* Gnome::Gda::MetaStruct::get_table_column </td>
          <td>(</td>
          <td class="paramtype">GdaMetaTable *&#160;</td>
          <td class="paramname"> <em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&#160;</td>
          <td class="paramname"> <em>col_name</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tries to find the Gda::MetaTableColumn representing the column named <em>col_name</em> in <em>table</em>. <p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>table</em>&#160;</td><td>The Gda::MetaTable structure to find the column for. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>col_name</em>&#160;</td><td>The name of the column to find (as a G_TYPE_STRING GValue). </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The Gda::MetaTableColumn or <code>0</code> if not found. </dd></dl>

</div>
</div><p>
<a class="anchor" name="6f74aaa10d88e5a6e41e860d9b217cb7"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::gobj" ref="6f74aaa10d88e5a6e41e860d9b217cb7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdaMetaStruct* Gnome::Gda::MetaStruct::gobj </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</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="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>

</div>
</div><p>
<a class="anchor" name="0d3d48ad3b583ee49c05fe4268868839"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::gobj" ref="0d3d48ad3b583ee49c05fe4268868839" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaMetaStruct* Gnome::Gda::MetaStruct::gobj </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</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="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>

</div>
</div><p>
<a class="anchor" name="e356e8a84eff616e00197d9cefe0f4c4"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::gobj_copy" ref="e356e8a84eff616e00197d9cefe0f4c4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaMetaStruct* Gnome::Gda::MetaStruct::gobj_copy </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</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>

</div>
</div><p>
<a class="anchor" name="324dcf7e434dc94cadcc32f6f2a4f81f"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::property_features" ref="324dcf7e434dc94cadcc32f6f2a4f81f" args="() 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_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;guint&gt; Gnome::Gda::MetaStruct::property_features </td>
          <td>(</td>
          <td class="paramname"> </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
You rarely need to use properties because there are get_ and set_ methods for almost all of them. <p>
<dl class="return" compact><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><p>
<a class="anchor" name="8e5b22c9af08ba84dc7f9450faf40dfb"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::sort_db_object" ref="8e5b22c9af08ba84dc7f9450faf40dfb" args="(MetaSortType sort_type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gnome::Gda::MetaStruct::sort_db_object </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__libgdammEnums.html#g9245327dfad017057e2a418e29e6d3b3">MetaSortType</a>&#160;</td>
          <td class="paramname"> <em>sort_type</em> </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reorders the list of database objects within <em>mstruct</em> in a way specified by <em>sort_type</em>. <p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>sort_type</em>&#160;</td><td>The kind of sorting requested. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="f470e3244817822f7e3e63ff36907abf"></a><!-- doxytag: member="Gnome::Gda::MetaStruct::wrap" ref="f470e3244817822f7e3e63ff36907abf" args="(GdaMetaStruct *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGnome_1_1Gda_1_1MetaStruct.html">Gnome::Gda::MetaStruct</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GdaMetaStruct *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</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="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>libgdamm/metastruct.h</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 28 20:01:56 2009 for libgdamm by&#160;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>