ewol/_object_8hpp_source.html

187 lines
58 KiB
HTML

<!-- HTML header for doxygen 1.8.8-->
<!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="X-UA-Compatible" content="IE=edge">
<!-- For Mobile Devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<title>Ewol: Ewol Widget in OpenGl: framework/atria-soft/ewol/ewol/object/Object.hpp Source File</title>
<!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="doxy-boot.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand">Ewol: Ewol Widget in OpenGl 0.10.0</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Main&nbsp;Page</a></li>
<li><a href="pages.html">Related&nbsp;Pages</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="annotated.html">Classes</a></li>
<li><a href="files.html">Files</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Link-libs<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="http://HeeroYui.github.io/lutin">lutin</a></li>
<li><a href="http://atria-soft.github.io/ewol">ewol</a></li>
<li><a href="http://atria-soft.github.io/echrono">echrono</a></li>
<li><a href="http://atria-soft.github.io/etk">etk</a></li>
<li><a href="http://atria-soft.github.io/ejson">ejson</a></li>
<li><a href="http://atria-soft.github.io/exml">exml</a></li>
<li><a href="http://atria-soft.github.io/esvg">esvg</a></li>
<li><a href="http://atria-soft.github.io/egami">egami</a></li>
<li><a href="http://atria-soft.github.io/gale">gale</a></li>
<li><a href="http://atria-soft.github.io/ege">ege</a></li>
<li><a href="http://atria-soft.github.io/elog">elog</a></li>
<li><a href="http://atria-soft.github.io/ememory">ememory</a></li>
<li><a href="http://atria-soft.github.io/enet">enet</a></li>
<li><a href="http://atria-soft.github.io/eproperty">eproperty</a></li>
<li><a href="http://atria-soft.github.io/esignal">esignal</a></li>
<li><a href="http://atria-soft.github.io/etranslate">etranslate</a></li>
<li><a href="http://atria-soft.github.io/zeus">zeus</a></li>
<li><a href="http://musicdsp.github.io/audio-ess">audio-ess</a></li>
<li><a href="http://musicdsp.github.io/audio">audio</a></li>
<li><a href="http://musicdsp.github.io/audio-drain">audio-drain</a></li>
<li><a href="http://musicdsp.github.io/audio-orchestra">audio-orchestra</a></li>
<li><a href="http://musicdsp.github.io/audio-river">audio-river</a></li>
</ul>
</li>
</ul>
<div id="search-box" class="input-group">
<div class="input-group-btn">
<button aria-expanded="false" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-search"></span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">All</a></li>
<li><a href="#">Classes</a></li>
<li><a href="#">Namespaces</a></li>
<li><a href="#">Files</a></li>
<li><a href="#">Functions</a></li>
<li><a href="#">Variables</a></li>
<li><a href="#">Typedefs</a></li>
<li><a href="#">Enumerations</a></li>
<li><a href="#">Enumerator</a></li>
<li><a href="#">Friends</a></li>
<li><a href="#">Macros</a></li>
<li><a href="#">Pages</a></li>
</ul>
</div>
<button id="search-close" type="button" class="close" aria-label="Close">
<span aria-hidden="true"></span>
</button>
<input id="search-field" class="form-control" accesskey="S" onkeydown="searchBox.OnSearchFieldChange(event);" placeholder="Search ..." type="text">
</div>
</div><!--/.nav-collapse -->
</div>
</nav>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div class="content" id="content">
<div class="container">
<div class="row">
<div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;">
<div style="margin-bottom: 15px;margin-top: 60px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_644e041c3a6521da7b27eba0e4eb2b95.html">framework</a></li><li class="navelem"><a class="el" href="dir_a094892b17be858f66bf3446bbb755c7.html">atria-soft</a></li><li class="navelem"><a class="el" href="dir_90b06c1c445cb1731bd6346c36eb6f0c.html">ewol</a></li><li class="navelem"><a class="el" href="dir_b91da374a1ab60ee2d83a750c3a335b8.html">ewol</a></li><li class="navelem"><a class="el" href="dir_fcf36d412ab939c2d70263a61f1fe9e3.html">object</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Object.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_object_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/types__8hpp.html">etk/types.hpp</a>&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/exml.tag:http://atria-soft.github.io/exml/" href="http://atria-soft.github.io/exml/exml__8hpp.html">exml/exml.hpp</a>&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;mutex&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/memory__8hpp.html">ememory/memory.hpp</a>&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &lt;ewol/debug.hpp&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/memory__8hpp.html">ememory/memory.hpp</a>&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/__interface__8hpp.html">eproperty/Interface.hpp</a>&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/__value__8hpp.html">eproperty/Value.hpp</a>&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/__range__8hpp.html">eproperty/Range.hpp</a>&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/__list__8hpp.html">eproperty/List.hpp</a>&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;esignal/Interface.hpp&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceewol.html">ewol</a> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="comment">// some class need to define element befor other ...</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <span class="keyword">class </span>Object;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <span class="keyword">namespace </span><a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ejson.tag:http://atria-soft.github.io/ejson/" href="http://atria-soft.github.io/ejson/namespaceejson.html#a6a37b3ae20a2b7bc207b268ab1439709aa8cfde6331bd59eb2ac96f8911c4b666">object</a> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keyword">class </span>Manager;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; }</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">class </span>Context;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;}</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> TYPE_OBJECT&gt; <span class="keyword">static</span> <span class="keywordtype">void</span> baseInit(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;TYPE_OBJECT&gt;</a>&amp; _object) {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="comment">// end of recurtion</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;}</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class </span>TYPE_OBJECT, <span class="keyword">class </span>TYPE_VAL, <span class="keyword">class </span>... TYPE&gt; <span class="keyword">static</span> <span class="keywordtype">void</span> baseInit(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;TYPE_OBJECT&gt;</a>&amp; _object, <span class="keyword">const</span> std::string&amp; _name, <span class="keyword">const</span> TYPE_VAL&amp; _val, TYPE&amp;&amp; ... _all ) {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_property.html">eproperty::Property</a>* prop(<span class="keyword">nullptr</span>);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_property_type.html">eproperty::PropertyType&lt;TYPE_VAL&gt;</a>* propType(<span class="keyword">nullptr</span>);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordflow">if</span> (_object == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; EWOL_ERROR(<span class="stringliteral">&quot;EMPTY pointer&quot;</span>);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; prop = _object-&gt;properties.getRaw(_name);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">if</span> (prop == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; EWOL_ERROR(<span class="stringliteral">&quot;property does not exit ... &#39;&quot;</span> &lt;&lt; _name &lt;&lt; <span class="stringliteral">&quot;&#39;&quot;</span>);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordflow">goto</span> exit_on_error;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; propType = <span class="keyword">dynamic_cast&lt;</span><a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_property_type.html">eproperty::PropertyType&lt;TYPE_VAL&gt;</a>*<span class="keyword">&gt;</span>(prop);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">if</span> (propType == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; EWOL_ERROR(<span class="stringliteral">&quot;property does not cast in requested type ... &#39;&quot;</span> &lt;&lt; _name &lt;&lt; <span class="stringliteral">&quot;&#39; require type : &quot;</span> &lt;&lt; <span class="keyword">typeid</span>(_val).name() &lt;&lt; <span class="stringliteral">&quot;&#39; instead of &#39;&quot;</span> &lt;&lt; prop-&gt;getType() &lt;&lt; <span class="stringliteral">&quot;&#39;&quot;</span>);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordflow">goto</span> exit_on_error;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; }</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; propType-&gt;<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_property_type.html#a2c4b08567fbe614032f82ba8ed15cfc0">setDirectCheck</a>(_val);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;exit_on_error:</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; baseInit(_object, std::forward&lt;TYPE&gt;(_all)... );</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;}</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="preprocessor">#define UN_DECLARE_FACTORY(className) \</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="preprocessor"> template&lt;class ... EWOL_FACTORY_CREATE_TYPE&gt; static ememory::SharedPtr&lt;className&gt; create(const EWOL_FACTORY_CREATE_TYPE&amp; ... _all) = delete;</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="preprocessor">#define DECLARE_FACTORY(className) \</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor"> template&lt;class ... EWOL_FACTORY_CREATE_TYPE&gt; static ememory::SharedPtr&lt;className&gt; create(const EWOL_FACTORY_CREATE_TYPE&amp; ... _all) { \</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="preprocessor"> ememory::SharedPtr&lt;className&gt; object(new className()); \</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="preprocessor"> if (object == nullptr) { \</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="preprocessor"> EWOL_ERROR(&quot;Factory error&quot;); \</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor"> return nullptr; \</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="preprocessor"> baseInit(object, _all... ); \</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="preprocessor"> object-&gt;init(); \</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="preprocessor"> if (object-&gt;objectHasBeenCorectlyInit() == false) { \</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="preprocessor"> EWOL_CRITICAL(&quot;Object Is not correctly init : &quot; &lt;&lt; #className ); \</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="preprocessor"> return object; \</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="preprocessor"> }</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="preprocessor">#define DECLARE_SINGLE_FACTORY(className, uniqueName) \</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="preprocessor"> template&lt;class ... EWOL_FACTORY_CREATE_TYPE&gt; static ememory::SharedPtr&lt;className&gt; create(const EWOL_FACTORY_CREATE_TYPE&amp; ... _all) { \</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="preprocessor"> ememory::SharedPtr&lt;className&gt; object; \</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="preprocessor"> ememory::SharedPtr&lt;ewol::Object&gt; object2 = getObjectNamed(uniqueName); \</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="preprocessor"> if (object2 != nullptr) { \</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="preprocessor"> object = ememory::dynamicPointerCast&lt;className&gt;(object2); \</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="preprocessor"> if (object == nullptr) { \</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="preprocessor"> EWOL_CRITICAL(&quot;Request object element: &#39;&quot; &lt;&lt; uniqueName &lt;&lt; &quot;&#39; With the wrong type (dynamic cast error)&quot;); \</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="preprocessor"> return nullptr; \</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;<span class="preprocessor"> if (object != nullptr) { \</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="preprocessor"> return object; \</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<span class="preprocessor"> object = ememory::SharedPtr&lt;className&gt;(new className()); \</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;<span class="preprocessor"> if (object == nullptr) { \</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;<span class="preprocessor"> EWOL_ERROR(&quot;Factory error&quot;); \</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="preprocessor"> return nullptr; \</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="preprocessor"> baseInit(object, &quot;name&quot;, std::string(uniqueName), _all... ); \</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="preprocessor"> object-&gt;init(); \</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="preprocessor"> if (object-&gt;objectHasBeenCorectlyInit() == false) { \</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="preprocessor"> EWOL_CRITICAL(&quot;Object Is not correctly init : &quot; &lt;&lt; #className ); \</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;<span class="preprocessor"> return object; \</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;<span class="preprocessor"> }</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceewol.html">ewol</a> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keyword">using</span> ObjectShared = <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr&lt;ewol::Object&gt;</a>;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">using</span> ObjectWeak = <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_weak_ptr.html">ememory::WeakPtr&lt;ewol::Object&gt;</a>;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classewol_1_1_object.html"> 113</a></span>&#160; <span class="keyword">class </span><a class="code" href="classewol_1_1_object.html">Object</a> : <span class="keyword">public</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_enable_shared_from_this.html">ememory::EnableSharedFromThis</a>&lt;Object&gt;,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keyword">public</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_interface.html">eproperty::Interface</a>,</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keyword">public</span> esignal::Interface {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keyword">public</span>: <span class="comment">// Event list</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keyword">public</span>: <span class="comment">// propertie list</span></div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classewol_1_1_object.html#a61eacd4d36c9cb0d108c2dbcddbdd4dc"> 119</a></span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/eproperty.tag:http://atria-soft.github.io/eproperty/" href="http://atria-soft.github.io/eproperty/classeproperty_1_1_value.html">eproperty::Value&lt;std::string&gt;</a> <a class="code" href="classewol_1_1_object.html#a61eacd4d36c9cb0d108c2dbcddbdd4dc">propertyName</a>; </div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keyword">static</span> <span class="keywordtype">size_t</span> m_valUID; </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordtype">bool</span> m_objectHasBeenInit; </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="code" href="classewol_1_1_object.html">Object</a>();</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/elog.tag:http://atria-soft.github.io/elog/" href="http://atria-soft.github.io/elog/namespaceelog.html#a1005ac82c94e09b499d29b70a98cd5cc">init</a>();</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; DECLARE_FACTORY(<a class="code" href="classewol_1_1_object.html">Object</a>);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classewol_1_1_object.html">Object</a>();</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keywordtype">bool</span> objectHasBeenCorectlyInit();</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classewol_1_1_object.html#af5d9d58564361ac08f9ba0a2e0088453"> 141</a></span>&#160; <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_weak_ptr.html">ewol::ObjectWeak</a> <a class="code" href="classewol_1_1_object.html#af5d9d58564361ac08f9ba0a2e0088453">m_parent</a>; </div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classewol_1_1_object.html#a150c7fe8e694669eb0dfda64b87967cb"> 142</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classewol_1_1_object.html#a150c7fe8e694669eb0dfda64b87967cb">m_destroy</a>; </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> autoDestroy();</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> destroy();</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordtype">bool</span> isDestroyed() <span class="keyword">const</span>;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> requestDestroyFromChild(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ewol::ObjectShared</a>&amp; _child);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> setParent(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ewol::ObjectShared</a>&amp; _newParent);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeParent();</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; std::vector&lt;const char*&gt; m_listType;</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> getObjectType() <span class="keyword">const</span>;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; std::string getTypeDescription() <span class="keyword">const</span>;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keywordtype">bool</span> isTypeCompatible(<span class="keyword">const</span> std::string&amp; _type) <span class="keyword">const</span>;</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <span class="keywordtype">void</span> addObjectType(<span class="keyword">const</span> <span class="keywordtype">char</span>* _type);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="classewol_1_1_object.html#a8493e9ec34866cf31e8fd77b375d8c2c"> 201</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classewol_1_1_object.html#a8493e9ec34866cf31e8fd77b375d8c2c">m_static</a>; </div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classewol_1_1_object.html#aaaf5281d3ae2e88db8ae3d72a245fce6"> 207</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classewol_1_1_object.html#aaaf5281d3ae2e88db8ae3d72a245fce6">getStatic</a>(){</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <span class="keywordflow">return</span> m_static;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; };</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; int32_t m_uniqueId; </div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classewol_1_1_object.html#ae11b9bed4b94f3edbb724c8b416a90d4"> 217</a></span>&#160; int32_t <a class="code" href="classewol_1_1_object.html#ae11b9bed4b94f3edbb724c8b416a90d4">getId</a>(){</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="keywordflow">return</span> m_uniqueId;</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; };</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="comment">// TODO : Rework the position on this function ... This is a convignent function ...</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keywordtype">bool</span> propertySetOnWidgetNamed(<span class="keyword">const</span> std::string&amp; _objectName, <span class="keyword">const</span> std::string&amp; _config, <span class="keyword">const</span> std::string&amp; _value);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> loadXML(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/exml.tag:http://atria-soft.github.io/exml/" href="http://atria-soft.github.io/exml/classexml_1_1_element.html">exml::Element</a>&amp; _node);</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> storeXML(<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/exml.tag:http://atria-soft.github.io/exml/" href="http://atria-soft.github.io/exml/classexml_1_1_element.html">exml::Element</a>&amp; _node) <span class="keyword">const</span>;</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="keyword">static</span> <a class="code" href="classewol_1_1object_1_1_manager.html">ewol::object::Manager</a>&amp; getObjectManager();</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; <span class="keyword">static</span> <a class="code" href="classewol_1_1_context.html">ewol::Context</a>&amp; <a class="code" href="_context_8hpp.html#a32db0d1e16baf02f1edf72bebd3b90e0">getContext</a>();</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <span class="keywordtype">bool</span> m_isResource; </div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="classewol_1_1_object.html#a1294d60b65b7e1d5f9888e8b8c7d7514"> 257</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classewol_1_1_object.html#a1294d60b65b7e1d5f9888e8b8c7d7514">setStatusResource</a>(<span class="keywordtype">bool</span> _val) {</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; m_isResource = _val;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; }</div><div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="classewol_1_1_object.html#a2e3a6e219c10cc0c8e92f9ad19cd41d6"> 264</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classewol_1_1_object.html#a2e3a6e219c10cc0c8e92f9ad19cd41d6">getStatusResource</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; <span class="keywordflow">return</span> m_isResource;</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; }</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; <span class="keyword">static</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ewol::ObjectShared</a> getObjectNamed(<span class="keyword">const</span> std::string&amp; _objectName);</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; <span class="keyword">virtual</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ewol::ObjectShared</a> getSubObjectNamed(<span class="keyword">const</span> std::string&amp; _objectName);</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <span class="comment">// TODO : Create a template ...</span></div><div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="_object_8hpp.html#a1aaf59acc57a57503fd2b617b870bb6f"> 284</a></span>&#160;<span class="comment"></span><span class="preprocessor"> #define subBind(_type, _name, _event, _shared_ptr, _func, ...) do {\</span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160;<span class="preprocessor"> ememory::SharedPtr&lt;_type&gt; myObject = ememory::dynamicPointerCast&lt;_type&gt;(getSubObjectNamed(_name)); \</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160;<span class="preprocessor"> if (myObject != nullptr) { \</span></div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160;<span class="preprocessor"> myObject-&gt;_event.connect(_shared_ptr, _func, ##__VA_ARGS__); \</span></div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160;<span class="preprocessor"> } else { \</span></div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160;<span class="preprocessor"> EWOL_ERROR(&quot;object named=&#39;&quot; &lt;&lt; _name &lt;&lt; &quot;&#39; not exit or can not be cast in : &quot; &lt;&lt; #_type); \</span></div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160;<span class="preprocessor"> } while (false)</span></div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; <span class="comment">/*</span></div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160;<span class="comment"> template&lt;class TYPE&gt; void subBind(ememory::SharedPtr&lt;ewol::Object&gt; _obj, void (TYPE::*_func)()) {</span></div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;<span class="comment"> ememory::SharedPtr&lt;TYPE&gt; obj2 = ememory::dynamicPointerCast&lt;TYPE&gt;(_obj);</span></div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160;<span class="comment"> if (obj2 == nullptr) {</span></div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160;<span class="comment"> EWOL_ERROR(&quot;Can not connect signal ...&quot;);</span></div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160;<span class="comment"> return;</span></div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160;<span class="comment"> }</span></div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160;<span class="comment"> m_callerList.push_back(std::make_pair(ewol::ObjectWeak(_obj), std::connect(_func, obj2.get())));</span></div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160;<span class="comment"> }</span></div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; };</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; <span class="keywordtype">bool</span> propertySetOnObjectNamed(<span class="keyword">const</span> std::string&amp; _objectName, <span class="keyword">const</span> std::string&amp; _config, <span class="keyword">const</span> std::string&amp; _value);</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;};</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;</div><div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="_object_8hpp.html#ad4646d0f1bd621fd04deb70643d4d744"> 309</a></span>&#160;<span class="preprocessor">#define globalBind(_type, _name, _event, _obj, _func, ...) do {\</span></div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160;<span class="preprocessor"> ememory::SharedPtr&lt;_type&gt; myObject = ememory::dynamicPointerCast&lt;_type&gt;(ewol::getContext().getEObjectManager().getObjectNamed(_name)); \</span></div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160;<span class="preprocessor"> if (myObject != nullptr) { \</span></div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160;<span class="preprocessor"> myObject-&gt;_event.connect(_obj, _func, ##__VA_ARGS__); \</span></div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160;<span class="preprocessor"> } else { \</span></div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160;<span class="preprocessor"> EWOL_ERROR(&quot;object named=&#39;&quot; &lt;&lt; _name &lt;&lt; &quot;&#39; not exit or can not be cast in : &quot; &lt;&lt; #_type); \</span></div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160;<span class="preprocessor">} while (false)</span></div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160;</div><div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="_object_8hpp.html#a363fd5eb89ad097988e4eeaf01a314ad"> 321</a></span>&#160;<span class="preprocessor">#define externSubBind(_object, _type, _name, _event, _obj, _func, ...) do {\</span></div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160;<span class="preprocessor"> ememory::SharedPtr&lt;_type&gt; myObject = ememory::dynamicPointerCast&lt;_type&gt;(_object-&gt;getObjectNamed(_name)); \</span></div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160;<span class="preprocessor"> if (myObject != nullptr) { \</span></div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160;<span class="preprocessor"> myObject-&gt;_event.connect(_obj, _func, ##__VA_ARGS__); \</span></div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160;<span class="preprocessor"> } else { \</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160;<span class="preprocessor"> EWOL_ERROR(&quot;object named=&#39;&quot; &lt;&lt; _name &lt;&lt; &quot;&#39; not exit or can not be cast in : &quot; &lt;&lt; #_type); \</span></div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160;<span class="preprocessor">} while (false)</span></div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160;</div><div class="ttc" id="classememory_1_1_weak_ptr_html"><div class="ttname"><a href="http://atria-soft.github.io/ememory/classememory_1_1_weak_ptr.html">ememory::WeakPtr&lt; ewol::Object &gt;</a></div></div>
<div class="ttc" id="classeproperty_1_1_property_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/classeproperty_1_1_property.html">eproperty::Property</a></div></div>
<div class="ttc" id="classewol_1_1_object_html"><div class="ttname"><a href="classewol_1_1_object.html">ewol::Object</a></div><div class="ttdoc">Basic message classes for ewol system this class mermit at every Object to communicate between them...</div><div class="ttdef"><b>Definition:</b> Object.hpp:113</div></div>
<div class="ttc" id="types__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/types__8hpp.html">types.hpp</a></div></div>
<div class="ttc" id="classewol_1_1_object_html_a150c7fe8e694669eb0dfda64b87967cb"><div class="ttname"><a href="classewol_1_1_object.html#a150c7fe8e694669eb0dfda64b87967cb">ewol::Object::m_destroy</a></div><div class="ttdeci">bool m_destroy</div><div class="ttdoc">Flag to know if the object is requesting has destroy. </div><div class="ttdef"><b>Definition:</b> Object.hpp:142</div></div>
<div class="ttc" id="classewol_1_1_object_html_af5d9d58564361ac08f9ba0a2e0088453"><div class="ttname"><a href="classewol_1_1_object.html#af5d9d58564361ac08f9ba0a2e0088453">ewol::Object::m_parent</a></div><div class="ttdeci">ewol::ObjectWeak m_parent</div><div class="ttdoc">Reference on the current parrent. </div><div class="ttdef"><b>Definition:</b> Object.hpp:141</div></div>
<div class="ttc" id="__range__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/__range__8hpp.html">Range.hpp</a></div></div>
<div class="ttc" id="classememory_1_1_enable_shared_from_this_html"><div class="ttname"><a href="http://atria-soft.github.io/ememory/classememory_1_1_enable_shared_from_this.html">ememory::EnableSharedFromThis</a></div></div>
<div class="ttc" id="namespaceelog_html_a1005ac82c94e09b499d29b70a98cd5cc"><div class="ttname"><a href="http://atria-soft.github.io/elog/namespaceelog.html#a1005ac82c94e09b499d29b70a98cd5cc">init</a></div><div class="ttdeci">void init(int _argc, const char **_argv)</div></div>
<div class="ttc" id="namespaceewol_html"><div class="ttname"><a href="namespaceewol.html">ewol</a></div><div class="ttdef"><b>Definition:</b> Area.hpp:16</div></div>
<div class="ttc" id="classeproperty_1_1_property_type_html_a2c4b08567fbe614032f82ba8ed15cfc0"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/classeproperty_1_1_property_type.html#a2c4b08567fbe614032f82ba8ed15cfc0">eproperty::PropertyType::setDirectCheck</a></div><div class="ttdeci">virtual void setDirectCheck(const TYPE &amp;_newVal)</div></div>
<div class="ttc" id="classexml_1_1_element_html"><div class="ttname"><a href="http://atria-soft.github.io/exml/classexml_1_1_element.html">exml::Element</a></div></div>
<div class="ttc" id="classeproperty_1_1_property_type_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/classeproperty_1_1_property_type.html">eproperty::PropertyType</a></div></div>
<div class="ttc" id="exml__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/exml/exml__8hpp.html">exml.hpp</a></div></div>
<div class="ttc" id="classewol_1_1_object_html_a1294d60b65b7e1d5f9888e8b8c7d7514"><div class="ttname"><a href="classewol_1_1_object.html#a1294d60b65b7e1d5f9888e8b8c7d7514">ewol::Object::setStatusResource</a></div><div class="ttdeci">void setStatusResource(bool _val)</div><div class="ttdoc">Declare this element as a resource (or singleton) this mean the element will not be auto Remove at th...</div><div class="ttdef"><b>Definition:</b> Object.hpp:257</div></div>
<div class="ttc" id="classeproperty_1_1_interface_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/classeproperty_1_1_interface.html">eproperty::Interface</a></div></div>
<div class="ttc" id="__value__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/__value__8hpp.html">Value.hpp</a></div></div>
<div class="ttc" id="classememory_1_1_shared_ptr_html"><div class="ttname"><a href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr</a></div></div>
<div class="ttc" id="classewol_1_1_object_html_a2e3a6e219c10cc0c8e92f9ad19cd41d6"><div class="ttname"><a href="classewol_1_1_object.html#a2e3a6e219c10cc0c8e92f9ad19cd41d6">ewol::Object::getStatusResource</a></div><div class="ttdeci">bool getStatusResource() const</div><div class="ttdoc">Get the resource status of the element. </div><div class="ttdef"><b>Definition:</b> Object.hpp:264</div></div>
<div class="ttc" id="classewol_1_1_object_html_a61eacd4d36c9cb0d108c2dbcddbdd4dc"><div class="ttname"><a href="classewol_1_1_object.html#a61eacd4d36c9cb0d108c2dbcddbdd4dc">ewol::Object::propertyName</a></div><div class="ttdeci">eproperty::Value&lt; std::string &gt; propertyName</div><div class="ttdoc">name of the element ... </div><div class="ttdef"><b>Definition:</b> Object.hpp:119</div></div>
<div class="ttc" id="classeproperty_1_1_value_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/classeproperty_1_1_value.html">eproperty::Value&lt; std::string &gt;</a></div></div>
<div class="ttc" id="classewol_1_1_object_html_aaaf5281d3ae2e88db8ae3d72a245fce6"><div class="ttname"><a href="classewol_1_1_object.html#aaaf5281d3ae2e88db8ae3d72a245fce6">ewol::Object::getStatic</a></div><div class="ttdeci">bool getStatic()</div><div class="ttdoc">get the static status of the Object == &gt; mark at true if the user set the object mark as static alloc...</div><div class="ttdef"><b>Definition:</b> Object.hpp:207</div></div>
<div class="ttc" id="classewol_1_1_context_html"><div class="ttname"><a href="classewol_1_1_context.html">ewol::Context</a></div><div class="ttdef"><b>Definition:</b> Context.hpp:26</div></div>
<div class="ttc" id="memory__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/ememory/memory__8hpp.html">memory.hpp</a></div></div>
<div class="ttc" id="classewol_1_1_object_html_ae11b9bed4b94f3edbb724c8b416a90d4"><div class="ttname"><a href="classewol_1_1_object.html#ae11b9bed4b94f3edbb724c8b416a90d4">ewol::Object::getId</a></div><div class="ttdeci">int32_t getId()</div><div class="ttdoc">get the UniqueId of the Object </div><div class="ttdef"><b>Definition:</b> Object.hpp:217</div></div>
<div class="ttc" id="__interface__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/__interface__8hpp.html">Interface.hpp</a></div></div>
<div class="ttc" id="__list__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/eproperty/__list__8hpp.html">List.hpp</a></div></div>
<div class="ttc" id="classewol_1_1object_1_1_manager_html"><div class="ttname"><a href="classewol_1_1object_1_1_manager.html">ewol::object::Manager</a></div><div class="ttdef"><b>Definition:</b> Manager.hpp:18</div></div>
<div class="ttc" id="classewol_1_1_object_html_a8493e9ec34866cf31e8fd77b375d8c2c"><div class="ttname"><a href="classewol_1_1_object.html#a8493e9ec34866cf31e8fd77b375d8c2c">ewol::Object::m_static</a></div><div class="ttdeci">bool m_static</div><div class="ttdoc">set this variable at true if this element must not be auto destroy (exemple : use static object) ...</div><div class="ttdef"><b>Definition:</b> Object.hpp:201</div></div>
<div class="ttc" id="_context_8hpp_html_a32db0d1e16baf02f1edf72bebd3b90e0"><div class="ttname"><a href="_context_8hpp.html#a32db0d1e16baf02f1edf72bebd3b90e0">ewol::getContext</a></div><div class="ttdeci">Context &amp; getContext()</div><div class="ttdoc">From everyware in the program, we can get the context inteface. </div></div>
<div class="ttc" id="namespaceejson_html_a6a37b3ae20a2b7bc207b268ab1439709aa8cfde6331bd59eb2ac96f8911c4b666"><div class="ttname"><a href="http://atria-soft.github.io/ejson/namespaceejson.html#a6a37b3ae20a2b7bc207b268ab1439709aa8cfde6331bd59eb2ac96f8911c4b666">valueType::object</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated on Mon Oct 24 2016 15:35:52 for Ewol: Ewol Widget in OpenGl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>