-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclassosmchange_1_1OsmChangeFile.html
150 lines (143 loc) · 10.2 KB
/
classosmchange_1_1OsmChangeFile.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
<!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: osmchange::OsmChangeFile 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>osmchange</b></li><li class="navelem"><a class="el" href="classosmchange_1_1OsmChangeFile.html">OsmChangeFile</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="classosmchange_1_1OsmChangeFile-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">osmchange::OsmChangeFile Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>This class manages an OSM change file.
<a href="classosmchange_1_1OsmChangeFile.html#details">More...</a></p>
<p><code>#include <<a class="el" href="osmchange_8hh_source.html">osmchange.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:adf640d9801381296ab4ce1fd2ddd8415"><td class="memItemLeft" align="right" valign="top"><a id="adf640d9801381296ab4ce1fd2ddd8415"></a>
 </td><td class="memItemRight" valign="bottom"><b>OsmChangeFile</b> (const std::string &osc)</td></tr>
<tr class="separator:adf640d9801381296ab4ce1fd2ddd8415"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a05b82fdc84bfb6bdeb4f001dedf7d6e9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classosmchange_1_1OsmChangeFile.html#a05b82fdc84bfb6bdeb4f001dedf7d6e9">readChanges</a> (const std::string &osc)</td></tr>
<tr class="memdesc:a05b82fdc84bfb6bdeb4f001dedf7d6e9"><td class="mdescLeft"> </td><td class="mdescRight">Read a changeset file from disk or memory into internal storage. <a href="classosmchange_1_1OsmChangeFile.html#a05b82fdc84bfb6bdeb4f001dedf7d6e9">More...</a><br /></td></tr>
<tr class="separator:a05b82fdc84bfb6bdeb4f001dedf7d6e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abfeaa6d42a7f2397a9dcf32e34efe222"><td class="memItemLeft" align="right" valign="top"><a id="abfeaa6d42a7f2397a9dcf32e34efe222"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classosmchange_1_1OsmChangeFile.html#abfeaa6d42a7f2397a9dcf32e34efe222">readXML</a> (std::istream &xml)</td></tr>
<tr class="memdesc:abfeaa6d42a7f2397a9dcf32e34efe222"><td class="mdescLeft"> </td><td class="mdescRight">Read an istream of the data and parse the XML. <br /></td></tr>
<tr class="separator:abfeaa6d42a7f2397a9dcf32e34efe222"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa77916779ffca1ddbc7e801c441ee8b9"><td class="memItemLeft" align="right" valign="top"><a id="aa77916779ffca1ddbc7e801c441ee8b9"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classosmchange_1_1OsmChangeFile.html#aa77916779ffca1ddbc7e801c441ee8b9">collectStats</a> (void)</td></tr>
<tr class="memdesc:aa77916779ffca1ddbc7e801c441ee8b9"><td class="mdescLeft"> </td><td class="mdescRight">Collect statistics for each user. <br /></td></tr>
<tr class="separator:aa77916779ffca1ddbc7e801c441ee8b9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8cf36f748d0af0b85745e52d51784290"><td class="memItemLeft" align="right" valign="top"><a id="a8cf36f748d0af0b85745e52d51784290"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classosmchange_1_1OsmChangeFile.html#a8cf36f748d0af0b85745e52d51784290">dump</a> (void)</td></tr>
<tr class="memdesc:a8cf36f748d0af0b85745e52d51784290"><td class="mdescLeft"> </td><td class="mdescRight">dump internal data, for debugging only <br /></td></tr>
<tr class="separator:a8cf36f748d0af0b85745e52d51784290"><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:a74ff278ed630734cf81f76d142106da9"><td class="memItemLeft" align="right" valign="top"><a id="a74ff278ed630734cf81f76d142106da9"></a>
std::map< long, std::shared_ptr< <a class="el" href="classosmchange_1_1ChangeStats.html">ChangeStats</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classosmchange_1_1OsmChangeFile.html#a74ff278ed630734cf81f76d142106da9">userstats</a></td></tr>
<tr class="memdesc:a74ff278ed630734cf81f76d142106da9"><td class="mdescLeft"> </td><td class="mdescRight">User statistics for this file. <br /></td></tr>
<tr class="separator:a74ff278ed630734cf81f76d142106da9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac1d63b820976da67e4605890cfeddd2b"><td class="memItemLeft" align="right" valign="top"><a id="ac1d63b820976da67e4605890cfeddd2b"></a>
std::vector< std::shared_ptr< <a class="el" href="classosmchange_1_1OsmChange.html">OsmChange</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classosmchange_1_1OsmChangeFile.html#ac1d63b820976da67e4605890cfeddd2b">changes</a></td></tr>
<tr class="memdesc:ac1d63b820976da67e4605890cfeddd2b"><td class="mdescLeft"> </td><td class="mdescRight">All the changes in this file. <br /></td></tr>
<tr class="separator:ac1d63b820976da67e4605890cfeddd2b"><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 class manages an OSM change file. </p>
<p>This class handles the entire <a class="el" href="classosmchange_1_1OsmChange.html" title="This contains the data for a change.">OsmChange</a> file. Currently libxml++ is used with a SAX parser, although optionally the boost parse tree can be used as a DOM parser. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a05b82fdc84bfb6bdeb4f001dedf7d6e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05b82fdc84bfb6bdeb4f001dedf7d6e9">◆ </a></span>readChanges()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool osmchange::OsmChangeFile::readChanges </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>Read a changeset file from disk or memory into internal storage. </p>
<p>And <a class="el" href="classosmchange_1_1OsmChange.html" title="This contains the data for a change.">OsmChange</a> file contains the data of the actual change. It uses the same syntax as an OSM data file plus the addition of one of the three actions. Nodes, ways, and relations can be created, deleted, or modified.</p>
<p><modify> <node id="12345" version="7" timestamp="2020-10-30T20:40:38Z" uid="111111" user="foo" changeset="93310152" lat="50.9176152" lon="-1.3751891"> </modify> <delete> <node id="23456" version="7" timestamp="2020-10-30T20:40:38Z" uid="22222" user="foo" changeset="93310152" lat="50.9176152" lon="-1.3751891"> </delete> <create> <node id="34567" version="1" timestamp="2020-10-30T20:15:24Z" uid="3333333" user="bar" changeset="93309184" lat="45.4303763" lon="10.9837526"> /create> </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>osmstats/<a class="el" href="osmchange_8hh_source.html">osmchange.hh</a></li>
<li>osmstats/osmchange.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>