-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclasschangeset_1_1ChangeSetFile.html
180 lines (171 loc) · 12.6 KB
/
classchangeset_1_1ChangeSetFile.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!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: changeset::ChangeSetFile 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>changeset</b></li><li class="navelem"><a class="el" href="classchangeset_1_1ChangeSetFile.html">ChangeSetFile</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="classchangeset_1_1ChangeSetFile-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">changeset::ChangeSetFile Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>This file reads a changeset file.
<a href="classchangeset_1_1ChangeSetFile.html#details">More...</a></p>
<p><code>#include <<a class="el" href="changeset_8hh_source.html">changeset.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:a5d1560c7e9654659e44931a4ef446276"><td class="memItemLeft" align="right" valign="top"><a id="a5d1560c7e9654659e44931a4ef446276"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#a5d1560c7e9654659e44931a4ef446276">readChanges</a> (const std::string &file)</td></tr>
<tr class="memdesc:a5d1560c7e9654659e44931a4ef446276"><td class="mdescLeft"> </td><td class="mdescRight">Read a changeset file from disk or memory into internal storage. <br /></td></tr>
<tr class="separator:a5d1560c7e9654659e44931a4ef446276"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aee5dbdec972dcc0e4268786b1d229604"><td class="memItemLeft" align="right" valign="top"><a id="aee5dbdec972dcc0e4268786b1d229604"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#aee5dbdec972dcc0e4268786b1d229604">readChanges</a> (const std::vector< unsigned char > &buffer)</td></tr>
<tr class="memdesc:aee5dbdec972dcc0e4268786b1d229604"><td class="mdescLeft"> </td><td class="mdescRight">Read a changeset file from disk or memory into internal storage. <br /></td></tr>
<tr class="separator:aee5dbdec972dcc0e4268786b1d229604"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa49b23e51eaf4904c3a13ed368046880"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#aa49b23e51eaf4904c3a13ed368046880">importChanges</a> (const std::string &file)</td></tr>
<tr class="memdesc:aa49b23e51eaf4904c3a13ed368046880"><td class="mdescLeft"> </td><td class="mdescRight">Import a changeset file from disk and initialize the database. <a href="classchangeset_1_1ChangeSetFile.html#aa49b23e51eaf4904c3a13ed368046880">More...</a><br /></td></tr>
<tr class="separator:aa49b23e51eaf4904c3a13ed368046880"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5b1292516092e604f092b66520639e4b"><td class="memItemLeft" align="right" valign="top"><a id="a5b1292516092e604f092b66520639e4b"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#a5b1292516092e604f092b66520639e4b">readXML</a> (std::istream &xml)</td></tr>
<tr class="memdesc:a5b1292516092e604f092b66520639e4b"><td class="mdescLeft"> </td><td class="mdescRight">Read an istream of the data and parse the XML. <br /></td></tr>
<tr class="separator:a5b1292516092e604f092b66520639e4b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afa37411e03668eec9184cd112d81670f"><td class="memItemLeft" align="right" valign="top"><a id="afa37411e03668eec9184cd112d81670f"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#afa37411e03668eec9184cd112d81670f">setupBoundaries</a> (std::shared_ptr< <a class="el" href="classgeoutil_1_1GeoUtil.html">geoutil::GeoUtil</a> > &geou)</td></tr>
<tr class="memdesc:afa37411e03668eec9184cd112d81670f"><td class="mdescLeft"> </td><td class="mdescRight">Setup the boundary data used to determine the country. <br /></td></tr>
<tr class="separator:afa37411e03668eec9184cd112d81670f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad5cc72034136784d6dfd3482572493db"><td class="memItemLeft" align="right" valign="top"><a id="ad5cc72034136784d6dfd3482572493db"></a>
<a class="el" href="classchangeset_1_1ChangeSet.html">ChangeSet</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#ad5cc72034136784d6dfd3482572493db">operator[]</a> (int index)</td></tr>
<tr class="memdesc:ad5cc72034136784d6dfd3482572493db"><td class="mdescLeft"> </td><td class="mdescRight">Get one set of change data from the parsed XML data. <br /></td></tr>
<tr class="separator:ad5cc72034136784d6dfd3482572493db"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8c5b8fcff0c251cf1a75aa6402f6f74d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#a8c5b8fcff0c251cf1a75aa6402f6f74d">dump</a> (void)</td></tr>
<tr class="separator:a8c5b8fcff0c251cf1a75aa6402f6f74d"><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:a83094b6098735aebabd132c06cb0cda1"><td class="memItemLeft" align="right" valign="top"><a id="a83094b6098735aebabd132c06cb0cda1"></a>
std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#a83094b6098735aebabd132c06cb0cda1">filename</a></td></tr>
<tr class="memdesc:a83094b6098735aebabd132c06cb0cda1"><td class="mdescLeft"> </td><td class="mdescRight">The filename of this changeset for disk files. <br /></td></tr>
<tr class="separator:a83094b6098735aebabd132c06cb0cda1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9612811a765bfc0d1c10eb6fd670fecf"><td class="memItemLeft" align="right" valign="top"><a id="a9612811a765bfc0d1c10eb6fd670fecf"></a>
std::vector< <a class="el" href="classchangeset_1_1ChangeSet.html">ChangeSet</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#a9612811a765bfc0d1c10eb6fd670fecf">changes</a></td></tr>
<tr class="memdesc:a9612811a765bfc0d1c10eb6fd670fecf"><td class="mdescLeft"> </td><td class="mdescRight">Storage of all the changes in this data. <br /></td></tr>
<tr class="separator:a9612811a765bfc0d1c10eb6fd670fecf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac084e796d393c84a4e975b9d74f1570e"><td class="memItemLeft" align="right" valign="top"><a id="ac084e796d393c84a4e975b9d74f1570e"></a>
std::shared_ptr< <a class="el" href="classgeoutil_1_1GeoUtil.html">geoutil::GeoUtil</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classchangeset_1_1ChangeSetFile.html#ac084e796d393c84a4e975b9d74f1570e">boundaries</a></td></tr>
<tr class="memdesc:ac084e796d393c84a4e975b9d74f1570e"><td class="mdescLeft"> </td><td class="mdescRight">A pointer to the geoboundary data. <br /></td></tr>
<tr class="separator:ac084e796d393c84a4e975b9d74f1570e"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This file reads a changeset file. </p>
<p>This class reads a changeset file, as obtained from the OSM planet server. This format is not supported by other tools, so we add it there. As changeset file contains multiple changes, </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a8c5b8fcff0c251cf1a75aa6402f6f74d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c5b8fcff0c251cf1a75aa6402f6f74d">◆ </a></span>dump()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void changeset::ChangeSetFile::dump </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Dump the data of this class to the terminal. This should only be used for debugging. </p>
</div>
</div>
<a id="aa49b23e51eaf4904c3a13ed368046880"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa49b23e51eaf4904c3a13ed368046880">◆ </a></span>importChanges()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool changeset::ChangeSetFile::importChanges </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>file</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Import a changeset file from disk and initialize the database. </p>
<p>Read a changeset file from disk, which may be a huge file Since it is a huge file, process in pieces and don't store anything except in the database. A changeset file entry looks like this:</p>
<p><changeset id="12345" created_at="2014-10-10T01:57:09Z" closed_at="2014-10-10T01:57:23Z" open="false" user="foo" uid="54321" min_lat="-2.8042325" min_lon="29.5842812" max_lat="-2.7699398" max_lon="29.6012844" num_changes="569" comments_count="0"> <tag k="source" v="Bing"> <tag k="comment" v="#hotosm-task-001 #redcross #missingmaps"> <tag k="created_by" v="JOSM/1.5 (7182 en)"> </changeset> </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>osmstats/<a class="el" href="changeset_8hh_source.html">changeset.hh</a></li>
<li>osmstats/changeset.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>