186 lines
38 KiB
HTML
186 lines
38 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>zeus: Zeus ewol micro-service interface: framework/atria-soft/zeus/zeus/RemoteProcessCall.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">zeus: Zeus ewol micro-service interface 0.4.0</a>
|
|
</div>
|
|
<div id="navbar" class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="index.html">Main Page</a></li>
|
|
<li><a href="pages.html">Related 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_96d802beaf7bb3afdcf2656a2c8ec44e.html">zeus</a></li><li class="navelem"><a class="el" href="dir_645a2e7aebb6c78a7ec97ee8c38ef7e7.html">zeus</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">RemoteProcessCall.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_remote_process_call_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> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <<a class="code" href="_web_server_8hpp.html">zeus/WebServer.hpp</a>></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <<a class="code" href="_abstract_function_type_direct_8hpp.html">zeus/AbstractFunctionTypeDirect.hpp</a>></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <<a class="code" href="_abstract_function_type_class_8hpp.html">zeus/AbstractFunctionTypeClass.hpp</a>></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <zeus/debug.hpp></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span><a class="code" href="namespacezeus.html">zeus</a> {</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classzeus_1_1_remote_process_call.html"> 17</a></span>  <span class="keyword">class </span><a class="code" href="classzeus_1_1_remote_process_call.html">RemoteProcessCall</a> {</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <a class="code" href="classzeus_1_1_remote_process_call.html#a56bd5f5de5f0a78d3055e2033a6e7878">RemoteProcessCall</a>();</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classzeus_1_1_remote_process_call.html#a72f198515bc8719be2db618fc5a64a1e"> 24</a></span>  std::vector<zeus::AbstractFunction*> <a class="code" href="classzeus_1_1_remote_process_call.html#a72f198515bc8719be2db618fc5a64a1e">m_listFunction</a>; </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classzeus_1_1_remote_process_call.html#a2532ad683c756717f6c61d03d9defc1f"> 26</a></span>  std::string <a class="code" href="classzeus_1_1_remote_process_call.html#a2532ad683c756717f6c61d03d9defc1f">m_description</a>; </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordtype">void</span> <a class="code" href="classzeus_1_1_remote_process_call.html#aed95bf8ce01b84e8f842cff50b98d214">setDescription</a>(<span class="keyword">const</span> std::string& _desc);</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  std::string <a class="code" href="classzeus_1_1_remote_process_call.html#ae927db98a8d56b7d88f9260c705c22c0">getDescription</a>();</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classzeus_1_1_remote_process_call.html#a03df1c4d4dfaee5cb84c35c7d713eaa3"> 39</a></span>  std::string <a class="code" href="classzeus_1_1_remote_process_call.html#a03df1c4d4dfaee5cb84c35c7d713eaa3">m_version</a>; </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">void</span> <a class="code" href="classzeus_1_1_remote_process_call.html#af635678367e7c29deced5e8dbd0b8d3c">setVersion</a>(<span class="keyword">const</span> std::string& _vers);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  std::string <a class="code" href="classzeus_1_1_remote_process_call.html#a0a380bace6b950181ed8f7ac0ea23e51">getVersion</a>();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  std::vector<std::pair<std::string,std::string>> m_authors;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">void</span> <a class="code" href="classzeus_1_1_remote_process_call.html#ab054889a0ff86db5c251852aa0c7e632">addAuthor</a>(<span class="keyword">const</span> std::string& _name, <span class="keyword">const</span> std::string& _email);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">const</span> std::vector<std::pair<std::string,std::string>>& <a class="code" href="classzeus_1_1_remote_process_call.html#a90d610e41d026dd304d48a912e18a5ad">getAuthors</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  std::vector<std::string> <a class="code" href="classzeus_1_1_remote_process_call.html#a83c83463bbf95e8ec517490e1c4ebb3f">getAuthors2</a>();</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classzeus_1_1_remote_process_call.html#a67b174dae0738e623c621102c5e8fc64"> 71</a></span>  std::string <a class="code" href="classzeus_1_1_remote_process_call.html#a67b174dae0738e623c621102c5e8fc64">m_type</a>; </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  std::string <a class="code" href="classzeus_1_1_remote_process_call.html#ae973033f2d710c3640df1a4b5fb3892d">getType</a>();</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordtype">void</span> <a class="code" href="classzeus_1_1_remote_process_call.html#a0e1908663d925a6eab346941483bf3ff">setType</a>(<span class="keyword">const</span> std::string& _type, uint16_t _version);</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  std::vector<std::string> <a class="code" href="classzeus_1_1_remote_process_call.html#a37d2417bb20e19dc421390c93f9f41d6">getFunctions</a>();</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="classzeus_1_1_abstract_function.html">AbstractFunction</a>* <a class="code" href="classzeus_1_1_remote_process_call.html#a19c983f4b989557a9375a25ebc48d659">getFunction</a>(std::string _funcName);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  std::vector<std::string> getFunctionSignature(std::string _funcName);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  std::string getFunctionPrototype(std::string _funcName);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  std::string getFunctionDescription(std::string _funcName);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classzeus_1_1_remote_process_call.html#a19569a8c0299c9ec07e3cdc0ab210d9d">isFunctionAuthorized</a>(uint64_t _clientSessionID, <span class="keyword">const</span> std::string& _funcName);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="comment">// Add global fuction (no link with this class)</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">template</span><<span class="keyword">class </span>ZEUS_RETURN_VALUE,</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">class</span>... ZEUS_FUNC_ARGS_TYPE></div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classzeus_1_1_remote_process_call.html#a016ea02517069bd50a7e0b3bae1af9b7"> 118</a></span>  <a class="code" href="classzeus_1_1_abstract_function.html">zeus::AbstractFunction</a>* <a class="code" href="classzeus_1_1_remote_process_call.html#a016ea02517069bd50a7e0b3bae1af9b7">advertise</a>(<span class="keyword">const</span> std::string& _name,</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  ZEUS_RETURN_VALUE (*_func)(ZEUS_FUNC_ARGS_TYPE... _args)) {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> &it : m_listFunction) {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (it == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  }</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">if</span> (it->getName() == _name) {</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  ZEUS_ERROR(<span class="stringliteral">"Advertise function already bind .. ==> can not be done...: '"</span> << _name << <span class="stringliteral">"'"</span>);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  }</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  }</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="classzeus_1_1_abstract_function.html">zeus::AbstractFunction</a>* tmp = <a class="code" href="namespacezeus.html#a3753ffe17c60cfa1d95816f26e7f582e">createAbstractFunctionDirect</a>(_name, _func);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">if</span> (tmp == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  ZEUS_ERROR(<span class="stringliteral">"can not create abstract function ... '"</span> << _name << <span class="stringliteral">"'"</span>);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  tmp-><a class="code" href="classzeus_1_1_abstract_function.html#aec2aae9ebbf1203ec3ded6caf8e061b9">setType</a>(<a class="code" href="classzeus_1_1_abstract_function.html#a92971542cd402eed6be8f1c20e2ac6e7a9c70933aff6b2a6d08c687a6cbb6b765">zeus::AbstractFunction::type::global</a>);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  ZEUS_INFO(<span class="stringliteral">"Add function '"</span> << _name << <span class="stringliteral">"' in global mode"</span>);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  m_listFunction.push_back(tmp);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">return</span> tmp;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  }</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="comment">// Add Local fuction (depend on this class)</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">template</span><<span class="keyword">class </span>ZEUS_RETURN_VALUE,</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">class </span>ZEUS_CLASS_TYPE,</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keyword">class</span>... ZEUS_FUNC_ARGS_TYPE></div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classzeus_1_1_remote_process_call.html#acc8890974a223941941b18d900229935"> 148</a></span>  <a class="code" href="classzeus_1_1_abstract_function.html">zeus::AbstractFunction</a>* <a class="code" href="classzeus_1_1_remote_process_call.html#acc8890974a223941941b18d900229935">advertise</a>(std::string _name,</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  ZEUS_RETURN_VALUE (ZEUS_CLASS_TYPE::*_func)(ZEUS_FUNC_ARGS_TYPE... _args)) {</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  _name = <span class="stringliteral">"sys."</span> + _name;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> &it : m_listFunction) {</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordflow">if</span> (it == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  }</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">if</span> (it->getName() == _name) {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  ZEUS_ERROR(<span class="stringliteral">"Advertise function already bind .. ==> can not be done...: '"</span> << _name << <span class="stringliteral">"'"</span>);</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  }</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  }</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="classzeus_1_1_abstract_function.html">zeus::AbstractFunction</a>* tmp = <a class="code" href="namespacezeus.html#a5e286e66b58683703ac98a5295fccbe9">createAbstractFunctionClass</a>(_name, _func);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">if</span> (tmp == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  ZEUS_ERROR(<span class="stringliteral">"can not create abstract function ... '"</span> << _name << <span class="stringliteral">"'"</span>);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  tmp-><a class="code" href="classzeus_1_1_abstract_function.html#aec2aae9ebbf1203ec3ded6caf8e061b9">setType</a>(<a class="code" href="classzeus_1_1_abstract_function.html#a92971542cd402eed6be8f1c20e2ac6e7af5ddaf0ca7929578b408c909429f68f2">zeus::AbstractFunction::type::local</a>);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  ZEUS_INFO(<span class="stringliteral">"Add function '"</span> << _name << <span class="stringliteral">"' in local mode"</span>);</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  m_listFunction.push_back(tmp);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordflow">return</span> tmp;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  }</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  };</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> }</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="ttc" id="classzeus_1_1_abstract_function_html_aec2aae9ebbf1203ec3ded6caf8e061b9"><div class="ttname"><a href="classzeus_1_1_abstract_function.html#aec2aae9ebbf1203ec3ded6caf8e061b9">zeus::AbstractFunction::setType</a></div><div class="ttdeci">void setType(enum type _type)</div><div class="ttdoc">Set the type of the call that must be done for this function. </div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a2532ad683c756717f6c61d03d9defc1f"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a2532ad683c756717f6c61d03d9defc1f">zeus::RemoteProcessCall::m_description</a></div><div class="ttdeci">std::string m_description</div><div class="ttdoc">Description of the service. </div><div class="ttdef"><b>Definition:</b> RemoteProcessCall.hpp:26</div></div>
|
|
<div class="ttc" id="classzeus_1_1_abstract_function_html_a92971542cd402eed6be8f1c20e2ac6e7a9c70933aff6b2a6d08c687a6cbb6b765"><div class="ttname"><a href="classzeus_1_1_abstract_function.html#a92971542cd402eed6be8f1c20e2ac6e7a9c70933aff6b2a6d08c687a6cbb6b765">zeus::AbstractFunction::type::global</a></div><div class="ttdoc">This is a global function. </div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a19c983f4b989557a9375a25ebc48d659"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a19c983f4b989557a9375a25ebc48d659">zeus::RemoteProcessCall::getFunction</a></div><div class="ttdeci">AbstractFunction * getFunction(std::string _funcName)</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_aed95bf8ce01b84e8f842cff50b98d214"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#aed95bf8ce01b84e8f842cff50b98d214">zeus::RemoteProcessCall::setDescription</a></div><div class="ttdeci">void setDescription(const std::string &_desc)</div><div class="ttdoc">Set service description. </div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_ae973033f2d710c3640df1a4b5fb3892d"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#ae973033f2d710c3640df1a4b5fb3892d">zeus::RemoteProcessCall::getType</a></div><div class="ttdeci">std::string getType()</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a03df1c4d4dfaee5cb84c35c7d713eaa3"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a03df1c4d4dfaee5cb84c35c7d713eaa3">zeus::RemoteProcessCall::m_version</a></div><div class="ttdeci">std::string m_version</div><div class="ttdoc">Version of the service. </div><div class="ttdef"><b>Definition:</b> RemoteProcessCall.hpp:39</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a016ea02517069bd50a7e0b3bae1af9b7"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a016ea02517069bd50a7e0b3bae1af9b7">zeus::RemoteProcessCall::advertise</a></div><div class="ttdeci">zeus::AbstractFunction * advertise(const std::string &_name, ZEUS_RETURN_VALUE(*_func)(ZEUS_FUNC_ARGS_TYPE... _args))</div><div class="ttdef"><b>Definition:</b> RemoteProcessCall.hpp:118</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_ae927db98a8d56b7d88f9260c705c22c0"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#ae927db98a8d56b7d88f9260c705c22c0">zeus::RemoteProcessCall::getDescription</a></div><div class="ttdeci">std::string getDescription()</div><div class="ttdoc">Get service description. </div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a0e1908663d925a6eab346941483bf3ff"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a0e1908663d925a6eab346941483bf3ff">zeus::RemoteProcessCall::setType</a></div><div class="ttdeci">void setType(const std::string &_type, uint16_t _version)</div></div>
|
|
<div class="ttc" id="_abstract_function_type_direct_8hpp_html"><div class="ttname"><a href="_abstract_function_type_direct_8hpp.html">AbstractFunctionTypeDirect.hpp</a></div></div>
|
|
<div class="ttc" id="classzeus_1_1_abstract_function_html"><div class="ttname"><a href="classzeus_1_1_abstract_function.html">zeus::AbstractFunction</a></div><div class="ttdoc">Interface to store a function and call it after with a zeus::Buffer. </div><div class="ttdef"><b>Definition:</b> AbstractFunction.hpp:23</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a0a380bace6b950181ed8f7ac0ea23e51"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a0a380bace6b950181ed8f7ac0ea23e51">zeus::RemoteProcessCall::getVersion</a></div><div class="ttdeci">std::string getVersion()</div><div class="ttdoc">Get the Version of the service. </div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a56bd5f5de5f0a78d3055e2033a6e7878"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a56bd5f5de5f0a78d3055e2033a6e7878">zeus::RemoteProcessCall::RemoteProcessCall</a></div><div class="ttdeci">RemoteProcessCall()</div><div class="ttdoc">Basic constructor. </div></div>
|
|
<div class="ttc" id="_abstract_function_type_class_8hpp_html"><div class="ttname"><a href="_abstract_function_type_class_8hpp.html">AbstractFunctionTypeClass.hpp</a></div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a83c83463bbf95e8ec517490e1c4ebb3f"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a83c83463bbf95e8ec517490e1c4ebb3f">zeus::RemoteProcessCall::getAuthors2</a></div><div class="ttdeci">std::vector< std::string > getAuthors2()</div><div class="ttdoc">Get simple list of authors. </div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_af635678367e7c29deced5e8dbd0b8d3c"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#af635678367e7c29deced5e8dbd0b8d3c">zeus::RemoteProcessCall::setVersion</a></div><div class="ttdeci">void setVersion(const std::string &_vers)</div><div class="ttdoc">Set the Version of the service. </div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a37d2417bb20e19dc421390c93f9f41d6"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a37d2417bb20e19dc421390c93f9f41d6">zeus::RemoteProcessCall::getFunctions</a></div><div class="ttdeci">std::vector< std::string > getFunctions()</div></div>
|
|
<div class="ttc" id="_web_server_8hpp_html"><div class="ttname"><a href="_web_server_8hpp.html">WebServer.hpp</a></div></div>
|
|
<div class="ttc" id="namespacezeus_html_a3753ffe17c60cfa1d95816f26e7f582e"><div class="ttname"><a href="namespacezeus.html#a3753ffe17c60cfa1d95816f26e7f582e">zeus::createAbstractFunctionDirect</a></div><div class="ttdeci">zeus::AbstractFunction * createAbstractFunctionDirect(const std::string &_name, ZEUS_RETURN(*_fffp)(ZEUS_TYPES...))</div><div class="ttdoc">Create a function information with the function type. </div><div class="ttdef"><b>Definition:</b> AbstractFunctionTypeDirect.hpp:145</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a19569a8c0299c9ec07e3cdc0ab210d9d"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a19569a8c0299c9ec07e3cdc0ab210d9d">zeus::RemoteProcessCall::isFunctionAuthorized</a></div><div class="ttdeci">virtual bool isFunctionAuthorized(uint64_t _clientSessionID, const std::string &_funcName)</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a90d610e41d026dd304d48a912e18a5ad"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a90d610e41d026dd304d48a912e18a5ad">zeus::RemoteProcessCall::getAuthors</a></div><div class="ttdeci">const std::vector< std::pair< std::string, std::string > > & getAuthors() const</div><div class="ttdoc">Get the list of the Authors. </div></div>
|
|
<div class="ttc" id="namespacezeus_html"><div class="ttname"><a href="namespacezeus.html">zeus</a></div><div class="ttdoc">Main zeus library namespace. </div><div class="ttdef"><b>Definition:</b> AbstractFunction.hpp:15</div></div>
|
|
<div class="ttc" id="namespacezeus_html_a5e286e66b58683703ac98a5295fccbe9"><div class="ttname"><a href="namespacezeus.html#a5e286e66b58683703ac98a5295fccbe9">zeus::createAbstractFunctionClass</a></div><div class="ttdeci">AbstractFunction * createAbstractFunctionClass(const std::string &_name, ZEUS_RETURN(ZEUS_CLASS_TYPE::*_fffp)(ZEUS_TYPES...))</div><div class="ttdoc">Create a function information with the function type. </div><div class="ttdef"><b>Definition:</b> AbstractFunctionTypeClass.hpp:157</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_ab054889a0ff86db5c251852aa0c7e632"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#ab054889a0ff86db5c251852aa0c7e632">zeus::RemoteProcessCall::addAuthor</a></div><div class="ttdeci">void addAuthor(const std::string &_name, const std::string &_email)</div><div class="ttdoc">List of autors of the module (name, email) </div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_acc8890974a223941941b18d900229935"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#acc8890974a223941941b18d900229935">zeus::RemoteProcessCall::advertise</a></div><div class="ttdeci">zeus::AbstractFunction * advertise(std::string _name, ZEUS_RETURN_VALUE(ZEUS_CLASS_TYPE::*_func)(ZEUS_FUNC_ARGS_TYPE... _args))</div><div class="ttdef"><b>Definition:</b> RemoteProcessCall.hpp:148</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a67b174dae0738e623c621102c5e8fc64"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a67b174dae0738e623c621102c5e8fc64">zeus::RemoteProcessCall::m_type</a></div><div class="ttdeci">std::string m_type</div><div class="ttdoc">Generic type of the service. </div><div class="ttdef"><b>Definition:</b> RemoteProcessCall.hpp:71</div></div>
|
|
<div class="ttc" id="classzeus_1_1_abstract_function_html_a92971542cd402eed6be8f1c20e2ac6e7af5ddaf0ca7929578b408c909429f68f2"><div class="ttname"><a href="classzeus_1_1_abstract_function.html#a92971542cd402eed6be8f1c20e2ac6e7af5ddaf0ca7929578b408c909429f68f2">zeus::AbstractFunction::type::local</a></div><div class="ttdoc">This is a local fucntion. </div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html_a72f198515bc8719be2db618fc5a64a1e"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html#a72f198515bc8719be2db618fc5a64a1e">zeus::RemoteProcessCall::m_listFunction</a></div><div class="ttdeci">std::vector< zeus::AbstractFunction * > m_listFunction</div><div class="ttdoc">List of all functions callable. </div><div class="ttdef"><b>Definition:</b> RemoteProcessCall.hpp:24</div></div>
|
|
<div class="ttc" id="classzeus_1_1_remote_process_call_html"><div class="ttname"><a href="classzeus_1_1_remote_process_call.html">zeus::RemoteProcessCall</a></div><div class="ttdoc">Local declaration of call local data. </div><div class="ttdef"><b>Definition:</b> RemoteProcessCall.hpp:17</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:54 for zeus: Zeus ewol micro-service interface by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.12
|
|
</small></address>
|
|
</body>
|
|
</html>
|