93 lines
6.2 KiB
HTML
93 lines
6.2 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.14"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>PIP: PICout::Notifier Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(initResizable);
|
|
/* @license-end */</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">PIP
|
|
 <span id="projectnumber">1.8.0</span>
|
|
</div>
|
|
<div id="projectbrief">Platform-Independent Primitives</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.14 -->
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',false,false,'search.php','Search');
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('class_p_i_cout_1_1_notifier.html','');});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="class_p_i_cout_1_1_notifier-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">PICout::Notifier Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Class for emit notifications of <a class="el" href="class_p_i_cout.html" title="Class for formatted output similar std::cout. ">PICout</a>.
|
|
<a href="class_p_i_cout_1_1_notifier.html#details">More...</a></p>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Class for emit notifications of <a class="el" href="class_p_i_cout.html" title="Class for formatted output similar std::cout. ">PICout</a>. </p>
|
|
<h1><a class="anchor" id="PICout_sec0"></a>
|
|
Synopsis</h1>
|
|
<p>This class used as <a class="el" href="class_p_i_cout.html" title="Class for formatted output similar std::cout. ">PICout</a> events emitter. When <a class="el" href="class_p_i_cout.html" title="Class for formatted output similar std::cout. ">PICout</a> constructs with external PIString* buffer and some id, last copy of this <a class="el" href="class_p_i_cout.html" title="Class for formatted output similar std::cout. ">PICout</a> on delete emit event "finished()" on object Notifier::object(). Sample: </p><div class="fragment"><div class="line"><span class="keyword">class </span>A: <span class="keyword">public</span> <a class="code" href="class_p_i_object.html">PIObject</a> {</div><div class="line"> <a class="code" href="piobject_8h.html#affa62b02040517a34b3f173d804e487f">PIOBJECT</a>(A)</div><div class="line"><span class="keyword">public</span>:</div><div class="line"> A() {}</div><div class="line"> EVENT_HANDLER2(<span class="keywordtype">void</span>, pcf, <span class="keywordtype">int</span>, <span class="keywordtype">id</span>, <a class="code" href="class_p_i_string.html">PIString</a>*, buff) {</div><div class="line"> <a class="code" href="picout_8h.html#ad21862cbba89aead064fbef4c825030e">piCout</a> << <span class="stringliteral">"PICout("</span> << <span class="keywordtype">id</span> << <span class="stringliteral">") finished:"</span> << (*buff);</div><div class="line"> }</div><div class="line">};</div><div class="line"><span class="keywordtype">int</span> main() {</div><div class="line"> A a;</div><div class="line"> CONNECTU(PICout::Notifier::object(), finished, &a, pcf);</div><div class="line"> <a class="code" href="class_p_i_string.html">PIString</a> buffer = <span class="stringliteral">"my buff:"</span>;</div><div class="line"> <a class="code" href="class_p_i_cout.html#a554df1a5391fd958d9430cb28356b847">PICout</a>(&buffer, 1) << <span class="stringliteral">"int 10 ->"</span> << 10 << <span class="stringliteral">", time ->"</span> << PITime::current();</div><div class="line"> <span class="keywordflow">return</span> 0;</div><div class="line">}</div><div class="line"><span class="comment">// PICout( 1 ) finished: my buff:int 10 -> 10 , time -> PITime(14:07:09:000)</span></div></div><!-- fragment --></div></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="class_p_i_cout.html">PICout</a></li><li class="navelem"><a class="el" href="class_p_i_cout_1_1_notifier.html">Notifier</a></li>
|
|
<li class="footer">Generated on Fri Sep 28 2018 21:06:37 for PIP by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|