-
Notifications
You must be signed in to change notification settings - Fork 2
/
tests.h
74 lines (59 loc) · 2.69 KB
/
tests.h
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
/*
Copyright © 2010 par Marc Sibert
This file is part of LIBOSM
LIBOSM is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
LIBOSM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with LIBOSM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TESTS_H
#define TESTS_H
#include <expat.h>
#include <sstream>
#include <iostream>
#include "xml/parserosm.h"
using namespace std;
class Tests : public BaseInterface
{
public:
Tests()
{
std::istringstream iss("<way id=\"5090250\" visible=\"true\" timestamp=\"2009-01-19T19:07:25Z\" version=\"8\" changeset=\"816806\" user=\"Blumpsy\" uid=\"64226\"> \
<nd ref=\"822403\"/> \
<nd ref=\"21533912\"/> \
<nd ref=\"821601\"/> \
<nd ref=\"21533910\"/> \
<nd ref=\"135791608\"/> \
<nd ref=\"333725784\"/> \
<nd ref=\"333725781\"/> \
<nd ref=\"333725774\"/> \
<nd ref=\"333725776\"/> \
<nd ref=\"823771\"/> \
<tag k=\"created_by\" v=\"Potlatch 0.10e\"/> \
<tag k=\"highway\" v=\"unclassified\"/> \
<tag k=\"name\" v=\"Clipstone Street\"/> \
<tag k=\"oneway\" v=\"yes\"/> \
</way>");
XML_Parser xml_parser = XML_ParserCreate(0);
ParserOsm parser(&xml_parser, *this, 0, string("osm"), vector< pair<string, string> >());
}
void add(const Changeset& aChangeset)
{
}
void add(const Node& aNode)
{
}
void add(const Way& aWay)
{
}
void add(const Relation& aRelation)
{
}
};
#endif