athena/_d_n_a_8hpp_source.html

158 lines
52 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.11"/>
<title>Athena IO Library: include/athena/DNA.hpp 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="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">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</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" />
</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">Athena IO Library
</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="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>
</ul>
</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">
$(document).ready(function(){initNavTree('_d_n_a_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="headertitle">
<div class="title">DNA.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef DNA_HPP</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define DNA_HPP</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">/* BIG FAT WARNING!!!</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * The type-structure of this file is expected to remain consistent for &#39;atdna&#39;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Any changes to the types or namespacing must be reflected in &#39;atdna/main.cpp&#39;</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;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &quot;Global.hpp&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &quot;IStreamReader.hpp&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &quot;IStreamWriter.hpp&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceathena.html">athena</a></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;{</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">namespace </span>io</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;{</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">/* forward-declaration dance for recursively-derived types */</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> sizeVar, Endian VE&gt;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_buffer.html"> 24</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_buffer.html">Buffer</a>;</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="keyword">template</span> &lt;atInt32 sizeVar, Endian VE&gt;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_string.html"> 27</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_string.html">String</a>;</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="keyword">template</span> &lt;atInt32 sizeVar, Endian VE&gt;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_w_string.html"> 30</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_w_string.html">WString</a>;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">template</span> &lt;atInt32 sizeVar, Endian VE&gt;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_w_string_as_string.html"> 33</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_w_string_as_string.html">WStringAsString</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">template</span> &lt;Endian DNAE&gt;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a.html"> 45</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA</a></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;{</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA</a>() {}</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html#a1ffe91a70b3120b7307644ecb2a49d66">read</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_reader.html">IStreamReader</a>&amp;)=0;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html#a09693973df2cbdf1304dab0de1627661">write</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html">IStreamWriter</a>&amp;) <span class="keyword">const</span>=0;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html#a90e83466b25b80739ac7e001070e984e">binarySize</a>(<span class="keywordtype">size_t</span> __isz) <span class="keyword">const</span>=0;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, Endian VE = DNAE&gt;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a.html#ae3064c2a8e289c5020037c5593e2b008"> 70</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html#ae3064c2a8e289c5020037c5593e2b008">Value</a> = T;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keywordtype">size_t</span> cntVar, Endian VE = DNAE&gt;</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a.html#a5852dadd55deeca4f56f0cffb131f477"> 79</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html#a5852dadd55deeca4f56f0cffb131f477">Vector</a> = std::vector&lt;T&gt;;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> sizeVar&gt;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a.html#a9b0fc9b799276a3f0ad218cb01cdcb67"> 87</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structathena_1_1io_1_1_buffer.html">Buffer</a> = <span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_buffer.html">athena::io::Buffer</a>&lt;sizeVar, DNAE&gt;;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">template</span> &lt;atInt32 sizeVar = -1&gt;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a.html#a00c28a9622f6cc5ccb42e3a1d203ff1d"> 95</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structathena_1_1io_1_1_string.html">String</a> = <span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_string.html">athena::io::String</a>&lt;sizeVar, DNAE&gt;;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keyword">template</span> &lt;atInt32 sizeVar = -1, Endian VE = DNAE&gt;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a.html#aa2819c34f3b571308213d78d5d6d4d3c"> 103</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structathena_1_1io_1_1_w_string.html">WString</a> = <span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_w_string.html">athena::io::WString</a>&lt;sizeVar, VE&gt;;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keyword">template</span> &lt;atInt32 sizeVar = -1&gt;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a.html#af39bd99243038fefee2390dca0de760d"> 111</a></span>&#160; <span class="keyword">using</span> <a class="code" href="structathena_1_1io_1_1_w_string_as_string.html">WStringAsString</a> = <span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_w_string_as_string.html">athena::io::WStringAsString</a>&lt;sizeVar, DNAE&gt;;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keyword">template</span> &lt;off_t offset, SeekOrigin direction&gt;</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a_1_1_seek.html"> 119</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_d_n_a_1_1_seek.html">Seek</a> {};</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> align&gt;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a_1_1_align.html"> 126</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_d_n_a_1_1_align.html">Align</a> {};</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a_1_1_delete.html"> 131</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_d_n_a_1_1_delete.html">Delete</a> {};</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_d_n_a.html#aba07c0082c48d919ade16f09a37a19be"> 140</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html#aba07c0082c48d919ade16f09a37a19be">__EnumerateSize</a>(<span class="keywordtype">size_t</span> __isz, <span class="keyword">const</span> T&amp; v)</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; val : v)</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; __isz = val.binarySize(__isz);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordflow">return</span> __isz;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; }</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;};</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="keyword">template</span> &lt;<span class="keywordtype">size_t</span> sizeVar, Endian VE&gt;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_buffer.html">Buffer</a> : <span class="keyword">public</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA</a>&lt;VE&gt;, <span class="keyword">public</span> std::unique_ptr&lt;atUint8[]&gt;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;{</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keyword">typename</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA&lt;VE&gt;::Delete</a> expl;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_buffer.html#a6f04023324a82e215b0412fcf2512b91"> 155</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_buffer.html#a6f04023324a82e215b0412fcf2512b91">read</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_reader.html">IStreamReader</a>&amp; reader)</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; reset(<span class="keyword">new</span> atUint8[sizeVar]);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; reader.<a class="code" href="classathena_1_1io_1_1_i_stream_reader.html#ad90233be645b52f421b1560d63cd07bd">readUBytesToBuf</a>(<span class="keyword">get</span>(), sizeVar);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; }</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_buffer.html#a1d71dc4060e9ce600fb7eaf62c3b7318"> 160</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_buffer.html#a1d71dc4060e9ce600fb7eaf62c3b7318">write</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html">IStreamWriter</a>&amp; writer)<span class="keyword"> const</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; writer.<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">writeUBytes</a>(<span class="keyword">get</span>(), sizeVar);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; }</div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_buffer.html#a9c2f462edb3e08337b94ad7ab5c2f2c6"> 164</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structathena_1_1io_1_1_buffer.html#a9c2f462edb3e08337b94ad7ab5c2f2c6">binarySize</a>(<span class="keywordtype">size_t</span> __isz)<span class="keyword"> const</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordflow">return</span> __isz + sizeVar;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; }</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;};</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;<span class="keyword">template</span> &lt;atInt32 sizeVar, Endian VE&gt;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;<span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_string.html">String</a> : <span class="keyword">public</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA</a>&lt;VE&gt;, <span class="keyword">public</span> std::string</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;{</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keyword">typename</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA&lt;VE&gt;::Delete</a> expl;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_string.html#a444b2b154084e3e7e12d4b300670a3e9"> 177</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_string.html#a444b2b154084e3e7e12d4b300670a3e9">read</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_reader.html">IStreamReader</a>&amp; reader)</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; {this-&gt;assign(std::move(reader.<a class="code" href="classathena_1_1io_1_1_i_stream_reader.html#a525eeaf5c6571b4067a35ab951a66703">readString</a>(sizeVar)));}</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_string.html#a73409b4025e3dac314d9cef000286f05"> 179</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_string.html#a73409b4025e3dac314d9cef000286f05">write</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html">IStreamWriter</a>&amp; writer)<span class="keyword"> const</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="keyword"> </span>{writer.<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a23b7b46e18bfa2cac97141a90b46ca97">writeString</a>(*<span class="keyword">this</span>, sizeVar);}</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_string.html#ac37e667786002f38643b6aaedc1b0b7e"> 181</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structathena_1_1io_1_1_string.html#ac37e667786002f38643b6aaedc1b0b7e">binarySize</a>(<span class="keywordtype">size_t</span> __isz)<span class="keyword"> const</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;<span class="keyword"> </span>{<span class="keywordflow">return</span> __isz + ((sizeVar&lt;0)?(this-&gt;size()+1):sizeVar);}</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; std::string&amp; operator=(<span class="keyword">const</span> std::string&amp; __str)</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; {<span class="keywordflow">return</span> this-&gt;assign(__str);}</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; std::string&amp; operator=(std::string&amp;&amp; __str)</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; {this-&gt;swap(__str); <span class="keywordflow">return</span> *<span class="keyword">this</span>;}</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;};</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;<span class="keyword">template</span> &lt;atInt32 sizeVar, Endian VE&gt;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;<span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_w_string.html">WString</a> : <span class="keyword">public</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA</a>&lt;VE&gt;, <span class="keyword">public</span> std::wstring</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;{</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keyword">typename</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA&lt;VE&gt;::Delete</a> expl;</div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_w_string.html#ab77da684bb6b3632608bc10471305333"> 196</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_w_string.html#ab77da684bb6b3632608bc10471305333">read</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_reader.html">IStreamReader</a>&amp; reader)</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; {</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; reader.setEndian(VE);</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; this-&gt;assign(std::move(reader.<a class="code" href="classathena_1_1io_1_1_i_stream_reader.html#aebbd3a9f64e552d76a2392e2ae3fe9f8">readWString</a>(sizeVar)));</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; }</div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_w_string.html#a36e7cdd9a2fc0ee25d7f16b68852fa22"> 201</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_w_string.html#a36e7cdd9a2fc0ee25d7f16b68852fa22">write</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html">IStreamWriter</a>&amp; writer)<span class="keyword"> const</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; writer.setEndian(VE);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; writer.<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a5fdba54e5835aecb20aa18373729c440">writeWString</a>(*<span class="keyword">this</span>, sizeVar);</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; }</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_w_string.html#adba389a039c69a3c6af86381bf2d97ad"> 206</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structathena_1_1io_1_1_w_string.html#adba389a039c69a3c6af86381bf2d97ad">binarySize</a>(<span class="keywordtype">size_t</span> __isz)<span class="keyword"> const</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;<span class="keyword"> </span>{<span class="keywordflow">return</span> __isz + (((sizeVar&lt;0)?(this-&gt;size()+1):sizeVar)*2);}</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; std::wstring&amp; operator=(<span class="keyword">const</span> std::wstring&amp; __str)</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; {<span class="keywordflow">return</span> this-&gt;assign(__str);}</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; std::wstring&amp; operator=(std::wstring&amp;&amp; __str)</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; {this-&gt;swap(__str); <span class="keywordflow">return</span> *<span class="keyword">this</span>;}</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;};</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;<span class="keyword">template</span> &lt;atInt32 sizeVar, Endian VE&gt;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;<span class="keyword">struct </span><a class="code" href="structathena_1_1io_1_1_w_string_as_string.html">WStringAsString</a> : <span class="keyword">public</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA</a>&lt;VE&gt;, <span class="keyword">public</span> std::string</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;{</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keyword">typename</span> <a class="code" href="structathena_1_1io_1_1_d_n_a.html">DNA&lt;VE&gt;::Delete</a> expl;</div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_w_string_as_string.html#a7df789f2637078777affc17462be30b7"> 221</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_w_string_as_string.html#a7df789f2637078777affc17462be30b7">read</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_reader.html">IStreamReader</a>&amp; reader)</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; {*<span class="keyword">this</span> = reader.<a class="code" href="classathena_1_1io_1_1_i_stream_reader.html#ac1e2c0114677d05fd2a79cc5f7fb35a7">readWStringAsString</a>(sizeVar);}</div><div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_w_string_as_string.html#aa1400b5412542c0323adb91a40651df6"> 223</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structathena_1_1io_1_1_w_string_as_string.html#aa1400b5412542c0323adb91a40651df6">write</a>(<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html">IStreamWriter</a>&amp; writer)<span class="keyword"> const</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;<span class="keyword"> </span>{writer.<a class="code" href="classathena_1_1io_1_1_i_stream_writer.html#a17261b2ee9c1d716589120b18cd9339b">writeStringAsWString</a>(*<span class="keyword">this</span>, sizeVar);}</div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="structathena_1_1io_1_1_w_string_as_string.html#a0769b8ed22bad841116817058a1f082b"> 225</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structathena_1_1io_1_1_w_string_as_string.html#a0769b8ed22bad841116817058a1f082b">binarySize</a>(<span class="keywordtype">size_t</span> __isz)<span class="keyword"> const</span></div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160;<span class="keyword"> </span>{<span class="keywordflow">return</span> __isz + (((sizeVar&lt;0)?(this-&gt;size()+1):sizeVar)*2);}</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; std::string&amp; operator=(<span class="keyword">const</span> std::string&amp; __str)</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; {<span class="keywordflow">return</span> this-&gt;assign(__str);}</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; std::string&amp; operator=(std::string&amp;&amp; __str)</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; {this-&gt;swap(__str); <span class="keywordflow">return</span> *<span class="keyword">this</span>;}</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160;};</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160;<span class="preprocessor">#define DECL_DNA \</span></div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160;<span class="preprocessor"> void read(athena::io::IStreamReader&amp;); \</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160;<span class="preprocessor"> void write(athena::io::IStreamWriter&amp;) const; \</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;<span class="preprocessor"> size_t binarySize(size_t __isz) const;</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160;<span class="preprocessor">#define DECL_EXPLICIT_DNA \</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160;<span class="preprocessor"> void read(athena::io::IStreamReader&amp;); \</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;<span class="preprocessor"> void write(athena::io::IStreamWriter&amp;) const; \</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160;<span class="preprocessor"> size_t binarySize(size_t __isz) const; \</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160;<span class="preprocessor"> Delete __dna_delete;</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160;<span class="preprocessor">#ifdef __clang__</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160;<span class="preprocessor">#define DNA_COUNT(cnt) sizeof(cnt)</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160;<span class="preprocessor">#define DNA_COUNT(cnt) 0</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160;}</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160;}</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160;<span class="preprocessor">#endif // DNA_HPP</span></div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160;</div><div class="ttc" id="structathena_1_1io_1_1_d_n_a_html_a90e83466b25b80739ac7e001070e984e"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a.html#a90e83466b25b80739ac7e001070e984e">athena::io::DNA::binarySize</a></div><div class="ttdeci">virtual size_t binarySize(size_t __isz) const =0</div><div class="ttdoc">Common virtual binary size computation for all DNA types. </div></div>
<div class="ttc" id="structathena_1_1io_1_1_w_string_html_a36e7cdd9a2fc0ee25d7f16b68852fa22"><div class="ttname"><a href="structathena_1_1io_1_1_w_string.html#a36e7cdd9a2fc0ee25d7f16b68852fa22">athena::io::WString::write</a></div><div class="ttdeci">void write(IStreamWriter &amp;writer) const </div><div class="ttdoc">Common virtual write function for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00201">DNA.hpp:201</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_w_string_html_adba389a039c69a3c6af86381bf2d97ad"><div class="ttname"><a href="structathena_1_1io_1_1_w_string.html#adba389a039c69a3c6af86381bf2d97ad">athena::io::WString::binarySize</a></div><div class="ttdeci">size_t binarySize(size_t __isz) const </div><div class="ttdoc">Common virtual binary size computation for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00206">DNA.hpp:206</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_d_n_a_1_1_delete_html"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a_1_1_delete.html">athena::io::DNA::Delete</a></div><div class="ttdoc">Meta Template preventing atdna from emitting read/write implementations. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00131">DNA.hpp:131</a></div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_reader_html_ac1e2c0114677d05fd2a79cc5f7fb35a7"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_reader.html#ac1e2c0114677d05fd2a79cc5f7fb35a7">athena::io::IStreamReader::readWStringAsString</a></div><div class="ttdeci">std::string readWStringAsString(atInt32 fixedLen=-1)</div><div class="ttdoc">Reads a wide-char string (using endianness from setEndian), converts to UTF8 and advances the positio...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_reader_8hpp_source.html#l00881">IStreamReader.hpp:881</a></div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_reader_html_aebbd3a9f64e552d76a2392e2ae3fe9f8"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_reader.html#aebbd3a9f64e552d76a2392e2ae3fe9f8">athena::io::IStreamReader::readWString</a></div><div class="ttdeci">std::wstring readWString(atInt32 fixedLen=-1)</div><div class="ttdoc">Reads a wstring and advances the position in the file. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_reader_8hpp_source.html#l01035">IStreamReader.hpp:1035</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_d_n_a_html_a09693973df2cbdf1304dab0de1627661"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a.html#a09693973df2cbdf1304dab0de1627661">athena::io::DNA::write</a></div><div class="ttdeci">virtual void write(IStreamWriter &amp;) const =0</div><div class="ttdoc">Common virtual write function for all DNA types. </div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a5fdba54e5835aecb20aa18373729c440"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a5fdba54e5835aecb20aa18373729c440">athena::io::IStreamWriter::writeWString</a></div><div class="ttdeci">void writeWString(const std::wstring &amp;str, atInt32 fixedLen=-1)</div><div class="ttdoc">Writes an wstring to the buffer and advances the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00897">IStreamWriter.hpp:897</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_d_n_a_html"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a.html">athena::io::DNA</a></div><div class="ttdoc">Base DNA class used against &amp;#39;atdna&amp;#39;. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00045">DNA.hpp:45</a></div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a643d08a3c8fd0d8774c44188663f8de4"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a643d08a3c8fd0d8774c44188663f8de4">athena::io::IStreamWriter::writeUBytes</a></div><div class="ttdeci">virtual void writeUBytes(const atUint8 *data, atUint64 len)=0</div><div class="ttdoc">Writes the given buffer with the specified length, buffers can be bigger than the length however it&amp;#39;s...</div></div>
<div class="ttc" id="structathena_1_1io_1_1_string_html_ac37e667786002f38643b6aaedc1b0b7e"><div class="ttname"><a href="structathena_1_1io_1_1_string.html#ac37e667786002f38643b6aaedc1b0b7e">athena::io::String::binarySize</a></div><div class="ttdeci">size_t binarySize(size_t __isz) const </div><div class="ttdoc">Common virtual binary size computation for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00181">DNA.hpp:181</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_w_string_as_string_html_a7df789f2637078777affc17462be30b7"><div class="ttname"><a href="structathena_1_1io_1_1_w_string_as_string.html#a7df789f2637078777affc17462be30b7">athena::io::WStringAsString::read</a></div><div class="ttdeci">void read(IStreamReader &amp;reader)</div><div class="ttdoc">Common virtual read function for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00221">DNA.hpp:221</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_w_string_as_string_html"><div class="ttname"><a href="structathena_1_1io_1_1_w_string_as_string.html">athena::io::WStringAsString</a></div><div class="ttdoc">Concrete converting-wstring type used by DNA::WStringAsString. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00033">DNA.hpp:33</a></div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_reader_html"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_reader.html">athena::io::IStreamReader</a></div><div class="ttdoc">The IStreamReader class defines a basic API for reading from streams, Implementors are provided with ...</div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_reader_8hpp_source.html#l00018">IStreamReader.hpp:18</a></div></div>
<div class="ttc" id="namespaceathena_html"><div class="ttname"><a href="namespaceathena.html">athena</a></div><div class="ttdef"><b>Definition:</b> <a href="_a_l_t_t_p_enums_8hpp_source.html#l00006">ALTTPEnums.hpp:6</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_buffer_html"><div class="ttname"><a href="structathena_1_1io_1_1_buffer.html">athena::io::Buffer</a></div><div class="ttdoc">Concrete buffer type used by DNA::Buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00024">DNA.hpp:24</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_buffer_html_a6f04023324a82e215b0412fcf2512b91"><div class="ttname"><a href="structathena_1_1io_1_1_buffer.html#a6f04023324a82e215b0412fcf2512b91">athena::io::Buffer::read</a></div><div class="ttdeci">void read(IStreamReader &amp;reader)</div><div class="ttdoc">Common virtual read function for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00155">DNA.hpp:155</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_d_n_a_html_a1ffe91a70b3120b7307644ecb2a49d66"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a.html#a1ffe91a70b3120b7307644ecb2a49d66">athena::io::DNA::read</a></div><div class="ttdeci">virtual void read(IStreamReader &amp;)=0</div><div class="ttdoc">Common virtual read function for all DNA types. </div></div>
<div class="ttc" id="structathena_1_1io_1_1_buffer_html_a9c2f462edb3e08337b94ad7ab5c2f2c6"><div class="ttname"><a href="structathena_1_1io_1_1_buffer.html#a9c2f462edb3e08337b94ad7ab5c2f2c6">athena::io::Buffer::binarySize</a></div><div class="ttdeci">size_t binarySize(size_t __isz) const </div><div class="ttdoc">Common virtual binary size computation for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00164">DNA.hpp:164</a></div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a17261b2ee9c1d716589120b18cd9339b"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a17261b2ee9c1d716589120b18cd9339b">athena::io::IStreamWriter::writeStringAsWString</a></div><div class="ttdeci">void writeStringAsWString(const std::string &amp;str, atInt32 fixedLen=-1)</div><div class="ttdoc">Converts a UTF8 string to a wide-char string in the buffer and advances the buffer. It also swaps the bytes depending on the platform and Stream settings. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00686">IStreamWriter.hpp:686</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_w_string_as_string_html_aa1400b5412542c0323adb91a40651df6"><div class="ttname"><a href="structathena_1_1io_1_1_w_string_as_string.html#aa1400b5412542c0323adb91a40651df6">athena::io::WStringAsString::write</a></div><div class="ttdeci">void write(IStreamWriter &amp;writer) const </div><div class="ttdoc">Common virtual write function for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00223">DNA.hpp:223</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_w_string_as_string_html_a0769b8ed22bad841116817058a1f082b"><div class="ttname"><a href="structathena_1_1io_1_1_w_string_as_string.html#a0769b8ed22bad841116817058a1f082b">athena::io::WStringAsString::binarySize</a></div><div class="ttdeci">size_t binarySize(size_t __isz) const </div><div class="ttdoc">Common virtual binary size computation for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00225">DNA.hpp:225</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_w_string_html"><div class="ttname"><a href="structathena_1_1io_1_1_w_string.html">athena::io::WString</a></div><div class="ttdoc">Concrete wstring type used by DNA::WString. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00030">DNA.hpp:30</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_string_html_a444b2b154084e3e7e12d4b300670a3e9"><div class="ttname"><a href="structathena_1_1io_1_1_string.html#a444b2b154084e3e7e12d4b300670a3e9">athena::io::String::read</a></div><div class="ttdeci">void read(IStreamReader &amp;reader)</div><div class="ttdoc">Common virtual read function for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00177">DNA.hpp:177</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_buffer_html_a1d71dc4060e9ce600fb7eaf62c3b7318"><div class="ttname"><a href="structathena_1_1io_1_1_buffer.html#a1d71dc4060e9ce600fb7eaf62c3b7318">athena::io::Buffer::write</a></div><div class="ttdeci">void write(IStreamWriter &amp;writer) const </div><div class="ttdoc">Common virtual write function for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00160">DNA.hpp:160</a></div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_reader_html_a525eeaf5c6571b4067a35ab951a66703"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_reader.html#a525eeaf5c6571b4067a35ab951a66703">athena::io::IStreamReader::readString</a></div><div class="ttdeci">std::string readString(atInt32 fixedLen=-1)</div><div class="ttdoc">Reads a string and advances the position in the file. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_reader_8hpp_source.html#l01003">IStreamReader.hpp:1003</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_d_n_a_1_1_align_html"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a_1_1_align.html">athena::io::DNA::Align</a></div><div class="ttdoc">Meta Template signaling atdna to insert an aligning stream seek where it&amp;#39;s used. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00126">DNA.hpp:126</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_d_n_a_1_1_seek_html"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a_1_1_seek.html">athena::io::DNA::Seek</a></div><div class="ttdoc">Meta Template signaling atdna to insert a stream seek where it&amp;#39;s used. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00119">DNA.hpp:119</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_d_n_a_html_ae3064c2a8e289c5020037c5593e2b008"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a.html#ae3064c2a8e289c5020037c5593e2b008">athena::io::DNA&lt; VE &gt;::Value</a></div><div class="ttdeci">T Value</div><div class="ttdoc">Template type signaling atdna to capture the value where it&amp;#39;s used. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00070">DNA.hpp:70</a></div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html">athena::io::IStreamWriter</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00012">IStreamWriter.hpp:12</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_string_html_a73409b4025e3dac314d9cef000286f05"><div class="ttname"><a href="structathena_1_1io_1_1_string.html#a73409b4025e3dac314d9cef000286f05">athena::io::String::write</a></div><div class="ttdeci">void write(IStreamWriter &amp;writer) const </div><div class="ttdoc">Common virtual write function for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00179">DNA.hpp:179</a></div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_writer_html_a23b7b46e18bfa2cac97141a90b46ca97"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_writer.html#a23b7b46e18bfa2cac97141a90b46ca97">athena::io::IStreamWriter::writeString</a></div><div class="ttdeci">void writeString(const std::string &amp;str, atInt32 fixedLen=-1)</div><div class="ttdoc">Writes an string to the buffer and advances the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_i_stream_writer_8hpp_source.html#l00858">IStreamWriter.hpp:858</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_string_html"><div class="ttname"><a href="structathena_1_1io_1_1_string.html">athena::io::String</a></div><div class="ttdoc">Concrete string type used by DNA::String. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00027">DNA.hpp:27</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_d_n_a_html_a5852dadd55deeca4f56f0cffb131f477"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a.html#a5852dadd55deeca4f56f0cffb131f477">athena::io::DNA&lt; VE &gt;::Vector</a></div><div class="ttdeci">std::vector&lt; T &gt; Vector</div><div class="ttdoc">Template type wrapping std::vector and signaling atdna to manipulate it where it&amp;#39;s used...</div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00079">DNA.hpp:79</a></div></div>
<div class="ttc" id="classathena_1_1io_1_1_i_stream_reader_html_ad90233be645b52f421b1560d63cd07bd"><div class="ttname"><a href="classathena_1_1io_1_1_i_stream_reader.html#ad90233be645b52f421b1560d63cd07bd">athena::io::IStreamReader::readUBytesToBuf</a></div><div class="ttdeci">virtual atUint64 readUBytesToBuf(void *buf, atUint64 len)=0</div><div class="ttdoc">Attempts to read a fixed length of data into a pre-allocated buffer, this function is client defined ...</div></div>
<div class="ttc" id="structathena_1_1io_1_1_d_n_a_html_aba07c0082c48d919ade16f09a37a19be"><div class="ttname"><a href="structathena_1_1io_1_1_d_n_a.html#aba07c0082c48d919ade16f09a37a19be">athena::io::DNA::__EnumerateSize</a></div><div class="ttdeci">static size_t __EnumerateSize(size_t __isz, const T &amp;v)</div><div class="ttdoc">Internal DNA helper for accumulating binarySize. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00140">DNA.hpp:140</a></div></div>
<div class="ttc" id="structathena_1_1io_1_1_w_string_html_ab77da684bb6b3632608bc10471305333"><div class="ttname"><a href="structathena_1_1io_1_1_w_string.html#ab77da684bb6b3632608bc10471305333">athena::io::WString::read</a></div><div class="ttdeci">void read(IStreamReader &amp;reader)</div><div class="ttdoc">Common virtual read function for all DNA types. </div><div class="ttdef"><b>Definition:</b> <a href="_d_n_a_8hpp_source.html#l00196">DNA.hpp:196</a></div></div>
</div><!-- fragment --></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="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9b3fbfcb7fc609b7105d1ff63111043b.html">athena</a></li><li class="navelem"><b>DNA.hpp</b></li>
<li class="footer">Generated on Sat Sep 17 2016 13:10:08 for Athena IO Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
</ul>
</div>
</body>
</html>