Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f37f2c0b149d5391818dc5157943cda0 > files > 454

gnome-chemistry-utils-devel-0.10.8-3mdv2010.0.i586.rpm

<!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>The Gnome Chemistry Utils: object.h Source File</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&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_3f1a4fbcec42af7c381c8030b930461d.html">libs</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_4dc46c636cfd3997b28f6cceab9d70bd.html">gcu</a>
  </div>
</div>
<div class="contents">
<h1>object.h</h1><a href="object_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- C++ -*-</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">/* </span>
<a name="l00004"></a>00004 <span class="comment"> * Gnome Chemistry Utils</span>
<a name="l00005"></a>00005 <span class="comment"> * object.h </span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2002-2008 Jean Bréfort &lt;jean.brefort@normalesup.org&gt;</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * This program is free software; you can redistribute it and/or </span>
<a name="l00010"></a>00010 <span class="comment"> * modify it under the terms of the GNU General Public License as </span>
<a name="l00011"></a>00011 <span class="comment"> * published by the Free Software Foundation; either version 2 of the</span>
<a name="l00012"></a>00012 <span class="comment"> * License, or (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00015"></a>00015 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00017"></a>00017 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00020"></a>00020 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301</span>
<a name="l00022"></a>00022 <span class="comment"> * USA</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef GCU_OBJECT_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define GCU_OBJECT_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="macros_8h.html">macros.h</a>&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;<a class="code" href="matrix2d_8h.html">matrix2d.h</a>&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;glib.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;libxml/parser.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;set&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;stdexcept&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;gtk/gtk.h&gt;</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="preprocessor">#define square(x) ((x)*(x))</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="keyword">namespace </span>gcu
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 
<a name="l00069"></a><a class="code" href="namespacegcu.html#aabe8d7866fa1e64337f3cbddd74b970a">00069</a> <span class="keyword">enum</span> <a class="code" href="namespacegcu.html#aabe8d7866fa1e64337f3cbddd74b970a">GcuTypeId</a>
<a name="l00070"></a>00070 {
<a name="l00071"></a>00071         NoType,
<a name="l00072"></a>00072         AtomType,
<a name="l00073"></a>00073         FragmentType,
<a name="l00074"></a>00074         BondType,
<a name="l00075"></a>00075         MoleculeType,
<a name="l00076"></a>00076         ChainType,
<a name="l00077"></a>00077         CycleType,
<a name="l00078"></a>00078         ReactantType,
<a name="l00079"></a>00079         ReactionArrowType,
<a name="l00080"></a>00080         ReactionOperatorType,
<a name="l00081"></a>00081         ReactionType,
<a name="l00082"></a>00082         MesomeryType,
<a name="l00083"></a>00083         MesomeryArrowType,
<a name="l00084"></a>00084         DocumentType,
<a name="l00085"></a>00085         TextType,
<a name="l00086"></a>00086         OtherType
<a name="l00087"></a>00087 };
<a name="l00088"></a>00088 
<a name="l00093"></a><a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">00093</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a>;
<a name="l00094"></a>00094 
<a name="l00095"></a>00095 <span class="keyword">class </span><a class="code" href="classgcu_1_1Object.html">Object</a>;
<a name="l00096"></a>00096 
<a name="l00105"></a><a class="code" href="namespacegcu.html#a557c44b0c90f4543aae6f9b1a9b00616">00105</a> <span class="keyword">typedef</span> bool (*<a class="code" href="namespacegcu.html#a557c44b0c90f4543aae6f9b1a9b00616">BuildMenuCb</a>) (<a class="code" href="classgcu_1_1Object.html">Object</a> *target, GtkUIManager *UIManager, <a class="code" href="classgcu_1_1Object.html">Object</a> *object, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
<a name="l00106"></a>00106 
<a name="l00119"></a><a class="code" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">00119</a> <span class="keyword">enum</span> <a class="code" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a>
<a name="l00120"></a>00120 {
<a name="l00121"></a>00121         RuleMayContain,
<a name="l00122"></a>00122         RuleMustContain,
<a name="l00123"></a>00123         RuleMayBeIn,
<a name="l00124"></a>00124         RuleMustBeIn
<a name="l00125"></a>00125 };
<a name="l00126"></a>00126 
<a name="l00131"></a><a class="code" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">00131</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <a class="code" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a>;
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 <span class="keyword">class </span><a class="code" href="classgcu_1_1Document.html">Document</a>;
<a name="l00134"></a>00134 
<a name="l00138"></a><a class="code" href="classgcu_1_1Object.html">00138</a> <span class="keyword">class </span><a class="code" href="classgcu_1_1Object.html">Object</a>
<a name="l00139"></a>00139 {
<a name="l00140"></a>00140 <span class="keyword">public</span>:
<a name="l00144"></a>00144         <a class="code" href="classgcu_1_1Object.html#a6f15e766fdfb066008bd4b0779574549">Object</a> (<a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id = OtherType);
<a name="l00148"></a>00148         <span class="keyword">virtual</span> <a class="code" href="classgcu_1_1Object.html#a3e575300e517594b0c2c161d6e704352">~Object</a> ();
<a name="l00149"></a>00149         
<a name="l00154"></a><a class="code" href="classgcu_1_1Object.html#a9c900a7a382cad4a995edbb10b8f179d">00154</a>         <a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> <a class="code" href="classgcu_1_1Object.html#a9c900a7a382cad4a995edbb10b8f179d">GetType</a> ()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_Type;}
<a name="l00160"></a>00160         <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#ac45cdb13cf013066a3704054c9d06ed0">SetId</a> (gchar <span class="keyword">const</span> *Id);
<a name="l00164"></a><a class="code" href="classgcu_1_1Object.html#aa5442c94fdeb2a71e0e3e1f2250f28dc">00164</a>         gchar <span class="keyword">const</span> *<a class="code" href="classgcu_1_1Object.html#aa5442c94fdeb2a71e0e3e1f2250f28dc">GetId</a> ()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_Id;}
<a name="l00171"></a>00171         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#ad054f1ae4f0cd697765aa4d2007521b2">AddChild</a> (<a class="code" href="classgcu_1_1Object.html">Object</a>* <span class="keywordtype">object</span>);
<a name="l00179"></a>00179         <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#adf610a8402000e9f9ae9ad0135c1d7da">GetMolecule</a> () <span class="keyword">const</span>;
<a name="l00186"></a>00186         <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#adaba7d20336b8036b6bfb7ef3884880a">GetReaction</a> () <span class="keyword">const</span>;
<a name="l00194"></a>00194         <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#a841968632d00e5d879694ee84737225b">GetGroup</a> () <span class="keyword">const</span>;
<a name="l00201"></a>00201         <a class="code" href="classgcu_1_1Document.html">Document</a>* <a class="code" href="classgcu_1_1Object.html#a274432165e22fa89a375eded192631db">GetDocument</a> () <span class="keyword">const</span>;
<a name="l00211"></a>00211         <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#a158be0361aaadca1d03fdb5b5d3089b2">GetParentOfType</a> (<a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id) <span class="keyword">const</span>;
<a name="l00218"></a>00218         <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#a026b22b02b09f8f9f535197f2d936c07">GetChild</a> (<span class="keyword">const</span> gchar* Id) <span class="keyword">const</span>;
<a name="l00225"></a>00225         <a class="code" href="classgcu_1_1Object.html">Object</a> *<a class="code" href="classgcu_1_1Object.html#a5fe8cfbfe83645c292f8895aba4a91d0">GetFirstChild</a> (std::map&lt;std::string, Object*&gt;::iterator&amp; i);
<a name="l00226"></a>00226         <a class="code" href="classgcu_1_1Object.html">Object</a> <span class="keyword">const</span> *<a class="code" href="classgcu_1_1Object.html#a5fe8cfbfe83645c292f8895aba4a91d0">GetFirstChild</a> (std::map&lt;std::string, Object*&gt;::const_iterator&amp; i) <span class="keyword">const</span>;
<a name="l00233"></a>00233         <a class="code" href="classgcu_1_1Object.html">Object</a> *<a class="code" href="classgcu_1_1Object.html#a70ff8a33f72e424f3c39b3d0edbe9903">GetNextChild</a> (std::map&lt;std::string, Object*&gt;::iterator&amp; i);
<a name="l00234"></a>00234         <a class="code" href="classgcu_1_1Object.html">Object</a> <span class="keyword">const</span> *<a class="code" href="classgcu_1_1Object.html#a70ff8a33f72e424f3c39b3d0edbe9903">GetNextChild</a> (std::map&lt;std::string, Object*&gt;::const_iterator&amp; i) <span class="keyword">const</span>;
<a name="l00241"></a>00241         <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#a361a06781c6a927f6aaa1e4e575ae9dd">GetDescendant</a> (<span class="keyword">const</span> gchar* Id) <span class="keyword">const</span>;
<a name="l00245"></a><a class="code" href="classgcu_1_1Object.html#abacb2c2002726a3237ffbd0e50e3df52">00245</a>         <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#abacb2c2002726a3237ffbd0e50e3df52">GetParent</a> ()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_Parent;};
<a name="l00252"></a>00252         <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a0ffe1f48151c92f167eeec303277e45c">SetParent</a> (<a class="code" href="classgcu_1_1Object.html">Object</a>* Parent);
<a name="l00261"></a>00261         <span class="keyword">virtual</span> xmlNodePtr <a class="code" href="classgcu_1_1Object.html#aad462441e79fbd93e158f8294a198d11">Save</a> (xmlDocPtr xml) <span class="keyword">const</span>;
<a name="l00278"></a>00278         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgcu_1_1Object.html#aa3ee33c25154d8e7bbe1e39de970c489">Load</a> (xmlNodePtr node);
<a name="l00287"></a>00287         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#af5505430c421604ff7e26e4414197fbc">Move</a> (<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z = 0.);
<a name="l00298"></a>00298         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a69ad6edf7d50950b036f09d9ff86f849">Transform2D</a> (<a class="code" href="classgcu_1_1Matrix2D.html">Matrix2D</a>&amp; m, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
<a name="l00307"></a>00307         <span class="keywordtype">bool</span> <a class="code" href="classgcu_1_1Object.html#a07de41cb137a650b51920d6186fc82d7">SaveChildren</a> (xmlDocPtr xml, xmlNodePtr node) <span class="keyword">const</span>;
<a name="l00313"></a>00313         <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a5f99b290d7e48c38738342dfc984865d">SaveId</a> (xmlNodePtr node) <span class="keyword">const</span>;
<a name="l00324"></a>00324         xmlNodePtr <a class="code" href="classgcu_1_1Object.html#ad533d866f1478a972a1896499e5659a5">GetNodeByProp</a> (xmlNodePtr node, <span class="keywordtype">char</span> <span class="keyword">const</span> *Property, <span class="keywordtype">char</span> <span class="keyword">const</span> *Id);
<a name="l00334"></a>00334         xmlNodePtr <a class="code" href="classgcu_1_1Object.html#aa19f11cca83189a955f0a7bf2919562b">GetNextNodeByProp</a> (xmlNodePtr node, <span class="keywordtype">char</span> <span class="keyword">const</span> *Property, <span class="keywordtype">char</span> <span class="keyword">const</span> *Id);
<a name="l00344"></a>00344         xmlNodePtr <a class="code" href="classgcu_1_1Object.html#a4e8712098d673c958fb0c72488058f80">GetNodeByName</a> (xmlNodePtr node, <span class="keywordtype">char</span> <span class="keyword">const</span> *Name);
<a name="l00353"></a>00353         xmlNodePtr <a class="code" href="classgcu_1_1Object.html#a2dc10bf48d3ebfe86853cace21e9abf2">GetNextNodeByName</a> (xmlNodePtr node, <span class="keywordtype">char</span> <span class="keyword">const</span> *Name);
<a name="l00360"></a>00360         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#afcd1e6f8bc15be563bd33429757d9d21">Add</a> (GtkWidget* w) <span class="keyword">const</span>;
<a name="l00367"></a>00367         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#af2fffc10644e8cb8a18da68c8e18e24c">Update</a> (GtkWidget* w) <span class="keyword">const</span>;
<a name="l00375"></a>00375         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a9a751a51b887de4a4035ff1927c2aede">SetSelected</a> (GtkWidget* w, <span class="keywordtype">int</span> state);
<a name="l00379"></a><a class="code" href="classgcu_1_1Object.html#a28f682a2891b17ae57c5f346c95d6f50">00379</a>         <span class="keywordtype">bool</span> <a class="code" href="classgcu_1_1Object.html#a28f682a2891b17ae57c5f346c95d6f50">HasChildren</a> ()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_Children.size () != 0;}
<a name="l00380"></a>00380 
<a name="l00384"></a><a class="code" href="classgcu_1_1Object.html#a5e3d6fbdc8b10a9dbf43de2c052fff05">00384</a>         <span class="keywordtype">unsigned</span> <a class="code" href="classgcu_1_1Object.html#a5e3d6fbdc8b10a9dbf43de2c052fff05">GetChildrenNumber</a> ()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_Children.size ();}
<a name="l00385"></a>00385 
<a name="l00394"></a>00394         <span class="keyword">virtual</span> <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#aa47c38061c6a2e51947d89c86fbae630">GetAtomAt</a> (<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z = 0.);
<a name="l00395"></a>00395 
<a name="l00402"></a>00402         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgcu_1_1Object.html#ae43451845b5d92a6b6618b1a63cd2056">Build</a> (std::list&lt;Object*&gt;&amp; Children) <span class="keywordflow">throw</span> (std::invalid_argument);
<a name="l00403"></a>00403 
<a name="l00409"></a>00409         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgcu_1_1Object.html#aedeec6e6b66e1a35e6d2f3ef75c94a09">GetYAlign</a> ();
<a name="l00410"></a>00410 
<a name="l00424"></a>00424         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgcu_1_1Object.html#a6970989309647db7986c1bb2bcee8600">BuildContextualMenu</a> (GtkUIManager *UIManager, <a class="code" href="classgcu_1_1Object.html">Object</a> *<span class="keywordtype">object</span>, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
<a name="l00425"></a>00425 
<a name="l00432"></a>00432         <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#acf16b429a6875e5620fa8051446ef34c">EmitSignal</a> (<a class="code" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a> Signal);
<a name="l00433"></a>00433 
<a name="l00443"></a>00443         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgcu_1_1Object.html#a1ad183ecf7e5b5c42db100da03221e46">OnSignal</a> (<a class="code" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a> Signal, <a class="code" href="classgcu_1_1Object.html">Object</a> *Child);
<a name="l00444"></a>00444 
<a name="l00452"></a>00452         <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a8b4da97be50a4ceea941ab8aa8ece825">Lock</a> (<span class="keywordtype">bool</span> state = <span class="keyword">true</span>);
<a name="l00453"></a>00453 
<a name="l00460"></a><a class="code" href="classgcu_1_1Object.html#a4094e3d8cf58a6f9de9cb6c6b6fed8c8">00460</a>         <span class="keywordtype">bool</span> <a class="code" href="classgcu_1_1Object.html#a4094e3d8cf58a6f9de9cb6c6b6fed8c8">IsLocked</a> () {<span class="keywordflow">return</span> m_Locked &gt; 0;}
<a name="l00461"></a>00461 
<a name="l00469"></a>00469         <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#a79e87eb91afb57ebf188fdc3753cba7d">GetFirstLink</a> (std::set&lt;Object*&gt;::iterator&amp; i);
<a name="l00470"></a>00470 
<a name="l00477"></a>00477         <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#a61b227220c2b831b7196d2bd61201bdc">GetNextLink</a> (std::set&lt;Object*&gt;::iterator&amp; i);
<a name="l00478"></a>00478 
<a name="l00484"></a>00484         <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a606a257c41cd9cc177c98958fdf2ae3d">Unlink</a> (<a class="code" href="classgcu_1_1Object.html">Object</a> *<span class="keywordtype">object</span>);
<a name="l00485"></a>00485 
<a name="l00492"></a>00492         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a786610ff1992e4aa1acff883b5479ec7">OnUnlink</a> (<a class="code" href="classgcu_1_1Object.html">Object</a> *<span class="keywordtype">object</span>);
<a name="l00493"></a>00493 
<a name="l00499"></a>00499         <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a97106b6ec695ac946d0a1d04293eef79">GetPossibleAncestorTypes</a> (std::set&lt;TypeId&gt;&amp; types) <span class="keyword">const</span>;
<a name="l00500"></a>00500 
<a name="l00510"></a>00510         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgcu_1_1Object.html#a47862fe83b1c3739ee37b8af81550644">SetProperty</a> (<span class="keywordtype">unsigned</span> property, <span class="keywordtype">char</span> <span class="keyword">const</span> *value);
<a name="l00511"></a>00511 
<a name="l00518"></a>00518         <span class="keyword">virtual</span> std::string <a class="code" href="classgcu_1_1Object.html#a9f612121600c791abbee16bb539975d7">GetProperty</a> (<span class="keywordtype">unsigned</span> property) <span class="keyword">const</span>;
<a name="l00519"></a>00519 
<a name="l00523"></a>00523         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#af972c30c9990923c34c54754654c3e72">OnLoaded</a> ();
<a name="l00524"></a>00524         
<a name="l00529"></a>00529         <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a01ea0147ad675e139ddea7aaa2af503c">SetDirty</a> (<span class="keywordtype">bool</span> dirty = <span class="keyword">true</span>);
<a name="l00530"></a>00530 
<a name="l00540"></a>00540         <span class="keyword">static</span> <a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> <a class="code" href="classgcu_1_1Object.html#aea6734ca6bde8ae3e0788db43928f42e">AddType</a> (std::string TypeName, <a class="code" href="classgcu_1_1Object.html">Object</a>* (*CreateFunc) (), <a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> <span class="keywordtype">id</span> = OtherType);
<a name="l00541"></a>00541 
<a name="l00552"></a>00552         <span class="keyword">static</span> <a class="code" href="classgcu_1_1Object.html">Object</a>* <a class="code" href="classgcu_1_1Object.html#a0d3837f66eccae5ce73573ca95930dbc">CreateObject</a> (<span class="keyword">const</span> std::string&amp; TypeName, <a class="code" href="classgcu_1_1Object.html">Object</a>* parent = NULL);
<a name="l00553"></a>00553 
<a name="l00559"></a>00559         <span class="keyword">static</span> <a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> <a class="code" href="classgcu_1_1Object.html#a6038f7f7c0f58cd1aa12bd8237ac1024">GetTypeId</a> (<span class="keyword">const</span> std::string&amp; Name);
<a name="l00560"></a>00560 
<a name="l00566"></a>00566         <span class="keyword">static</span> std::string <a class="code" href="classgcu_1_1Object.html#a9e57005d5129e341ce3dcd4d3c188eaf">GetTypeName</a> (<a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id);
<a name="l00567"></a>00567 
<a name="l00574"></a>00574         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a47d2dd181c9934ab4671c526a251295f">AddMenuCallback</a> (<a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id, <a class="code" href="namespacegcu.html#a557c44b0c90f4543aae6f9b1a9b00616">BuildMenuCb</a> cb);
<a name="l00575"></a>00575 
<a name="l00583"></a>00583         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a3eb4fd4787f224f5e7e3e5f8d1fc2abb">AddRule</a> (<a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> type1, <a class="code" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a> rule, <a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> type2);
<a name="l00584"></a>00584 
<a name="l00592"></a>00592         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a3eb4fd4787f224f5e7e3e5f8d1fc2abb">AddRule</a> (<span class="keyword">const</span> std::string&amp; type1, <a class="code" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a> rule, <span class="keyword">const</span> std::string&amp; type2);
<a name="l00593"></a>00593 
<a name="l00600"></a>00600         <span class="keyword">static</span>  <span class="keyword">const</span> std::set&lt;TypeId&gt;&amp; <a class="code" href="classgcu_1_1Object.html#a96a3ea77a33f4721399f00e6b341cde2">GetRules</a> (<a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> type, <a class="code" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a> rule);
<a name="l00601"></a>00601 
<a name="l00608"></a>00608         <span class="keyword">static</span> <span class="keyword">const</span> std::set&lt;TypeId&gt;&amp; <a class="code" href="classgcu_1_1Object.html#a96a3ea77a33f4721399f00e6b341cde2">GetRules</a> (<span class="keyword">const</span> std::string&amp; type, <a class="code" href="namespacegcu.html#a19c49d12e7c0a96ae2be6c6c33c44b47">RuleId</a> rule);
<a name="l00609"></a>00609 
<a name="l00617"></a>00617         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgcu_1_1Object.html#a8159c48a642f3410913e635e23d77f24">SetCreationLabel</a> (<a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id, std::string Label);
<a name="l00618"></a>00618 
<a name="l00624"></a>00624         <span class="keyword">static</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="classgcu_1_1Object.html#a90c6d068fdbea8cffe8690f177b5c939">GetCreationLabel</a> (<a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> Id);
<a name="l00625"></a>00625 
<a name="l00631"></a>00631         <span class="keyword">static</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="classgcu_1_1Object.html#a90c6d068fdbea8cffe8690f177b5c939">GetCreationLabel</a> (<span class="keyword">const</span> std::string&amp; TypeName);
<a name="l00632"></a>00632 
<a name="l00636"></a>00636         <span class="keyword">static</span> <a class="code" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">SignalId</a> <a class="code" href="classgcu_1_1Object.html#a380275771a250b94785e43286525c74e">CreateNewSignalId</a> ();
<a name="l00637"></a>00637 
<a name="l00638"></a>00638 <span class="keyword">private</span>:
<a name="l00639"></a>00639         <a class="code" href="classgcu_1_1Object.html">Object</a>* RealGetDescendant (<span class="keyword">const</span> gchar* Id) <span class="keyword">const</span>;
<a name="l00640"></a>00640 
<a name="l00641"></a>00641 <span class="keyword">private</span>:
<a name="l00642"></a>00642         gchar* m_Id;
<a name="l00643"></a>00643         <a class="code" href="namespacegcu.html#a4a6abffbefdd6abf047dca4e63b0bac5">TypeId</a> m_Type;
<a name="l00644"></a>00644         <a class="code" href="classgcu_1_1Object.html">Object</a> *m_Parent;
<a name="l00645"></a>00645         std::map&lt;std::string, Object*&gt; m_Children; <span class="comment">//string is Id of object, so each object must have an Id</span>
<a name="l00646"></a>00646         std::set&lt;Object*&gt; m_Links; <span class="comment">//objects linked to this but outside of the hierarchy</span>
<a name="l00647"></a>00647 
<a name="l00648"></a>00648 <span class="keyword">private</span>:
<a name="l00652"></a>00652         <span class="keywordtype">int</span> m_Locked;
<a name="l00653"></a>00653 
<a name="l00658"></a><a class="code" href="classgcu_1_1Object.html#adc268971d60003c8b03570b657ea22dd">00658</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">bool</span>, Dirty);
<a name="l00659"></a>00659 };
<a name="l00660"></a>00660 
<a name="l00661"></a>00661 }
<a name="l00662"></a>00662 <span class="preprocessor">#endif //GCU_OBJECT_H</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:53 2009 for The Gnome Chemistry Utils by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>