Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 1506

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</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_bd46360b4c6a7cd846adf95fa79d46e4.html">python</a>
  </div>
</div>
<div class="contents">
<h1>ObserverWrap.h</h1><a href="ObserverWrap_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="l00014"></a>00014 <span class="preprocessor">#ifndef ObserverWrap_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define ObserverWrap_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="Observer_8h.html" title="Observer class interface.">pattern/Observer.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="keyword">namespace </span>hippodraw {
<a name="l00020"></a>00020 
<a name="l00029"></a><a class="code" href="classhippodraw_1_1ObserverWrap.html">00029</a> <span class="keyword">class </span><a class="code" href="classhippodraw_1_1ObserverWrap.html" title="A wrapper class for Observer to allow its pure virtual function to be implemented...">ObserverWrap</a> : <span class="keyword">public</span> hippodraw::<a class="code" href="classhippodraw_1_1Observer.html" title="Part of an implementation of the Observable Observer pattern based on the example...">Observer</a>,
<a name="l00030"></a>00030                      <span class="keyword">public</span> boost::python::<a class="code" href="classboost_1_1python_1_1wrapper.html">wrapper</a> &lt; hippodraw::Observer &gt;
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032 <span class="keyword">private</span>:
<a name="l00033"></a>00033 
<a name="l00036"></a><a class="code" href="classhippodraw_1_1ObserverWrap.html#a931e04f416b41144ed7eab6cb9326d2a">00036</a>   PyObject * <a class="code" href="classhippodraw_1_1ObserverWrap.html#a931e04f416b41144ed7eab6cb9326d2a" title="The held Python object.">m_self</a>;
<a name="l00037"></a>00037 
<a name="l00040"></a>00040   <span class="keyword">template</span> &lt; <span class="keyword">class</span> T &gt;
<a name="l00041"></a>00041   boost::python::object <a class="code" href="classhippodraw_1_1ObserverWrap.html#a6890ec978e2c0d41a8b9e205a5798195" title="Find the Python object that owns this object.">get_owner</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a21f40778b7db9343a6ca75ec2c41ccce" title="title">T</a> * me ) <span class="keyword">const</span>;
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00044"></a>00044 
<a name="l00047"></a>00047   <a class="code" href="classhippodraw_1_1ObserverWrap.html#a98975d353df86cc5c0cae9c13d3e7c1c">ObserverWrap</a> ( PyObject * <span class="keyword">self</span> );
<a name="l00048"></a>00048 
<a name="l00049"></a>00049    <a class="code" href="classhippodraw_1_1ObserverWrap.html#a98975d353df86cc5c0cae9c13d3e7c1c">ObserverWrap</a>();
<a name="l00050"></a>00050    <a class="code" href="classhippodraw_1_1ObserverWrap.html#a98975d353df86cc5c0cae9c13d3e7c1c">ObserverWrap</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Observer.html" title="Part of an implementation of the Observable Observer pattern based on the example...">Observer</a> &amp; );
<a name="l00051"></a>00051 
<a name="l00052"></a>00052   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1ObserverWrap.html#ae6b85d8f95c1889865463b18e33d08a5">update</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Observable.html" title="Part of an implementation of the Observable-Observer pattern based on the example...">Observable</a> * );
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 };
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 } <span class="comment">// namespace hippodraw</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#endif // ObserverWrap_H</span>
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>