remwharead/docs/structremwharead_1_1Database_1_1entry.html
2019-11-02 08:13:06 +01:00

197 lines
12 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.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>remwharead: remwharead::Database::entry Struct 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">remwharead
&#160;<span id="projectnumber">0.8.5</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<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"><b>remwharead</b></li><li class="navelem"><a class="el" href="classremwharead_1_1Database.html">Database</a></li><li class="navelem"><a class="el" href="structremwharead_1_1Database_1_1entry.html">entry</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="structremwharead_1_1Database_1_1entry-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">remwharead::Database::entry Struct Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Describes a database entry.
<a href="structremwharead_1_1Database_1_1entry.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="sqlite_8hpp_source.html">remwharead/sqlite.hpp</a>&gt;</code></p>
<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:ae74916f391ce95d3a4d554fd6c401006"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structremwharead_1_1Database_1_1entry.html#ae74916f391ce95d3a4d554fd6c401006">fulltext_oneline</a> () const</td></tr>
<tr class="memdesc:ae74916f391ce95d3a4d554fd6c401006"><td class="mdescLeft">&#160;</td><td class="mdescRight">The full text in one line. <a href="#ae74916f391ce95d3a4d554fd6c401006">More...</a><br /></td></tr>
<tr class="separator:ae74916f391ce95d3a4d554fd6c401006"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aeaa3c27c7c5172ebfd53fb1c32f981bc"><td class="memItemLeft" align="right" valign="top"><a id="aeaa3c27c7c5172ebfd53fb1c32f981bc"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>uri</b></td></tr>
<tr class="separator:aeaa3c27c7c5172ebfd53fb1c32f981bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdf582a2a931b1c70e648d869b0ca93b"><td class="memItemLeft" align="right" valign="top"><a id="abdf582a2a931b1c70e648d869b0ca93b"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>archive_uri</b></td></tr>
<tr class="separator:abdf582a2a931b1c70e648d869b0ca93b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a33db33548262bbfa72f2a0298728df"><td class="memItemLeft" align="right" valign="top"><a id="a6a33db33548262bbfa72f2a0298728df"></a>
time_point&#160;</td><td class="memItemRight" valign="bottom"><b>datetime</b></td></tr>
<tr class="separator:a6a33db33548262bbfa72f2a0298728df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4908526617dce08479f9d8b18e8ff574"><td class="memItemLeft" align="right" valign="top"><a id="a4908526617dce08479f9d8b18e8ff574"></a>
vector&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>tags</b></td></tr>
<tr class="separator:a4908526617dce08479f9d8b18e8ff574"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4398929cdd0092d4b1192811e485e8e1"><td class="memItemLeft" align="right" valign="top"><a id="a4398929cdd0092d4b1192811e485e8e1"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>title</b></td></tr>
<tr class="separator:a4398929cdd0092d4b1192811e485e8e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54b09a06fc2e2daa453d2a992474383e"><td class="memItemLeft" align="right" valign="top"><a id="a54b09a06fc2e2daa453d2a992474383e"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>description</b></td></tr>
<tr class="separator:a54b09a06fc2e2daa453d2a992474383e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa23f801cb04561c20aae50c53ec1b755"><td class="memItemLeft" align="right" valign="top"><a id="aa23f801cb04561c20aae50c53ec1b755"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>fulltext</b></td></tr>
<tr class="separator:aa23f801cb04561c20aae50c53ec1b755"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a67f257a407ec46c00d205fd4c9215846"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structremwharead_1_1Database_1_1entry.html#a67f257a407ec46c00d205fd4c9215846">operator==</a> (const <a class="el" href="structremwharead_1_1Database_1_1entry.html">Database::entry</a> &amp;a, const <a class="el" href="structremwharead_1_1Database_1_1entry.html">Database::entry</a> &amp;b)</td></tr>
<tr class="memdesc:a67f257a407ec46c00d205fd4c9215846"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if date and time are equal. <a href="#a67f257a407ec46c00d205fd4c9215846">More...</a><br /></td></tr>
<tr class="separator:a67f257a407ec46c00d205fd4c9215846"><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>Describes a database entry. </p>
<dl class="section since"><dt>Since</dt><dd>0.6.0 </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ae74916f391ce95d3a4d554fd6c401006"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae74916f391ce95d3a4d554fd6c401006">&#9670;&nbsp;</a></span>fulltext_oneline()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string remwharead::Database::entry::fulltext_oneline </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>The full text in one line. </p>
<dl class="section since"><dt>Since</dt><dd>0.6.0 </dd></dl>
<div class="fragment"><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; <span class="keywordtype">string</span> oneline = fulltext;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordtype">size_t</span> pos = 0;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordflow">while</span> ((pos = oneline.find(<span class="charliteral">&#39;\n&#39;</span>, pos)) != string::npos)</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; oneline.replace(pos, 1, <span class="stringliteral">&quot;\\n&quot;</span>);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; }</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">return</span> oneline;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a67f257a407ec46c00d205fd4c9215846"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67f257a407ec46c00d205fd4c9215846">&#9670;&nbsp;</a></span>operator==</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool operator== </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structremwharead_1_1Database_1_1entry.html">Database::entry</a> &amp;&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structremwharead_1_1Database_1_1entry.html">Database::entry</a> &amp;&#160;</td>
<td class="paramname"><em>b</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">friend</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true if date and time are equal. </p>
<dl class="section since"><dt>Since</dt><dd>0.6.0 </dd></dl>
<div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;{</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordflow">return</span> (a.datetime == b.datetime);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>include/<a class="el" href="sqlite_8hpp_source.html">sqlite.hpp</a></li>
<li>src/lib/sqlite.cpp</li>
</ul>
</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.15
</small></address>
</body>
</html>