This commit is contained in:
nbougalis
2020-04-15 21:15:02 +00:00
commit 4ad595bf18
12373 changed files with 1478990 additions and 0 deletions

View File

@@ -0,0 +1,412 @@
<!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: ripple::DatabaseCon Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="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="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="classripple_1_1DatabaseCon.html">DatabaseCon</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classripple_1_1DatabaseCon-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ripple::DatabaseCon Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for ripple::DatabaseCon:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1DatabaseCon__coll__graph.png" border="0" usemap="#ripple_1_1DatabaseCon_coll__map" alt="Collaboration graph"/></div>
<map name="ripple_1_1DatabaseCon_coll__map" id="ripple_1_1DatabaseCon_coll__map">
<area shape="rect" title=" " alt="" coords="13,199,168,225"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html" title=" " alt="" coords="5,95,176,136"/>
<area shape="rect" href="classripple_1_1Checkpointer.html" title=" " alt="" coords="14,5,167,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1DatabaseCon_1_1Setup.html">Setup</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a37732a53d4e02a8fea8cfe68fa71dc36"><td class="memTemplParams" colspan="2">template&lt;std::size_t N, std::size_t M&gt; </td></tr>
<tr class="memitem:a37732a53d4e02a8fea8cfe68fa71dc36"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classripple_1_1DatabaseCon.html#a37732a53d4e02a8fea8cfe68fa71dc36">DatabaseCon</a> (<a class="el" href="structripple_1_1DatabaseCon_1_1Setup.html">Setup</a> const &amp;setup, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;DBName, <a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, N &gt; const &amp;pragma, <a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, M &gt; const &amp;initSQL)</td></tr>
<tr class="separator:a37732a53d4e02a8fea8cfe68fa71dc36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acde4aaf22e4d89c4c300cd61d7a1d467"><td class="memTemplParams" colspan="2">template&lt;std::size_t N, std::size_t M&gt; </td></tr>
<tr class="memitem:acde4aaf22e4d89c4c300cd61d7a1d467"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classripple_1_1DatabaseCon.html#acde4aaf22e4d89c4c300cd61d7a1d467">DatabaseCon</a> (boost::filesystem::path const &amp;dataDir, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;DBName, <a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, N &gt; const &amp;pragma, <a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, M &gt; const &amp;initSQL)</td></tr>
<tr class="separator:acde4aaf22e4d89c4c300cd61d7a1d467"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e60acdda043677f3307b83f57f436a5"><td class="memItemLeft" align="right" valign="top">soci::session &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1DatabaseCon.html#a2e60acdda043677f3307b83f57f436a5">getSession</a> ()</td></tr>
<tr class="separator:a2e60acdda043677f3307b83f57f436a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16c6f729c6462f6200b724543f5c67bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceripple.html#aca6c8a5cbd2eda7b45b2a2cf0cae8330">LockedSociSession</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1DatabaseCon.html#a16c6f729c6462f6200b724543f5c67bc">checkoutDb</a> ()</td></tr>
<tr class="separator:a16c6f729c6462f6200b724543f5c67bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a041741f7c254fa37958c92c087a20718"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1DatabaseCon.html#a041741f7c254fa37958c92c087a20718">setupCheckpointing</a> (<a class="el" href="classripple_1_1JobQueue.html">JobQueue</a> *, <a class="el" href="classripple_1_1Logs.html">Logs</a> &amp;)</td></tr>
<tr class="separator:a041741f7c254fa37958c92c087a20718"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a1a55385a4444f80a08151a2c543a335e"><td class="memTemplParams" colspan="2">template&lt;std::size_t N, std::size_t M&gt; </td></tr>
<tr class="memitem:a1a55385a4444f80a08151a2c543a335e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classripple_1_1DatabaseCon.html#a1a55385a4444f80a08151a2c543a335e">init</a> (boost::filesystem::path const &amp;pPath, <a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, N &gt; const &amp;pragma, <a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, M &gt; const &amp;initSQL)</td></tr>
<tr class="separator:a1a55385a4444f80a08151a2c543a335e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a7a8a6cb63bae80cb351c10208ce3706f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1LockedPointer.html#a115401bda26c08576a7b299626155a2e">LockedSociSession::mutex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1DatabaseCon.html#a7a8a6cb63bae80cb351c10208ce3706f">lock_</a></td></tr>
<tr class="separator:a7a8a6cb63bae80cb351c10208ce3706f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70795c77da7df71d71717e7f25e6328e"><td class="memItemLeft" align="right" valign="top">soci::session&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1DatabaseCon.html#a70795c77da7df71d71717e7f25e6328e">session_</a></td></tr>
<tr class="separator:a70795c77da7df71d71717e7f25e6328e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a525ff8b626d6717999cb28a091624978"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; <a class="el" href="classripple_1_1Checkpointer.html">Checkpointer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1DatabaseCon.html#a525ff8b626d6717999cb28a091624978">checkpointer_</a></td></tr>
<tr class="separator:a525ff8b626d6717999cb28a091624978"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8h_source.html#l00077">77</a> of file <a class="el" href="DatabaseCon_8h_source.html">DatabaseCon.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a37732a53d4e02a8fea8cfe68fa71dc36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37732a53d4e02a8fea8cfe68fa71dc36">&#9670;&nbsp;</a></span>DatabaseCon() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;std::size_t N, std::size_t M&gt; </div>
<table class="memname">
<tr>
<td class="memname">ripple::DatabaseCon::DatabaseCon </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structripple_1_1DatabaseCon_1_1Setup.html">Setup</a> const &amp;&#160;</td>
<td class="paramname"><em>setup</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>DBName</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, N &gt; const &amp;&#160;</td>
<td class="paramname"><em>pragma</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, M &gt; const &amp;&#160;</td>
<td class="paramname"><em>initSQL</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8h_source.html#l00090">90</a> of file <a class="el" href="DatabaseCon_8h_source.html">DatabaseCon.h</a>.</p>
</div>
</div>
<a id="acde4aaf22e4d89c4c300cd61d7a1d467"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acde4aaf22e4d89c4c300cd61d7a1d467">&#9670;&nbsp;</a></span>DatabaseCon() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;std::size_t N, std::size_t M&gt; </div>
<table class="memname">
<tr>
<td class="memname">ripple::DatabaseCon::DatabaseCon </td>
<td>(</td>
<td class="paramtype">boost::filesystem::path const &amp;&#160;</td>
<td class="paramname"><em>dataDir</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>DBName</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, N &gt; const &amp;&#160;</td>
<td class="paramname"><em>pragma</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, M &gt; const &amp;&#160;</td>
<td class="paramname"><em>initSQL</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8h_source.html#l00109">109</a> of file <a class="el" href="DatabaseCon_8h_source.html">DatabaseCon.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2e60acdda043677f3307b83f57f436a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e60acdda043677f3307b83f57f436a5">&#9670;&nbsp;</a></span>getSession()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">soci::session&amp; ripple::DatabaseCon::getSession </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8h_source.html#l00118">118</a> of file <a class="el" href="DatabaseCon_8h_source.html">DatabaseCon.h</a>.</p>
</div>
</div>
<a id="a16c6f729c6462f6200b724543f5c67bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16c6f729c6462f6200b724543f5c67bc">&#9670;&nbsp;</a></span>checkoutDb()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceripple.html#aca6c8a5cbd2eda7b45b2a2cf0cae8330">LockedSociSession</a> ripple::DatabaseCon::checkoutDb </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8h_source.html#l00123">123</a> of file <a class="el" href="DatabaseCon_8h_source.html">DatabaseCon.h</a>.</p>
</div>
</div>
<a id="a041741f7c254fa37958c92c087a20718"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a041741f7c254fa37958c92c087a20718">&#9670;&nbsp;</a></span>setupCheckpointing()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::DatabaseCon::setupCheckpointing </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1JobQueue.html">JobQueue</a> *&#160;</td>
<td class="paramname"><em>q</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1Logs.html">Logs</a> &amp;&#160;</td>
<td class="paramname"><em>l</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8cpp_source.html#l00044">44</a> of file <a class="el" href="DatabaseCon_8cpp_source.html">DatabaseCon.cpp</a>.</p>
</div>
</div>
<a id="a1a55385a4444f80a08151a2c543a335e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a55385a4444f80a08151a2c543a335e">&#9670;&nbsp;</a></span>init()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;std::size_t N, std::size_t M&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::DatabaseCon::init </td>
<td>(</td>
<td class="paramtype">boost::filesystem::path const &amp;&#160;</td>
<td class="paramname"><em>pPath</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, N &gt; const &amp;&#160;</td>
<td class="paramname"><em>pragma</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; char const *, M &gt; const &amp;&#160;</td>
<td class="paramname"><em>initSQL</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8h_source.html#l00134">134</a> of file <a class="el" href="DatabaseCon_8h_source.html">DatabaseCon.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a7a8a6cb63bae80cb351c10208ce3706f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a8a6cb63bae80cb351c10208ce3706f">&#9670;&nbsp;</a></span>lock_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1LockedPointer.html#a115401bda26c08576a7b299626155a2e">LockedSociSession::mutex</a> ripple::DatabaseCon::lock_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8h_source.html#l00152">152</a> of file <a class="el" href="DatabaseCon_8h_source.html">DatabaseCon.h</a>.</p>
</div>
</div>
<a id="a70795c77da7df71d71717e7f25e6328e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70795c77da7df71d71717e7f25e6328e">&#9670;&nbsp;</a></span>session_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">soci::session ripple::DatabaseCon::session_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8h_source.html#l00154">154</a> of file <a class="el" href="DatabaseCon_8h_source.html">DatabaseCon.h</a>.</p>
</div>
</div>
<a id="a525ff8b626d6717999cb28a091624978"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a525ff8b626d6717999cb28a091624978">&#9670;&nbsp;</a></span>checkpointer_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt;<a class="el" href="classripple_1_1Checkpointer.html">Checkpointer</a>&gt; ripple::DatabaseCon::checkpointer_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="DatabaseCon_8h_source.html#l00155">155</a> of file <a class="el" href="DatabaseCon_8h_source.html">DatabaseCon.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- 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>