ewol/_object_8hpp.html

439 lines
34 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 File Reference</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="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Object.hpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="elRef" 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;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &lt;<a class="elRef" 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;</code><br />
<code>#include &lt;mutex&gt;</code><br />
<code>#include &lt;<a class="elRef" 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;</code><br />
<code>#include &lt;unordered_map&gt;</code><br />
<code>#include &lt;ewol/debug.hpp&gt;</code><br />
<code>#include &lt;<a class="elRef" 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;</code><br />
<code>#include &lt;<a class="elRef" 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;</code><br />
<code>#include &lt;<a class="elRef" 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;</code><br />
<code>#include &lt;<a class="elRef" 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;</code><br />
<code>#include &lt;esignal/Interface.hpp&gt;</code><br />
</div>
<p><a href="_object_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classewol_1_1_object.html">ewol::Object</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ac7ffa69cca254d91700da8ad4b8e294e"><td class="memItemLeft" align="right" valign="top"><a id="ac7ffa69cca254d91700da8ad4b8e294e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>UN_DECLARE_FACTORY</b>(className)&#160;&#160;&#160;template&lt;class ... EWOL_FACTORY_CREATE_TYPE&gt; static <a class="elRef" 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</a>&lt;className&gt; create(const EWOL_FACTORY_CREATE_TYPE&amp; ... _all) = delete;</td></tr>
<tr class="separator:ac7ffa69cca254d91700da8ad4b8e294e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c69e3608e69a815239a45ce36f00897"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>DECLARE_FACTORY</b>(className)</td></tr>
<tr class="separator:a3c69e3608e69a815239a45ce36f00897"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a164c8916088ed0b694fd67aab64867ca"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>DECLARE_SINGLE_FACTORY</b>(className, uniqueName)</td></tr>
<tr class="separator:a164c8916088ed0b694fd67aab64867ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1aaf59acc57a57503fd2b617b870bb6f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_object_8hpp.html#a1aaf59acc57a57503fd2b617b870bb6f">subBind</a>(_type, _name, _event, _shared_ptr, _func, ...)</td></tr>
<tr class="separator:a1aaf59acc57a57503fd2b617b870bb6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4646d0f1bd621fd04deb70643d4d744"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_object_8hpp.html#ad4646d0f1bd621fd04deb70643d4d744">globalBind</a>(_type, _name, _event, _obj, _func, ...)</td></tr>
<tr class="separator:ad4646d0f1bd621fd04deb70643d4d744"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a363fd5eb89ad097988e4eeaf01a314ad"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_object_8hpp.html#a363fd5eb89ad097988e4eeaf01a314ad">externSubBind</a>(_object, _type, _name, _event, _obj, _func, ...)</td></tr>
<tr class="separator:a363fd5eb89ad097988e4eeaf01a314ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a0021565acc0a62c69f208343573de81e"><td class="memItemLeft" align="right" valign="top"><a id="a0021565acc0a62c69f208343573de81e"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>ewol::ObjectShared</b> = <a class="elRef" 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</a>&lt; <a class="el" href="classewol_1_1_object.html">ewol::Object</a> &gt;</td></tr>
<tr class="separator:a0021565acc0a62c69f208343573de81e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1740acbd9d56470b1a18dd56e34175d"><td class="memItemLeft" align="right" valign="top"><a id="af1740acbd9d56470b1a18dd56e34175d"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>ewol::ObjectWeak</b> = <a class="elRef" 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</a>&lt; <a class="el" href="classewol_1_1_object.html">ewol::Object</a> &gt;</td></tr>
<tr class="separator:af1740acbd9d56470b1a18dd56e34175d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac62cd0ffa8c40e70818cbc5d4a3e1204"><td class="memItemLeft" align="right" valign="top"><a id="ac62cd0ffa8c40e70818cbc5d4a3e1204"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>ewol::propertySetOnObjectNamed</b> (const <a class="elRef" 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#a6a37b3ae20a2b7bc207b268ab1439709ab45cffe084dd3d20d928bee85e7b0f21">std::string</a> &amp;_objectName, const <a class="elRef" 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#a6a37b3ae20a2b7bc207b268ab1439709ab45cffe084dd3d20d928bee85e7b0f21">std::string</a> &amp;_config, const <a class="elRef" 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#a6a37b3ae20a2b7bc207b268ab1439709ab45cffe084dd3d20d928bee85e7b0f21">std::string</a> &amp;_value)</td></tr>
<tr class="separator:ac62cd0ffa8c40e70818cbc5d4a3e1204"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>Edouard DUPIN </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>2011, Edouard DUPIN, all right reserved </dd></dl>
<dl class="section note"><dt>Note</dt><dd>License: APACHE v2.0 (see license file) </dd></dl>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a3c69e3608e69a815239a45ce36f00897"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c69e3608e69a815239a45ce36f00897">&sect;&nbsp;</a></span>DECLARE_FACTORY</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define DECLARE_FACTORY</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">className</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">template</span>&lt;<span class="keyword">class </span>... EWOL_FACTORY_CREATE_TYPE&gt; <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">ememory::SharedPtr&lt;className&gt;</a> <a class="code" href="message_8hpp.html#abc42ae0f5f36d369f8e81d14741c2a48">create</a>(<span class="keyword">const</span> EWOL_FACTORY_CREATE_TYPE&amp; ... _all) { \</div><div class="line"> ememory::SharedPtr&lt;className&gt; <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>(<span class="keyword">new</span> className()); \</div><div class="line"> if (<span class="keywordtype">object</span> == <span class="keyword">nullptr</span>) { \</div><div class="line"> EWOL_ERROR(<span class="stringliteral">&quot;Factory error&quot;</span>); \</div><div class="line"> return <span class="keyword">nullptr</span>; \</div><div class="line"> } \</div><div class="line"> baseInit(<span class="keywordtype">object</span>, _all... ); \</div><div class="line"> object-&gt;init(); \</div><div class="line"> if (<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>-&gt;objectHasBeenCorectlyInit() == <span class="keyword">false</span>) { \</div><div class="line"> EWOL_CRITICAL(<span class="stringliteral">&quot;Object Is not correctly init : &quot;</span> &lt;&lt; #className ); \</div><div class="line"> } \</div><div class="line"> return <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"> }</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="message_8hpp_html_abc42ae0f5f36d369f8e81d14741c2a48"><div class="ttname"><a href="message_8hpp.html#abc42ae0f5f36d369f8e81d14741c2a48">ewol::tools::message::create</a></div><div class="ttdeci">void create(enum ewol::tools::message::type _type, const std::string &amp;_message)</div><div class="ttdoc">Create a simple pop-up message on the screen for application error. </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>
</div>
<a id="a164c8916088ed0b694fd67aab64867ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a164c8916088ed0b694fd67aab64867ca">&sect;&nbsp;</a></span>DECLARE_SINGLE_FACTORY</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define DECLARE_SINGLE_FACTORY</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">className, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">uniqueName&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">template</span>&lt;<span class="keyword">class </span>... EWOL_FACTORY_CREATE_TYPE&gt; <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">ememory::SharedPtr&lt;className&gt;</a> <a class="code" href="message_8hpp.html#abc42ae0f5f36d369f8e81d14741c2a48">create</a>(<span class="keyword">const</span> EWOL_FACTORY_CREATE_TYPE&amp; ... _all) { \</div><div class="line"> ememory::SharedPtr&lt;className&gt; <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"> ememory::SharedPtr&lt;ewol::Object&gt; object2 = getObjectNamed(uniqueName); \</div><div class="line"> if (object2 != <span class="keyword">nullptr</span>) { \</div><div class="line"> object = ememory::dynamicPointerCast&lt;className&gt;(object2); \</div><div class="line"> if (<span class="keywordtype">object</span> == <span class="keyword">nullptr</span>) { \</div><div class="line"> EWOL_CRITICAL(<span class="stringliteral">&quot;Request object element: &#39;&quot;</span> &lt;&lt; uniqueName &lt;&lt; <span class="stringliteral">&quot;&#39; With the wrong type (dynamic cast error)&quot;</span>); \</div><div class="line"> return <span class="keyword">nullptr</span>; \</div><div class="line"> } \</div><div class="line"> } \</div><div class="line"> if (<span class="keywordtype">object</span> != <span class="keyword">nullptr</span>) { \</div><div class="line"> return object; \</div><div class="line"> } \</div><div class="line"> object = <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;className&gt;</a>(<span class="keyword">new</span> className()); \</div><div class="line"> if (<span class="keywordtype">object</span> == <span class="keyword">nullptr</span>) { \</div><div class="line"> EWOL_ERROR(<span class="stringliteral">&quot;Factory error&quot;</span>); \</div><div class="line"> return <span class="keyword">nullptr</span>; \</div><div class="line"> } \</div><div class="line"> baseInit(<span class="keywordtype">object</span>, <span class="stringliteral">&quot;name&quot;</span>, std::string(uniqueName), _all... ); \</div><div class="line"> object-&gt;init(); \</div><div class="line"> if (object-&gt;objectHasBeenCorectlyInit() == <span class="keyword">false</span>) { \</div><div class="line"> EWOL_CRITICAL(<span class="stringliteral">&quot;Object Is not correctly init : &quot;</span> &lt;&lt; #className ); \</div><div class="line"> } \</div><div class="line"> return object; \</div><div class="line"> }</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="message_8hpp_html_abc42ae0f5f36d369f8e81d14741c2a48"><div class="ttname"><a href="message_8hpp.html#abc42ae0f5f36d369f8e81d14741c2a48">ewol::tools::message::create</a></div><div class="ttdeci">void create(enum ewol::tools::message::type _type, const std::string &amp;_message)</div><div class="ttdoc">Create a simple pop-up message on the screen for application error. </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>
</div>
<a id="a363fd5eb89ad097988e4eeaf01a314ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a363fd5eb89ad097988e4eeaf01a314ad">&sect;&nbsp;</a></span>externSubBind</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define externSubBind</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">_object, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_type, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_name, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_event, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_obj, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_func, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span> {\</div><div class="line"> ememory::SharedPtr&lt;_type&gt; myObject = ememory::dynamicPointerCast&lt;_type&gt;(_object-&gt;getObjectNamed(_name)); \</div><div class="line"> if (myObject != <span class="keyword">nullptr</span>) { \</div><div class="line"> myObject-&gt;_event.connect(_obj, _func, ##__VA_ARGS__); \</div><div class="line"> } <span class="keywordflow">else</span> { \</div><div class="line"> EWOL_ERROR(<span class="stringliteral">&quot;object named=&#39;&quot;</span> &lt;&lt; _name &lt;&lt; <span class="stringliteral">&quot;&#39; not exit or can not be cast in : &quot;</span> &lt;&lt; #_type); \</div><div class="line"> } \</div><div class="line">} <span class="keywordflow">while</span> (<span class="keyword">false</span>)</div></div><!-- fragment -->
<p>link on an signal in the subWidget of an object with his name </p>
</div>
</div>
<a id="ad4646d0f1bd621fd04deb70643d4d744"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4646d0f1bd621fd04deb70643d4d744">&sect;&nbsp;</a></span>globalBind</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define globalBind</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">_type, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_name, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_event, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_obj, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_func, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span> {\</div><div class="line"> ememory::SharedPtr&lt;_type&gt; myObject = ememory::dynamicPointerCast&lt;_type&gt;(<a class="code" href="_context_8hpp.html#a32db0d1e16baf02f1edf72bebd3b90e0">ewol::getContext</a>().getEObjectManager().<a class="code" href="classewol_1_1object_1_1_manager.html#ab22e6735a8dbac7c8f1323c18623f319">getObjectNamed</a>(_name)); \</div><div class="line"> if (myObject != <span class="keyword">nullptr</span>) { \</div><div class="line"> myObject-&gt;_event.connect(_obj, _func, ##__VA_ARGS__); \</div><div class="line"> } <span class="keywordflow">else</span> { \</div><div class="line"> EWOL_ERROR(<span class="stringliteral">&quot;object named=&#39;&quot;</span> &lt;&lt; _name &lt;&lt; <span class="stringliteral">&quot;&#39; not exit or can not be cast in : &quot;</span> &lt;&lt; #_type); \</div><div class="line"> } \</div><div class="line">} <span class="keywordflow">while</span> (<span class="keyword">false</span>)</div><div class="ttc" id="classewol_1_1object_1_1_manager_html_ab22e6735a8dbac7c8f1323c18623f319"><div class="ttname"><a href="classewol_1_1object_1_1_manager.html#ab22e6735a8dbac7c8f1323c18623f319">ewol::object::Manager::getObjectNamed</a></div><div class="ttdeci">ewol::ObjectShared getObjectNamed(const std::string &amp;_name)</div><div class="ttdoc">retrive an object with his name </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><!-- fragment -->
<p>link on an signal in the global object list with his name </p>
</div>
</div>
<a id="a1aaf59acc57a57503fd2b617b870bb6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1aaf59acc57a57503fd2b617b870bb6f">&sect;&nbsp;</a></span>subBind</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define subBind</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">_type, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_name, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_event, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_shared_ptr, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">_func, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span> {\</div><div class="line"> ememory::SharedPtr&lt;_type&gt; myObject = ememory::dynamicPointerCast&lt;_type&gt;(getSubObjectNamed(_name)); \</div><div class="line"> if (myObject != <span class="keyword">nullptr</span>) { \</div><div class="line"> myObject-&gt;_event.connect(_shared_ptr, _func, ##__VA_ARGS__); \</div><div class="line"> } <span class="keywordflow">else</span> { \</div><div class="line"> EWOL_ERROR(<span class="stringliteral">&quot;object named=&#39;&quot;</span> &lt;&lt; _name &lt;&lt; <span class="stringliteral">&quot;&#39; not exit or can not be cast in : &quot;</span> &lt;&lt; #_type); \</div><div class="line"> } \</div><div class="line"> } <span class="keywordflow">while</span> (<span class="keyword">false</span>)</div></div><!-- fragment -->
<p>link on an signal in the subwiget with his name </p>
</div>
</div>
</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>