Files
rippled/WorkFile_8h_source.html
2020-04-24 01:09:47 +00:00

209 lines
29 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: WorkFile.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>
<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">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_9f69212e4c6e2ca9ec5ab59cd7b6275c.html">app</a></li><li class="navelem"><a class="el" href="dir_29f79f6f29a0be0eebc6c46bea51c866.html">misc</a></li><li class="navelem"><a class="el" href="dir_abfa528e58ef38d4526b267cc83572ec.html">detail</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">WorkFile.h</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="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> Copyright (c) 2018 Ripple Labs Inc.</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"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">//==============================================================================</span></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;<span class="preprocessor">#ifndef RIPPLE_APP_MISC_DETAIL_WORKFILE_H_INCLUDED</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define RIPPLE_APP_MISC_DETAIL_WORKFILE_H_INCLUDED</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="preprocessor">#include &lt;ripple/app/misc/detail/Work.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/ByteUtilities.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/FileUtilities.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cerrno.html">cerrno</a>&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">namespace </span>detail {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">// Work with files</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html"> 34</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1detail_1_1WorkFile.html">WorkFile</a> : <span class="keyword">public</span> <a class="code" href="classripple_1_1detail_1_1Work.html">Work</a>, <span class="keyword">public</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html">std::enable_shared_from_this</a>&lt;WorkFile&gt;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;{</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#a2ee018c71a7a41a620050f14cd6033b1"> 37</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a2ee018c71a7a41a620050f14cd6033b1">error_code</a> = boost::system::error_code;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="comment">// Override the definition in Work.h</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#a67e9e8a01353da41bb9acee606c11b48"> 39</a></span>&#160; <span class="keyword">using</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">response_type</a> = <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keyword">using</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">callback_type</a> =</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#a9c221c366a4de8519b2672fd03974e04"> 43</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;void(<a class="code" href="classripple_1_1detail_1_1WorkFile.html#a2ee018c71a7a41a620050f14cd6033b1">error_code</a> <span class="keyword">const</span>&amp;, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">response_type</a> <span class="keyword">const</span>&amp;)&gt;;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a8892b9f9dcf0359e1834a87a451f323f">WorkFile</a>(</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; path,</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; boost::asio::io_service&amp; ios,</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">callback_type</a> cb);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a7e0836b1368e33f8cd2b250b94405796">~WorkFile</a>();</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a3fc3659bbdaedbbc437701549d04fd5e">run</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a2a9d9e06a386412345c1f644309a7031">cancel</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#ab9fa1865291c51510c6db947818fffe9"> 59</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <a class="code" href="classripple_1_1detail_1_1WorkFile.html#ab9fa1865291c51510c6db947818fffe9">path_</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#a408980864c84e4565788f90928f6e038"> 60</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">callback_type</a> <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a408980864c84e4565788f90928f6e038">cb_</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#a0c2dd65db01efa8c3aff849f0211d61d"> 61</a></span>&#160; boost::asio::io_service&amp; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a0c2dd65db01efa8c3aff849f0211d61d">ios_</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#af6be8882cccb40fd7643db2373447bfa"> 62</a></span>&#160; boost::asio::io_service::strand <a class="code" href="classripple_1_1detail_1_1WorkFile.html#af6be8882cccb40fd7643db2373447bfa">strand_</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;};</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#a8892b9f9dcf0359e1834a87a451f323f"> 67</a></span>&#160;<a class="code" href="classripple_1_1detail_1_1WorkFile.html#a8892b9f9dcf0359e1834a87a451f323f">WorkFile::WorkFile</a>(</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; path,</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; boost::asio::io_service&amp; ios,</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">callback_type</a> cb)</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; : path_(path), cb_(<a class="code" href="namespacestd.html">std</a>::move(cb)), ios_(ios), strand_(ios)</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;{</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;}</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#a7e0836b1368e33f8cd2b250b94405796"> 75</a></span>&#160;<a class="code" href="classripple_1_1detail_1_1WorkFile.html#a7e0836b1368e33f8cd2b250b94405796">WorkFile::~WorkFile</a>()</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;{</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1detail_1_1WorkFile.html#a408980864c84e4565788f90928f6e038">cb_</a>)</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a408980864c84e4565788f90928f6e038">cb_</a>(make_error_code(boost::system::errc::interrupted), {});</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;}</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#a3fc3659bbdaedbbc437701549d04fd5e"> 82</a></span>&#160;<a class="code" href="classripple_1_1detail_1_1WorkFile.html#a3fc3659bbdaedbbc437701549d04fd5e">WorkFile::run</a>()</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;{</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="classripple_1_1detail_1_1WorkFile.html#af6be8882cccb40fd7643db2373447bfa">strand_</a>.running_in_this_thread())</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a0c2dd65db01efa8c3aff849f0211d61d">ios_</a>.post(</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#af6be8882cccb40fd7643db2373447bfa">strand_</a>.wrap(<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/bind.html">std::bind</a>(&amp;<a class="code" href="classripple_1_1detail_1_1WorkFile.html#a3fc3659bbdaedbbc437701549d04fd5e">WorkFile::run</a>, <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this/shared_from_this.html">shared_from_this</a>())));</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a2ee018c71a7a41a620050f14cd6033b1">error_code</a> ec;</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> fileContents = <a class="code" href="namespaceripple.html#ab2a02635f3d304617a7b59a60d13cc3b">getFileContents</a>(ec, <a class="code" href="classripple_1_1detail_1_1WorkFile.html#ab9fa1865291c51510c6db947818fffe9">path_</a>, <a class="code" href="namespaceripple.html#a13d7c6c34d30731bbc221f629e03f8db">megabytes</a>(1));</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; assert(<a class="code" href="classripple_1_1detail_1_1WorkFile.html#a408980864c84e4565788f90928f6e038">cb_</a>);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a408980864c84e4565788f90928f6e038">cb_</a>(ec, fileContents);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="code" href="classripple_1_1detail_1_1WorkFile.html#a408980864c84e4565788f90928f6e038">cb_</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;}</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1WorkFile.html#a2a9d9e06a386412345c1f644309a7031"> 97</a></span>&#160;<a class="code" href="classripple_1_1detail_1_1WorkFile.html#a2a9d9e06a386412345c1f644309a7031">WorkFile::cancel</a>()</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;{</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="comment">// Nothing to do. Either it finished in run, or it didn&#39;t start.</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;}</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;} <span class="comment">// namespace detail</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html_a0c2dd65db01efa8c3aff849f0211d61d"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html#a0c2dd65db01efa8c3aff849f0211d61d">ripple::detail::WorkFile::ios_</a></div><div class="ttdeci">boost::asio::io_service &amp; ios_</div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00061">WorkFile.h:61</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html">ripple::detail::WorkFile</a></div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00034">WorkFile.h:34</a></div></div>
<div class="ttc" id="abind_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/bind.html">std::bind</a></div><div class="ttdeci">T bind(T... args)</div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html_a2ee018c71a7a41a620050f14cd6033b1"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html#a2ee018c71a7a41a620050f14cd6033b1">ripple::detail::WorkFile::error_code</a></div><div class="ttdeci">boost::system::error_code error_code</div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00037">WorkFile.h:37</a></div></div>
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function&lt; void(error_code const &amp;, response_type const &amp;)&gt;</a></div></div>
<div class="ttc" id="ashared_from_this_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this/shared_from_this.html">std::enable_shared_from_this&lt; WorkFile &gt;::shared_from_this</a></div><div class="ttdeci">T shared_from_this(T... args)</div></div>
<div class="ttc" id="anamespaceripple_html_a13d7c6c34d30731bbc221f629e03f8db"><div class="ttname"><a href="namespaceripple.html#a13d7c6c34d30731bbc221f629e03f8db">ripple::megabytes</a></div><div class="ttdeci">constexpr auto megabytes(T value) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="ByteUtilities_8h_source.html#l00034">ByteUtilities.h:34</a></div></div>
<div class="ttc" id="aenable_shared_from_this_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html">std::enable_shared_from_this</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html_a408980864c84e4565788f90928f6e038"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html#a408980864c84e4565788f90928f6e038">ripple::detail::WorkFile::cb_</a></div><div class="ttdeci">callback_type cb_</div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00060">WorkFile.h:60</a></div></div>
<div class="ttc" id="anamespaceripple_html_ab2a02635f3d304617a7b59a60d13cc3b"><div class="ttname"><a href="namespaceripple.html#ab2a02635f3d304617a7b59a60d13cc3b">ripple::getFileContents</a></div><div class="ttdeci">std::string getFileContents(boost::system::error_code &amp;ec, boost::filesystem::path const &amp;sourcePath, boost::optional&lt; std::size_t &gt; maxSize=boost::none)</div><div class="ttdef"><b>Definition:</b> <a href="FileUtilities_8cpp_source.html#l00025">FileUtilities.cpp:25</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html_a8892b9f9dcf0359e1834a87a451f323f"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html#a8892b9f9dcf0359e1834a87a451f323f">ripple::detail::WorkFile::WorkFile</a></div><div class="ttdeci">WorkFile(std::string const &amp;path, boost::asio::io_service &amp;ios, callback_type cb)</div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00067">WorkFile.h:67</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html_a7e0836b1368e33f8cd2b250b94405796"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html#a7e0836b1368e33f8cd2b250b94405796">ripple::detail::WorkFile::~WorkFile</a></div><div class="ttdeci">~WorkFile()</div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00075">WorkFile.h:75</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html_a3fc3659bbdaedbbc437701549d04fd5e"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html#a3fc3659bbdaedbbc437701549d04fd5e">ripple::detail::WorkFile::run</a></div><div class="ttdeci">void run() override</div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00082">WorkFile.h:82</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html_ab9fa1865291c51510c6db947818fffe9"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html#ab9fa1865291c51510c6db947818fffe9">ripple::detail::WorkFile::path_</a></div><div class="ttdeci">std::string path_</div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00059">WorkFile.h:59</a></div></div>
<div class="ttc" id="acerrno_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cerrno.html">cerrno</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
<div class="ttc" id="acassert_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html_af6be8882cccb40fd7643db2373447bfa"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html#af6be8882cccb40fd7643db2373447bfa">ripple::detail::WorkFile::strand_</a></div><div class="ttdeci">boost::asio::io_service::strand strand_</div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00062">WorkFile.h:62</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1Work_html"><div class="ttname"><a href="classripple_1_1detail_1_1Work.html">ripple::detail::Work</a></div><div class="ttdef"><b>Definition:</b> <a href="Work_8h_source.html#l00033">Work.h:33</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1WorkFile_html_a2a9d9e06a386412345c1f644309a7031"><div class="ttname"><a href="classripple_1_1detail_1_1WorkFile.html#a2a9d9e06a386412345c1f644309a7031">ripple::detail::WorkFile::cancel</a></div><div class="ttdeci">void cancel() override</div><div class="ttdef"><b>Definition:</b> <a href="WorkFile_8h_source.html#l00097">WorkFile.h:97</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>