-
Notifications
You must be signed in to change notification settings - Fork 0
/
classreplication_1_1Replication.html
162 lines (156 loc) · 9.89 KB
/
classreplication_1_1Replication.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!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.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Underpass: replication::Replication 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">Underpass
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<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>replication</b></li><li class="navelem"><a class="el" href="classreplication_1_1Replication.html">Replication</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="classreplication_1_1Replication-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">replication::Replication Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Handle replication files from the OSM planet server.
<a href="classreplication_1_1Replication.html#details">More...</a></p>
<p><code>#include <<a class="el" href="replication_8hh_source.html">replication.hh</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:a460f685816d3c79e7c3b9c40874a5e55"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classreplication_1_1Replication.html#a460f685816d3c79e7c3b9c40874a5e55">Replication</a> (void)</td></tr>
<tr class="separator:a460f685816d3c79e7c3b9c40874a5e55"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6ac0ec05ff8a92337076c23b51cee3e4"><td class="memItemLeft" align="right" valign="top"><a id="a6ac0ec05ff8a92337076c23b51cee3e4"></a>
 </td><td class="memItemRight" valign="bottom"><b>Replication</b> (const std::string &host, ptime last, long seq)</td></tr>
<tr class="separator:a6ac0ec05ff8a92337076c23b51cee3e4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aea12d0292e659e69bf8f3115b3a5fb81"><td class="memItemLeft" align="right" valign="top"><a id="aea12d0292e659e69bf8f3115b3a5fb81"></a>
 </td><td class="memItemRight" valign="bottom"><b>Replication</b> (std::string &host, long seq)</td></tr>
<tr class="separator:aea12d0292e659e69bf8f3115b3a5fb81"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6a75e9639071ee3b72571f7d2c662f17"><td class="memItemLeft" align="right" valign="top"><a id="a6a75e9639071ee3b72571f7d2c662f17"></a>
 </td><td class="memItemRight" valign="bottom"><b>Replication</b> (ptime last)</td></tr>
<tr class="separator:a6a75e9639071ee3b72571f7d2c662f17"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a33a2c07e13c1022cfe5d9f3b91f5e0d7"><td class="memItemLeft" align="right" valign="top"><a id="a33a2c07e13c1022cfe5d9f3b91f5e0d7"></a>
 </td><td class="memItemRight" valign="bottom"><b>Replication</b> (long seq)</td></tr>
<tr class="separator:a33a2c07e13c1022cfe5d9f3b91f5e0d7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a81153fa11deced6e2ec3a65f2f30146d"><td class="memItemLeft" align="right" valign="top"><a id="a81153fa11deced6e2ec3a65f2f30146d"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classreplication_1_1Replication.html#a81153fa11deced6e2ec3a65f2f30146d">readChanges</a> (const std::string &file)</td></tr>
<tr class="memdesc:a81153fa11deced6e2ec3a65f2f30146d"><td class="mdescLeft"> </td><td class="mdescRight">parse a replication file containing changesets <br /></td></tr>
<tr class="separator:a81153fa11deced6e2ec3a65f2f30146d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aae8314f23da80adf0e4ac88c92d6c40e"><td class="memItemLeft" align="right" valign="top"><a id="aae8314f23da80adf0e4ac88c92d6c40e"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classreplication_1_1Replication.html#aae8314f23da80adf0e4ac88c92d6c40e">mergeToDB</a> ()</td></tr>
<tr class="memdesc:aae8314f23da80adf0e4ac88c92d6c40e"><td class="mdescLeft"> </td><td class="mdescRight">Add this replication data to the changeset database. <br /></td></tr>
<tr class="separator:aae8314f23da80adf0e4ac88c92d6c40e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9093e0304b3bece6adc387f92cbd0e48"><td class="memItemLeft" align="right" valign="top"><a id="a9093e0304b3bece6adc387f92cbd0e48"></a>
std::shared_ptr< std::vector< unsigned char > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classreplication_1_1Replication.html#a9093e0304b3bece6adc387f92cbd0e48">downloadFiles</a> (const std::string &file, bool text)</td></tr>
<tr class="memdesc:a9093e0304b3bece6adc387f92cbd0e48"><td class="mdescLeft"> </td><td class="mdescRight">Download a file from planet. <br /></td></tr>
<tr class="separator:a9093e0304b3bece6adc387f92cbd0e48"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a101ea677aa720c5a1841ecc17c2814b9"><td class="memItemLeft" align="right" valign="top"><a id="a101ea677aa720c5a1841ecc17c2814b9"></a>
std::shared_ptr< std::vector< unsigned char > > </td><td class="memItemRight" valign="bottom"><b>downloadFiles</b> (std::vector< std::string > file, bool text)</td></tr>
<tr class="separator:a101ea677aa720c5a1841ecc17c2814b9"><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:a1adbd500e517618c7039fd416069394e"><td class="memItemLeft" align="right" valign="top"><a id="a1adbd500e517618c7039fd416069394e"></a>
std::vector< <a class="el" href="classreplication_1_1StateFile.html">StateFile</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classreplication_1_1Replication.html#a1adbd500e517618c7039fd416069394e">states</a></td></tr>
<tr class="memdesc:a1adbd500e517618c7039fd416069394e"><td class="mdescLeft"> </td><td class="mdescRight">Stored state.txt files. <br /></td></tr>
<tr class="separator:a1adbd500e517618c7039fd416069394e"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Handle replication files from the OSM planet server. </p>
<p>This class handfles identifying the right replication file to download, and downloading it. </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a460f685816d3c79e7c3b9c40874a5e55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a460f685816d3c79e7c3b9c40874a5e55">◆ </a></span>Replication()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">replication::Replication::Replication </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>! HTTP version</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>osmstats/<a class="el" href="replication_8hh_source.html">replication.hh</a></li>
<li>osmstats/replication.cc</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.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>