SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
NIVissimSingleTypeParser_Kantensperrung.cpp
Go to the documentation of this file.
1
/****************************************************************************/
8
//
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11
// Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
12
/****************************************************************************/
13
//
14
// This file is part of SUMO.
15
// SUMO is free software: you can redistribute it and/or modify
16
// it under the terms of the GNU General Public License as published by
17
// the Free Software Foundation, either version 3 of the License, or
18
// (at your option) any later version.
19
//
20
/****************************************************************************/
21
22
23
// ===========================================================================
24
// included modules
25
// ===========================================================================
26
#ifdef _MSC_VER
27
#include <
windows_config.h
>
28
#else
29
#include <
config.h
>
30
#endif
31
32
#include <iostream>
33
#include <
utils/common/TplConvert.h
>
34
#include "../NIImporter_Vissim.h"
35
#include "../tempstructs/NIVissimClosures.h"
36
#include "
NIVissimSingleTypeParser_Kantensperrung.h
"
37
38
#ifdef CHECK_MEMORY_LEAKS
39
#include <
foreign/nvwa/debug_new.h
>
40
#endif // CHECK_MEMORY_LEAKS
41
42
43
// ===========================================================================
44
// method definitions
45
// ===========================================================================
46
NIVissimSingleTypeParser_Kantensperrung::NIVissimSingleTypeParser_Kantensperrung
(
NIImporter_Vissim
& parent)
47
:
NIImporter_Vissim
::VissimSingleTypeParser(parent) {}
48
49
50
NIVissimSingleTypeParser_Kantensperrung::~NIVissimSingleTypeParser_Kantensperrung
() {}
51
52
53
bool
54
NIVissimSingleTypeParser_Kantensperrung::parse
(std::istream& from) {
55
std::string tag;
56
from >> tag;
57
//
58
std::string id;
59
from >> id;
60
//
61
from >> tag;
62
from >> tag;
63
int
from_node;
64
from >> from_node;
65
//
66
from >> tag;
67
from >> tag;
68
int
to_node;
69
from >> to_node;
70
//
71
from >> tag;
72
from >> tag;
73
std::vector<int> edges;
74
while
(tag !=
"DATAEND"
) {
75
tag =
readEndSecure
(from);
76
if
(tag !=
"DATAEND"
) {
77
edges.push_back(
TplConvert<char>::_2int
(tag.c_str()));
78
}
79
}
80
NIVissimClosures::dictionary
(
id
, from_node, to_node, edges);
81
return
true
;
82
}
83
84
85
86
/****************************************************************************/
87
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
netimport
vissim
typeloader
NIVissimSingleTypeParser_Kantensperrung.cpp
Generated on Mon Mar 24 2014 09:53:13 for SUMO - Simulation of Urban MObility by
1.8.1.2