194 lines
12 KiB
HTML
194 lines
12 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.14"/>
|
|
<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
|
|
 <span id="projectnumber">0.6.3</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.14 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&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&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> |
|
|
<a href="#pub-attribs">Public Attributes</a> |
|
|
<a href="#friends">Friends</a> |
|
|
<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 <<a class="el" href="sqlite_8hpp_source.html">sqlite.hpp</a>></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:a0e19bad458eedf6ecdcf4b33ce319e8d"><td class="memItemLeft" align="right" valign="top">const string </td><td class="memItemRight" valign="bottom"><a class="el" href="structremwharead_1_1Database_1_1entry.html#a0e19bad458eedf6ecdcf4b33ce319e8d">fulltext_oneline</a> () const</td></tr>
|
|
<tr class="memdesc:a0e19bad458eedf6ecdcf4b33ce319e8d"><td class="mdescLeft"> </td><td class="mdescRight">The full text in one line. <a href="#a0e19bad458eedf6ecdcf4b33ce319e8d">More...</a><br /></td></tr>
|
|
<tr class="separator:a0e19bad458eedf6ecdcf4b33ce319e8d"><td class="memSeparator" colspan="2"> </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 </td><td class="memItemRight" valign="bottom"><b>uri</b></td></tr>
|
|
<tr class="separator:aeaa3c27c7c5172ebfd53fb1c32f981bc"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abdf582a2a931b1c70e648d869b0ca93b"><td class="memItemLeft" align="right" valign="top"><a id="abdf582a2a931b1c70e648d869b0ca93b"></a>
|
|
string </td><td class="memItemRight" valign="bottom"><b>archive_uri</b></td></tr>
|
|
<tr class="separator:abdf582a2a931b1c70e648d869b0ca93b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6a33db33548262bbfa72f2a0298728df"><td class="memItemLeft" align="right" valign="top"><a id="a6a33db33548262bbfa72f2a0298728df"></a>
|
|
time_point </td><td class="memItemRight" valign="bottom"><b>datetime</b></td></tr>
|
|
<tr class="separator:a6a33db33548262bbfa72f2a0298728df"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4908526617dce08479f9d8b18e8ff574"><td class="memItemLeft" align="right" valign="top"><a id="a4908526617dce08479f9d8b18e8ff574"></a>
|
|
vector< string > </td><td class="memItemRight" valign="bottom"><b>tags</b></td></tr>
|
|
<tr class="separator:a4908526617dce08479f9d8b18e8ff574"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4398929cdd0092d4b1192811e485e8e1"><td class="memItemLeft" align="right" valign="top"><a id="a4398929cdd0092d4b1192811e485e8e1"></a>
|
|
string </td><td class="memItemRight" valign="bottom"><b>title</b></td></tr>
|
|
<tr class="separator:a4398929cdd0092d4b1192811e485e8e1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a54b09a06fc2e2daa453d2a992474383e"><td class="memItemLeft" align="right" valign="top"><a id="a54b09a06fc2e2daa453d2a992474383e"></a>
|
|
string </td><td class="memItemRight" valign="bottom"><b>description</b></td></tr>
|
|
<tr class="separator:a54b09a06fc2e2daa453d2a992474383e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa23f801cb04561c20aae50c53ec1b755"><td class="memItemLeft" align="right" valign="top"><a id="aa23f801cb04561c20aae50c53ec1b755"></a>
|
|
string </td><td class="memItemRight" valign="bottom"><b>fulltext</b></td></tr>
|
|
<tr class="separator:aa23f801cb04561c20aae50c53ec1b755"><td class="memSeparator" colspan="2"> </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 </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> &a, const <a class="el" href="structremwharead_1_1Database_1_1entry.html">Database::entry</a> &b)</td></tr>
|
|
<tr class="memdesc:a67f257a407ec46c00d205fd4c9215846"><td class="mdescLeft"> </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"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Describes a database entry. </p>
|
|
</div><h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a0e19bad458eedf6ecdcf4b33ce319e8d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0e19bad458eedf6ecdcf4b33ce319e8d">◆ </a></span>fulltext_oneline()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const 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>
|
|
<div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">string</span> oneline = fulltext;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">size_t</span> pos = 0;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">while</span> ((pos = oneline.find(<span class="charliteral">'\n'</span>, pos)) != std::string::npos)</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  {</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  oneline.replace(pos, 1, <span class="stringliteral">"\\n"</span>);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">return</span> oneline;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</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">◆ </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> & </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> & </td>
|
|
<td class="paramname"><em>b</em> </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>
|
|
<div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">return</span> (a.datetime == b.datetime);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</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  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.14
|
|
</small></address>
|
|
</body>
|
|
</html>
|