| <!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/1.9.0/cppdoc/binary__writer_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.9.1"/> |
| <title> Apache Ignite C++: binary_writer.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 style="padding-left: 0.5em;"> |
| <div id="projectname"> Apache Ignite C++ |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.9.1 --> |
| <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 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 List</span></a></li> |
| <li><a href="globals.html"><span>File 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_writer.h</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="binary__writer_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> <span class="comment">/*</span></div> |
| <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <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> <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> <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> <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> <span class="comment"> * (the "License"); you may not use this file except in compliance with</span></div> |
| <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <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> <span class="comment"> *</span></div> |
| <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <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> <span class="comment"> *</span></div> |
| <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <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> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div> |
| <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <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> <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> <span class="comment"> * limitations under the License.</span></div> |
| <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> */</span></div> |
| <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> |
| <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifndef _IGNITE_BINARY_BINARY_WRITER</span></div> |
| <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#define _IGNITE_BINARY_BINARY_WRITER</span></div> |
| <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> |
| <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <string></span></div> |
| <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <stdint.h></span></div> |
| <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div> |
| <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <ignite/common/common.h></span></div> |
| <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div> |
| <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="binary__raw__writer_8h.html">ignite/binary/binary_raw_writer.h</a>"</span></div> |
| <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> |
| <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span><a class="code" href="namespaceignite.html">ignite</a></div> |
| <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div> |
| <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">namespace </span>binary </div> |
| <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  {</div> |
| <div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html"> 51</a></span>  <span class="keyword">class </span>IGNITE_IMPORT_EXPORT <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html">BinaryWriter</a></div> |
| <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {</div> |
| <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html">BinaryWriter</a>(ignite::impl::binary::BinaryWriterImpl* impl);</div> |
| <div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div> |
| <div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">void</span> WriteInt8(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, int8_t val);</div> |
| <div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div> |
| <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordtype">void</span> WriteInt8Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> int8_t* val, int32_t len);</div> |
| <div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div> |
| <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">void</span> WriteBool(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keywordtype">bool</span> val);</div> |
| <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div> |
| <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordtype">void</span> WriteBoolArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <span class="keywordtype">bool</span>* val, int32_t len);</div> |
| <div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div> |
| <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">void</span> WriteInt16(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, int16_t val);</div> |
| <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div> |
| <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordtype">void</span> WriteInt16Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> int16_t* val, int32_t len);</div> |
| <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div> |
| <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">void</span> WriteUInt16(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, uint16_t val);</div> |
| <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div> |
| <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">void</span> WriteUInt16Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> uint16_t* val, int32_t len);</div> |
| <div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div> |
| <div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordtype">void</span> WriteInt32(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, int32_t val);</div> |
| <div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div> |
| <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordtype">void</span> WriteInt32Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> int32_t* val, int32_t len);</div> |
| <div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div> |
| <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">void</span> WriteInt64(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, int64_t val);</div> |
| <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div> |
| <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordtype">void</span> WriteInt64Array(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> int64_t* val, int32_t len);</div> |
| <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div> |
| <div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordtype">void</span> WriteFloat(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keywordtype">float</span> val);</div> |
| <div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div> |
| <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordtype">void</span> WriteFloatArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <span class="keywordtype">float</span>* val, int32_t len);</div> |
| <div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div> |
| <div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordtype">void</span> WriteDouble(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keywordtype">double</span> val);</div> |
| <div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div> |
| <div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordtype">void</span> WriteDoubleArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <span class="keywordtype">double</span>* val, int32_t len);</div> |
| <div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div> |
| <div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordtype">void</span> WriteGuid(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <a class="code" href="classignite_1_1Guid.html">Guid</a>& val);</div> |
| <div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div> |
| <div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordtype">void</span> WriteGuidArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <a class="code" href="classignite_1_1Guid.html">Guid</a>* val, int32_t len);</div> |
| <div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div> |
| <div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordtype">void</span> WriteDate(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <a class="code" href="classignite_1_1Date.html">Date</a>& val);</div> |
| <div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div> |
| <div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordtype">void</span> WriteDateArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <a class="code" href="classignite_1_1Date.html">Date</a>* val, <span class="keyword">const</span> int32_t len);</div> |
| <div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div> |
| <div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordtype">void</span> WriteTimestamp(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <a class="code" href="classignite_1_1Timestamp.html">Timestamp</a>& val);</div> |
| <div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div> |
| <div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordtype">void</span> WriteTimestampArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <a class="code" href="classignite_1_1Timestamp.html">Timestamp</a>* val, <span class="keyword">const</span> int32_t len);</div> |
| <div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div> |
| <div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordtype">void</span> WriteString(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <span class="keywordtype">char</span>* val);</div> |
| <div class="line"><a name="l00257"></a><span class="lineno"> 257</span> </div> |
| <div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordtype">void</span> WriteString(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> <span class="keywordtype">char</span>* val, int32_t len);</div> |
| <div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div> |
| <div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html#a28c1c0dd91cd12b5b23240708ba15048"> 273</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html#a28c1c0dd91cd12b5b23240708ba15048">WriteString</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keyword">const</span> std::string& val)</div> |
| <div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  {</div> |
| <div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  WriteString(fieldName, val.c_str());</div> |
| <div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  }</div> |
| <div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div> |
| <div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <a class="code" href="classignite_1_1binary_1_1BinaryStringArrayWriter.html">BinaryStringArrayWriter</a> WriteStringArray(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div> |
| <div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div> |
| <div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordtype">void</span> WriteNull(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName);</div> |
| <div class="line"><a name="l00292"></a><span class="lineno"> 292</span> </div> |
| <div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div> |
| <div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html#a0b517e4987220d41a7cbb315e06bf8bc"> 300</a></span>  <a class="code" href="classignite_1_1binary_1_1BinaryArrayWriter.html">BinaryArrayWriter<T></a> <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html#a0b517e4987220d41a7cbb315e06bf8bc">WriteArray</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName)</div> |
| <div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  {</div> |
| <div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  int32_t <span class="keywordtype">id</span> = impl->WriteArray(fieldName);</div> |
| <div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div> |
| <div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryArrayWriter.html">BinaryArrayWriter<T></a>(impl, id);</div> |
| <div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  }</div> |
| <div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div> |
| <div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div> |
| <div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html#af62f56c13cb21084ae63b99233b04953"> 314</a></span>  <a class="code" href="classignite_1_1binary_1_1BinaryCollectionWriter.html">BinaryCollectionWriter<T></a> <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html#af62f56c13cb21084ae63b99233b04953">WriteCollection</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName)</div> |
| <div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  {</div> |
| <div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keywordflow">return</span> WriteCollection<T>(fieldName, <a class="code" href="namespaceignite_1_1binary.html#ae9821cfa92cb2dba6f3d6cbc781feb3fa2a7f330fd0656c5eafe55942ccddcf56">IGNITE_COLLECTION_UNDEFINED</a>);</div> |
| <div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  }</div> |
| <div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div> |
| <div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div> |
| <div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html#a93c817ea027b58bedaac5a9d1495d9d8"> 327</a></span>  <a class="code" href="classignite_1_1binary_1_1BinaryCollectionWriter.html">BinaryCollectionWriter<T></a> <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html#a93c817ea027b58bedaac5a9d1495d9d8">WriteCollection</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <a class="code" href="namespaceignite_1_1binary.html#ae9821cfa92cb2dba6f3d6cbc781feb3f">ignite::binary::CollectionType</a> typ)</div> |
| <div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  {</div> |
| <div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  int32_t <span class="keywordtype">id</span> = impl->WriteCollection(fieldName, typ);</div> |
| <div class="line"><a name="l00330"></a><span class="lineno"> 330</span> </div> |
| <div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryCollectionWriter.html">BinaryCollectionWriter<T></a>(impl, id);</div> |
| <div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  }</div> |
| <div class="line"><a name="l00333"></a><span class="lineno"> 333</span> </div> |
| <div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="keyword">template</span><<span class="keyword">typename</span> InputIterator></div> |
| <div class="line"><a name="l00342"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html#a25e3f12e4e2b547571ffb0ff26242391"> 342</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html#a25e3f12e4e2b547571ffb0ff26242391">WriteCollection</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, InputIterator first, InputIterator last)</div> |
| <div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  {</div> |
| <div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  WriteCollection(fieldName, first, last, <a class="code" href="namespaceignite_1_1binary.html#ae9821cfa92cb2dba6f3d6cbc781feb3fa2a7f330fd0656c5eafe55942ccddcf56">IGNITE_COLLECTION_UNDEFINED</a>);</div> |
| <div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  }</div> |
| <div class="line"><a name="l00346"></a><span class="lineno"> 346</span> </div> |
| <div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="keyword">template</span><<span class="keyword">typename</span> InputIterator></div> |
| <div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html#a832cf8fa3f93f296ae5337b2a424fa65"> 356</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html#a832cf8fa3f93f296ae5337b2a424fa65">WriteCollection</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, InputIterator first, InputIterator last, <a class="code" href="namespaceignite_1_1binary.html#ae9821cfa92cb2dba6f3d6cbc781feb3f">CollectionType</a> typ)</div> |
| <div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  {</div> |
| <div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  impl->WriteCollection(fieldName, first, last, typ);</div> |
| <div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  }</div> |
| <div class="line"><a name="l00360"></a><span class="lineno"> 360</span> </div> |
| <div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="keyword">template</span><<span class="keyword">typename</span> K, <span class="keyword">typename</span> V></div> |
| <div class="line"><a name="l00369"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html#a4701904e354fd97accdb54af15d5ee8d"> 369</a></span>  <a class="code" href="classignite_1_1binary_1_1BinaryMapWriter.html">BinaryMapWriter<K, V></a> <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html#a4701904e354fd97accdb54af15d5ee8d">WriteMap</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName)</div> |
| <div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  {</div> |
| <div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="keywordflow">return</span> WriteMap<K, V>(fieldName, <a class="code" href="namespaceignite_1_1binary.html#a525f902c3c583b7a7ff9770ffa3877a8aa2165f3032d9826b0a29f71e52189803">IGNITE_MAP_UNDEFINED</a>);</div> |
| <div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  }</div> |
| <div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div> |
| <div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keyword">template</span><<span class="keyword">typename</span> K, <span class="keyword">typename</span> V></div> |
| <div class="line"><a name="l00382"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html#a873a974c38b3cfbc4ea2a30d7d7ca9f4"> 382</a></span>  <a class="code" href="classignite_1_1binary_1_1BinaryMapWriter.html">BinaryMapWriter<K, V></a> <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html#a873a974c38b3cfbc4ea2a30d7d7ca9f4">WriteMap</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <a class="code" href="namespaceignite_1_1binary.html#a525f902c3c583b7a7ff9770ffa3877a8">ignite::binary::MapType</a> typ)</div> |
| <div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  {</div> |
| <div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  int32_t <span class="keywordtype">id</span> = impl->WriteMap(fieldName, typ);</div> |
| <div class="line"><a name="l00385"></a><span class="lineno"> 385</span> </div> |
| <div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="keywordflow">return</span> <a class="code" href="classignite_1_1binary_1_1BinaryMapWriter.html">BinaryMapWriter<K, V></a>(impl, id);</div> |
| <div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  }</div> |
| <div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div> |
| <div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></div> |
| <div class="line"><a name="l00396"></a><span class="lineno"><a class="line" href="classignite_1_1binary_1_1BinaryWriter.html#a60ab65ac94a569d1c78eae790f9a7844"> 396</a></span>  <span class="keywordtype">void</span> <a class="code" href="classignite_1_1binary_1_1BinaryWriter.html#a60ab65ac94a569d1c78eae790f9a7844">WriteObject</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, T val)</div> |
| <div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  {</div> |
| <div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  impl->WriteObject<T>(fieldName, val);</div> |
| <div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  }</div> |
| <div class="line"><a name="l00400"></a><span class="lineno"> 400</span> </div> |
| <div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  <a class="code" href="classignite_1_1binary_1_1BinaryRawWriter.html">BinaryRawWriter</a> RawWriter();</div> |
| <div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keyword">private</span>:</div> |
| <div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  ignite::impl::binary::BinaryWriterImpl* impl;</div> |
| <div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  };</div> |
| <div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  }</div> |
| <div class="line"><a name="l00412"></a><span class="lineno"> 412</span> }</div> |
| <div class="line"><a name="l00413"></a><span class="lineno"> 413</span> </div> |
| <div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="preprocessor">#endif //_IGNITE_BINARY_BINARY_WRITER</span></div> |
| <div class="ttc" id="namespaceignite_1_1binary_html_ae9821cfa92cb2dba6f3d6cbc781feb3fa2a7f330fd0656c5eafe55942ccddcf56"><div class="ttname"><a href="namespaceignite_1_1binary.html#ae9821cfa92cb2dba6f3d6cbc781feb3fa2a7f330fd0656c5eafe55942ccddcf56">ignite::binary::IGNITE_COLLECTION_UNDEFINED</a></div><div class="ttdoc">Undefined. </div><div class="ttdef"><b>Definition:</b> binary_consts.h:40</div></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_1BinaryWriter_html_a832cf8fa3f93f296ae5337b2a424fa65"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html#a832cf8fa3f93f296ae5337b2a424fa65">ignite::binary::BinaryWriter::WriteCollection</a></div><div class="ttdeci">void WriteCollection(const char *fieldName, InputIterator first, InputIterator last, CollectionType typ)</div><div class="ttdoc">Write values in interval [first, last). </div><div class="ttdef"><b>Definition:</b> binary_writer.h:356</div></div> |
| <div class="ttc" id="binary__raw__writer_8h_html"><div class="ttname"><a href="binary__raw__writer_8h.html">binary_raw_writer.h</a></div><div class="ttdoc">Declares ignite::binary::BinaryRawWriter class. </div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryWriter_html_a25e3f12e4e2b547571ffb0ff26242391"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html#a25e3f12e4e2b547571ffb0ff26242391">ignite::binary::BinaryWriter::WriteCollection</a></div><div class="ttdeci">void WriteCollection(const char *fieldName, InputIterator first, InputIterator last)</div><div class="ttdoc">Write values in interval [first, last). </div><div class="ttdef"><b>Definition:</b> binary_writer.h:342</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryWriter_html_af62f56c13cb21084ae63b99233b04953"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html#af62f56c13cb21084ae63b99233b04953">ignite::binary::BinaryWriter::WriteCollection</a></div><div class="ttdeci">BinaryCollectionWriter< T > WriteCollection(const char *fieldName)</div><div class="ttdoc">Start collection write. </div><div class="ttdef"><b>Definition:</b> binary_writer.h:314</div></div> |
| <div class="ttc" id="namespaceignite_1_1binary_html_ae9821cfa92cb2dba6f3d6cbc781feb3f"><div class="ttname"><a href="namespaceignite_1_1binary.html#ae9821cfa92cb2dba6f3d6cbc781feb3f">ignite::binary::CollectionType</a></div><div class="ttdeci">CollectionType</div><div class="ttdoc">Binary collection types. </div><div class="ttdef"><b>Definition:</b> binary_consts.h:35</div></div> |
| <div class="ttc" id="namespaceignite_1_1binary_html_a525f902c3c583b7a7ff9770ffa3877a8aa2165f3032d9826b0a29f71e52189803"><div class="ttname"><a href="namespaceignite_1_1binary.html#a525f902c3c583b7a7ff9770ffa3877a8aa2165f3032d9826b0a29f71e52189803">ignite::binary::IGNITE_MAP_UNDEFINED</a></div><div class="ttdoc">Undefined. </div><div class="ttdef"><b>Definition:</b> binary_consts.h:71</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryWriter_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html">ignite::binary::BinaryWriter</a></div><div class="ttdoc">Binary writer. </div><div class="ttdef"><b>Definition:</b> binary_writer.h:51</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryCollectionWriter_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryCollectionWriter.html">ignite::binary::BinaryCollectionWriter</a></div><div class="ttdoc">Binary collection writer. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:182</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryWriter_html_a0b517e4987220d41a7cbb315e06bf8bc"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html#a0b517e4987220d41a7cbb315e06bf8bc">ignite::binary::BinaryWriter::WriteArray</a></div><div class="ttdeci">BinaryArrayWriter< T > WriteArray(const char *fieldName)</div><div class="ttdoc">Start array write. </div><div class="ttdef"><b>Definition:</b> binary_writer.h:300</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryArrayWriter_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryArrayWriter.html">ignite::binary::BinaryArrayWriter</a></div><div class="ttdoc">Binary array writer. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:121</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryWriter_html_a28c1c0dd91cd12b5b23240708ba15048"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html#a28c1c0dd91cd12b5b23240708ba15048">ignite::binary::BinaryWriter::WriteString</a></div><div class="ttdeci">void WriteString(const char *fieldName, const std::string &val)</div><div class="ttdoc">Write string. </div><div class="ttdef"><b>Definition:</b> binary_writer.h:273</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryStringArrayWriter_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryStringArrayWriter.html">ignite::binary::BinaryStringArrayWriter</a></div><div class="ttdoc">Binary string array writer. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:48</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryWriter_html_a4701904e354fd97accdb54af15d5ee8d"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html#a4701904e354fd97accdb54af15d5ee8d">ignite::binary::BinaryWriter::WriteMap</a></div><div class="ttdeci">BinaryMapWriter< K, V > WriteMap(const char *fieldName)</div><div class="ttdoc">Start map write. </div><div class="ttdef"><b>Definition:</b> binary_writer.h:369</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryRawWriter_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryRawWriter.html">ignite::binary::BinaryRawWriter</a></div><div class="ttdoc">Binary raw writer. </div><div class="ttdef"><b>Definition:</b> binary_raw_writer.h:55</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="classignite_1_1binary_1_1BinaryWriter_html_a93c817ea027b58bedaac5a9d1495d9d8"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html#a93c817ea027b58bedaac5a9d1495d9d8">ignite::binary::BinaryWriter::WriteCollection</a></div><div class="ttdeci">BinaryCollectionWriter< T > WriteCollection(const char *fieldName, ignite::binary::CollectionType typ)</div><div class="ttdoc">Start collection write. </div><div class="ttdef"><b>Definition:</b> binary_writer.h:327</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryWriter_html_a60ab65ac94a569d1c78eae790f9a7844"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html#a60ab65ac94a569d1c78eae790f9a7844">ignite::binary::BinaryWriter::WriteObject</a></div><div class="ttdeci">void WriteObject(const char *fieldName, T val)</div><div class="ttdoc">Write object. </div><div class="ttdef"><b>Definition:</b> binary_writer.h:396</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryMapWriter_html"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryMapWriter.html">ignite::binary::BinaryMapWriter</a></div><div class="ttdoc">Binary map writer. </div><div class="ttdef"><b>Definition:</b> binary_containers.h:241</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:45</div></div> |
| <div class="ttc" id="classignite_1_1binary_1_1BinaryWriter_html_a873a974c38b3cfbc4ea2a30d7d7ca9f4"><div class="ttname"><a href="classignite_1_1binary_1_1BinaryWriter.html#a873a974c38b3cfbc4ea2a30d7d7ca9f4">ignite::binary::BinaryWriter::WriteMap</a></div><div class="ttdeci">BinaryMapWriter< K, V > WriteMap(const char *fieldName, ignite::binary::MapType typ)</div><div class="ttdoc">Start map write. </div><div class="ttdef"><b>Definition:</b> binary_writer.h:382</div></div> |
| <div class="ttc" id="namespaceignite_1_1binary_html_a525f902c3c583b7a7ff9770ffa3877a8"><div class="ttname"><a href="namespaceignite_1_1binary.html#a525f902c3c583b7a7ff9770ffa3877a8">ignite::binary::MapType</a></div><div class="ttdeci">MapType</div><div class="ttdoc">Binary map types. </div><div class="ttdef"><b>Definition:</b> binary_consts.h:66</div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated on Thu Mar 2 2017 17:22:56 for Apache Ignite C++ by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.9.1 |
| </small></address> |
| </body> |
| </html> |