Eclipse SUMO - Simulation of Urban MObility
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
Functions
a
c
e
f
g
h
i
j
l
n
o
r
s
t
u
Variables
a
c
d
f
g
i
j
k
l
m
o
p
r
s
t
v
Typedefs
b
c
d
e
f
g
i
j
k
m
n
o
p
r
s
t
u
v
Enumerations
Enumerator
a
c
d
f
m
p
s
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
v
w
Enumerations
a
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
v
w
Enumerator
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Properties
a
c
d
e
f
g
h
m
n
p
r
s
t
u
v
y
Related Symbols
:
a
b
d
f
g
i
m
n
o
p
r
s
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
v
w
Variables
a
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
x
y
z
Typedefs
a
c
e
f
g
i
l
m
n
p
r
s
Enumerations
a
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
v
x
Enumerator
a
b
d
f
g
i
k
l
m
p
r
s
t
v
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
NIVissimSource.cpp
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials are made available under the
5
// terms of the Eclipse Public License 2.0 which is available at
6
// https://www.eclipse.org/legal/epl-2.0/
7
// This Source Code may also be made available under the following Secondary
8
// Licenses when the conditions for such availability set forth in the Eclipse
9
// Public License 2.0 are satisfied: GNU General Public License, version 2
10
// or later which is available at
11
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
/****************************************************************************/
18
// -------------------
19
/****************************************************************************/
20
#include <config.h>
21
22
23
#include <string>
24
#include <map>
25
#include "
NIVissimSource.h
"
26
27
NIVissimSource::DictType
NIVissimSource::myDict
;
28
29
NIVissimSource::NIVissimSource
(
const
std::string&
id
,
const
std::string& name,
30
const
std::string& edgeid)
31
: myID(id), myName(name), myEdgeID(edgeid) {}
29
NIVissimSource::NIVissimSource
(
const
std::string&
id
,
const
std::string& name, {
…
}
32
33
34
NIVissimSource::~NIVissimSource
() {}
35
36
37
bool
38
NIVissimSource::dictionary
(
const
std::string&
id
,
const
std::string& name,
39
const
std::string& edgeid) {
40
NIVissimSource
* o =
new
NIVissimSource
(
id
, name, edgeid);
41
if
(!
dictionary
(
id
, o)) {
42
delete
o;
43
return
false
;
44
}
45
return
true
;
46
}
38
NIVissimSource::dictionary
(
const
std::string&
id
,
const
std::string& name, {
…
}
47
48
49
bool
50
NIVissimSource::dictionary
(
const
std::string&
id
,
NIVissimSource
* o) {
51
DictType::iterator i =
myDict
.find(
id
);
52
if
(i ==
myDict
.end()) {
53
myDict
[id] = o;
54
return
true
;
55
}
56
return
false
;
57
}
50
NIVissimSource::dictionary
(
const
std::string&
id
,
NIVissimSource
* o) {
…
}
58
59
60
NIVissimSource
*
61
NIVissimSource::dictionary
(
const
std::string&
id
) {
62
DictType::iterator i =
myDict
.find(
id
);
63
if
(i ==
myDict
.end()) {
64
return
nullptr
;
65
}
66
return
(*i).second;
67
}
61
NIVissimSource::dictionary
(
const
std::string&
id
) {
…
}
68
69
70
void
71
NIVissimSource::clearDict
() {
72
for
(DictType::iterator i =
myDict
.begin(); i !=
myDict
.end(); i++) {
73
delete
(*i).second;
74
}
75
myDict
.clear();
76
}
71
NIVissimSource::clearDict
() {
…
}
77
78
79
/****************************************************************************/
NIVissimSource.h
NIVissimSource
Definition
NIVissimSource.h:33
NIVissimSource::myDict
static DictType myDict
Definition
NIVissimSource.h:50
NIVissimSource::clearDict
static void clearDict()
Definition
NIVissimSource.cpp:71
NIVissimSource::NIVissimSource
NIVissimSource(const std::string &id, const std::string &name, const std::string &edgeid)
Definition
NIVissimSource.cpp:29
NIVissimSource::~NIVissimSource
~NIVissimSource()
Definition
NIVissimSource.cpp:34
NIVissimSource::dictionary
static bool dictionary(const std::string &id, const std::string &name, const std::string &edgeid)
Definition
NIVissimSource.cpp:38
NIVissimSource::DictType
std::map< std::string, NIVissimSource * > DictType
Definition
NIVissimSource.h:49
src
netimport
vissim
tempstructs
NIVissimSource.cpp
Generated on Sat Jun 7 2025 00:20:14 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8