blob: 673f0af10e39a450a187cbff7df00b62d8a61560 [file] [log] [blame]
<!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>
<link rel="canonical" href="https://ignite.apache.org/releases/2.4.0/cppdoc/binary__reader_8h_source.html" />
<META NAME="ROBOTS" CONTENT="NOINDEX">
<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.11"/>
<title>&nbsp; Apache Ignite C++: binary_reader.h Source File</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="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>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61232409-1', 'auto');
ga('send', 'pageview');
</script></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="projectlogo"><img alt="Logo" src="ignite_logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">&nbsp; Apache Ignite C++
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</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_88bd599177f4cc5007b9f053025b0bc5.html">binary</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">binary_reader.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="binary__reader_8h.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;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * this work for additional information regarding copyright ownership.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * (the &quot;License&quot;); you may not use this file except in compliance with</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#ifndef _IGNITE_BINARY_BINARY_READER</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#define _IGNITE_BINARY_BINARY_READER</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;ignite/common/common.h&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="binary__raw__reader_8h.html">ignite/binary/binary_raw_reader.h</a>&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="guid_8h.html">ignite/guid.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="date_8h.html">ignite/date.h</a>&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="timestamp_8h.html">ignite/timestamp.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceignite.html">ignite</a></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">namespace </span>binary</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; {</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryReader.html"> 54</a></span>&#160; <span class="keyword">class </span>IGNITE_IMPORT_EXPORT <a class="code" href="classignite_1_1binary_1_1BinaryReader.html">BinaryReader</a></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; {</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryReader.html">BinaryReader</a>(ignite::impl::binary::BinaryReaderImpl* impl);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; int8_t ReadInt8(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; int32_t ReadInt8Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, int8_t* res, int32_t len);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordtype">bool</span> ReadBool(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; int32_t ReadBoolArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keywordtype">bool</span>* res, int32_t len);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; int16_t ReadInt16(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; int32_t ReadInt16Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, int16_t* res, int32_t len);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; uint16_t ReadUInt16(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; int32_t ReadUInt16Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, uint16_t* res, int32_t len);</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; int32_t ReadInt32(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; int32_t ReadInt32Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, int32_t* res, int32_t len);</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; int64_t ReadInt64(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; int32_t ReadInt64Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, int64_t* res, int32_t len);</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <span class="keywordtype">float</span> ReadFloat(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; int32_t ReadFloatArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keywordtype">float</span>* res, int32_t len);</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keywordtype">double</span> ReadDouble(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; int32_t ReadDoubleArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keywordtype">double</span>* res, int32_t len);</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <a class="code" href="classignite_1_1Guid.html">Guid</a> ReadGuid(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; int32_t ReadGuidArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <a class="code" href="classignite_1_1Guid.html">Guid</a>* res, int32_t len);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; <a class="code" href="classignite_1_1Date.html">Date</a> ReadDate(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; int32_t ReadDateArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <a class="code" href="classignite_1_1Date.html">Date</a>* res, <span class="keyword">const</span> int32_t len);</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <a class="code" href="classignite_1_1Timestamp.html">Timestamp</a> ReadTimestamp(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160;</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; int32_t ReadTimestampArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <a class="code" href="classignite_1_1Timestamp.html">Timestamp</a>* res, <span class="keyword">const</span> int32_t len);</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160;</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <a class="code" href="classignite_1_1Time.html">Time</a> ReadTime(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; int32_t ReadTimeArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <a class="code" href="classignite_1_1Time.html">Time</a>* res, <span class="keyword">const</span> int32_t len);</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160;</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; int32_t ReadString(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keywordtype">char</span>* res, int32_t len);</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160;</div><div class="line"><a name="l00339"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryReader.html#af946e99bc889e58b898cf1ec9a611cb1"> 339</a></span>&#160; std::string <a class="code" href="classignite_1_1binary_1_1BinaryReader.html#af946e99bc889e58b898cf1ec9a611cb1">ReadString</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName)</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160; {</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; int32_t len = ReadString(fieldName, NULL, 0);</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; <span class="keywordflow">if</span> (len != -1)</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; {</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; ignite::common::FixedSizeArray&lt;char&gt; arr(len + 1);</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160;</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; ReadString(fieldName, arr.GetData(), <span class="keyword">static_cast&lt;</span>int32_t<span class="keyword">&gt;</span>(arr.GetSize()));</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160;</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; <span class="keywordflow">return</span> std::string(arr.GetData());</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; }</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; <span class="keywordflow">else</span></div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; <span class="keywordflow">return</span> std::string();</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; }</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryStringArrayReader.html">BinaryStringArrayReader</a> ReadStringArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160;</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00370"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryReader.html#a4781ae14d86009db8ae9476e39fce8eb"> 370</a></span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryArrayReader.html">BinaryArrayReader&lt;T&gt;</a> <a class="code" href="classignite_1_1binary_1_1BinaryReader.html#a4781ae14d86009db8ae9476e39fce8eb">ReadArray</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName)</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; {</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; int32_t size;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160;</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; int32_t <span class="keywordtype">id</span> = impl-&gt;ReadArray(fieldName, &amp;size);</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160;</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryArrayReader.html">BinaryArrayReader&lt;T&gt;</a>(impl, id, size);</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; }</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160;</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryReader.html#ad8ec8b3f38325cfaa060af47e189b1c5"> 386</a></span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryCollectionReader.html">BinaryCollectionReader&lt;T&gt;</a> <a class="code" href="classignite_1_1binary_1_1BinaryReader.html#ad8ec8b3f38325cfaa060af47e189b1c5">ReadCollection</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName)</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; {</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; <a class="code" href="structignite_1_1binary_1_1CollectionType.html#a03610e138c65428dc81c08f62b7729bb">CollectionType::Type</a> typ;</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; int32_t size;</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160;</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; int32_t <span class="keywordtype">id</span> = impl-&gt;ReadCollection(fieldName, &amp;typ, &amp;size);</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160;</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryCollectionReader.html">BinaryCollectionReader&lt;T&gt;</a>(impl, id, typ, size);</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160; }</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160;</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> OutputIterator&gt;</div><div class="line"><a name="l00404"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryReader.html#a5b263cb6b0c2a213a0301d6583ffa7e6"> 404</a></span>&#160; int32_t <a class="code" href="classignite_1_1binary_1_1BinaryReader.html#a5b263cb6b0c2a213a0301d6583ffa7e6">ReadCollection</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, OutputIterator out)</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; {</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; <span class="keywordflow">return</span> impl-&gt;ReadCollection&lt;T&gt;(fieldName, out);</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; }</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160;</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> K, <span class="keyword">typename</span> V&gt;</div><div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryReader.html#a451a4c39ea73b5935387de2173b64df2"> 416</a></span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryMapReader.html">BinaryMapReader&lt;K, V&gt;</a> <a class="code" href="classignite_1_1binary_1_1BinaryReader.html#a451a4c39ea73b5935387de2173b64df2">ReadMap</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName)</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; {</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160; <a class="code" href="structignite_1_1binary_1_1MapType.html#a138cf8f1db233f607ea34aaa8a99b456">MapType::Type</a> typ;</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160; int32_t size;</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160;</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; int32_t <span class="keywordtype">id</span> = impl-&gt;ReadMap(fieldName, &amp;typ, &amp;size);</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160;</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryMapReader.html">BinaryMapReader&lt;K, V&gt;</a>(impl, id, typ, size);</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160; }</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>&#160;</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160; <a class="code" href="structignite_1_1binary_1_1CollectionType.html#a03610e138c65428dc81c08f62b7729bb">CollectionType::Type</a> ReadCollectionType(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>&#160;</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>&#160; int32_t ReadCollectionSize(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>&#160;</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00449"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryReader.html#a4702b526171ac0a5f28c07a29f21be1e"> 449</a></span>&#160; T <a class="code" href="classignite_1_1binary_1_1BinaryReader.html#a4702b526171ac0a5f28c07a29f21be1e">ReadObject</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName)</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160; {</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160; <span class="keywordflow">return</span> impl-&gt;ReadObject&lt;T&gt;(fieldName);</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160; }</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160;</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160; <a class="code" href="classignite_1_1binary_1_1BinaryRawReader.html">BinaryRawReader</a> RawReader();</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160; ignite::impl::binary::BinaryReaderImpl* impl;</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>&#160; }; </div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>&#160; }</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160;}</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160;</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160;<span class="preprocessor">#endif //_IGNITE_BINARY_BINARY_READER</span></div><div class="ttc" id="classignite_1_1Timestamp_html"><div class="ttname"><a href="classignite_1_1Timestamp.html">ignite::Timestamp</a></div><div class="ttdoc">Timestamp type. </div><div class="ttdef"><b>Definition:</b> timestamp.h:37</div></div>
<div class="ttc" id="classignite_1_1Date_html"><div class="ttname"><a href="classignite_1_1Date.html">ignite::Date</a></div><div class="ttdoc">Date type. </div><div class="ttdef"><b>Definition:</b> date.h:35</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryStringArrayReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryStringArrayReader.html">ignite::binary::BinaryStringArrayReader</a></div><div class="ttdoc">Binary string array reader. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:297</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryMapReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryMapReader.html">ignite::binary::BinaryMapReader</a></div><div class="ttdoc">Binary map reader. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:561</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryCollectionReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryCollectionReader.html">ignite::binary::BinaryCollectionReader</a></div><div class="ttdoc">Binary collection reader. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:468</div></div>
<div class="ttc" id="guid_8h_html"><div class="ttname"><a href="guid_8h.html">guid.h</a></div><div class="ttdoc">Declares ignite::Guid class. </div></div>
<div class="ttc" id="timestamp_8h_html"><div class="ttname"><a href="timestamp_8h.html">timestamp.h</a></div><div class="ttdoc">Declares ignite::Timestamp class. </div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryReader_html_ad8ec8b3f38325cfaa060af47e189b1c5"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryReader.html#ad8ec8b3f38325cfaa060af47e189b1c5">ignite::binary::BinaryReader::ReadCollection</a></div><div class="ttdeci">BinaryCollectionReader&lt; T &gt; ReadCollection(const char *fieldName)</div><div class="ttdoc">Start collection read. </div><div class="ttdef"><b>Definition:</b> binary_reader.h:386</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryReader_html_a5b263cb6b0c2a213a0301d6583ffa7e6"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryReader.html#a5b263cb6b0c2a213a0301d6583ffa7e6">ignite::binary::BinaryReader::ReadCollection</a></div><div class="ttdeci">int32_t ReadCollection(const char *fieldName, OutputIterator out)</div><div class="ttdoc">Read values and insert them to specified position. </div><div class="ttdef"><b>Definition:</b> binary_reader.h:404</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryReader_html_a451a4c39ea73b5935387de2173b64df2"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryReader.html#a451a4c39ea73b5935387de2173b64df2">ignite::binary::BinaryReader::ReadMap</a></div><div class="ttdeci">BinaryMapReader&lt; K, V &gt; ReadMap(const char *fieldName)</div><div class="ttdoc">Start map read. </div><div class="ttdef"><b>Definition:</b> binary_reader.h:416</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryArrayReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryArrayReader.html">ignite::binary::BinaryArrayReader</a></div><div class="ttdoc">Binary array reader. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:389</div></div>
<div class="ttc" id="structignite_1_1binary_1_1CollectionType_html_a03610e138c65428dc81c08f62b7729bb"><div class="ttname"><a href="structignite_1_1binary_1_1CollectionType.html#a03610e138c65428dc81c08f62b7729bb">ignite::binary::CollectionType::Type</a></div><div class="ttdeci">Type</div><div class="ttdef"><b>Definition:</b> binary_consts.h:35</div></div>
<div class="ttc" id="structignite_1_1binary_1_1MapType_html_a138cf8f1db233f607ea34aaa8a99b456"><div class="ttname"><a href="structignite_1_1binary_1_1MapType.html#a138cf8f1db233f607ea34aaa8a99b456">ignite::binary::MapType::Type</a></div><div class="ttdeci">Type</div><div class="ttdef"><b>Definition:</b> binary_consts.h:69</div></div>
<div class="ttc" id="classignite_1_1Time_html"><div class="ttname"><a href="classignite_1_1Time.html">ignite::Time</a></div><div class="ttdoc">Time type. </div><div class="ttdef"><b>Definition:</b> time.h:35</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryReader_html_a4702b526171ac0a5f28c07a29f21be1e"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryReader.html#a4702b526171ac0a5f28c07a29f21be1e">ignite::binary::BinaryReader::ReadObject</a></div><div class="ttdeci">T ReadObject(const char *fieldName)</div><div class="ttdoc">Read object. </div><div class="ttdef"><b>Definition:</b> binary_reader.h:449</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryReader_html_af946e99bc889e58b898cf1ec9a611cb1"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryReader.html#af946e99bc889e58b898cf1ec9a611cb1">ignite::binary::BinaryReader::ReadString</a></div><div class="ttdeci">std::string ReadString(const char *fieldName)</div><div class="ttdoc">Read string from the stream. </div><div class="ttdef"><b>Definition:</b> binary_reader.h:339</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryReader_html_a4781ae14d86009db8ae9476e39fce8eb"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryReader.html#a4781ae14d86009db8ae9476e39fce8eb">ignite::binary::BinaryReader::ReadArray</a></div><div class="ttdeci">BinaryArrayReader&lt; T &gt; ReadArray(const char *fieldName)</div><div class="ttdoc">Start array read. </div><div class="ttdef"><b>Definition:</b> binary_reader.h:370</div></div>
<div class="ttc" id="classignite_1_1Guid_html"><div class="ttname"><a href="classignite_1_1Guid.html">ignite::Guid</a></div><div class="ttdoc">Global universally unique identifier (GUID). </div><div class="ttdef"><b>Definition:</b> guid.h:36</div></div>
<div class="ttc" id="binary__raw__reader_8h_html"><div class="ttname"><a href="binary__raw__reader_8h.html">binary_raw_reader.h</a></div><div class="ttdoc">Declares ignite::binary::BinaryRawReader class. </div></div>
<div class="ttc" id="namespaceignite_html"><div class="ttname"><a href="namespaceignite.html">ignite</a></div><div class="ttdoc">Apache Ignite API. </div><div class="ttdef"><b>Definition:</b> cache.h:48</div></div>
<div class="ttc" id="date_8h_html"><div class="ttname"><a href="date_8h.html">date.h</a></div><div class="ttdoc">Declares ignite::Date class. </div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryRawReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawReader.html">ignite::binary::BinaryRawReader</a></div><div class="ttdoc">Binary raw reader. </div><div class="ttdef"><b>Definition:</b> binary_raw_reader.h:56</div></div>
<div class="ttc" id="classignite_1_1binary_1_1BinaryReader_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryReader.html">ignite::binary::BinaryReader</a></div><div class="ttdoc">Binary reader. </div><div class="ttdef"><b>Definition:</b> binary_reader.h:54</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 5 2018 10:33:58 for &nbsp; Apache Ignite C++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>