Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
PCLoaderVisum.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2024 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
/****************************************************************************/
19
// A reader of pois and polygons stored in VISUM-format
20
/****************************************************************************/
21
#pragma once
22
#include <config.h>
23
24
#include <string>
25
#include "
PCPolyContainer.h
"
26
#include "
PCTypeMap.h
"
27
28
29
// ===========================================================================
30
// class definitions
31
// ===========================================================================
32
class
OptionsCont
;
33
34
35
// ===========================================================================
36
// class declarations
37
// ===========================================================================
42
class
PCLoaderVisum
{
43
public
:
56
static
void
loadIfSet
(
OptionsCont
& oc,
PCPolyContainer
& toFill,
57
PCTypeMap
& tm);
58
59
60
protected
:
67
static
void
load
(
const
std::string& file,
OptionsCont
& oc,
PCPolyContainer
& toFill,
68
PCTypeMap
& tm);
69
70
75
enum
VISUM_KEY
{
76
VISUM_SYS
,
77
VISUM_LINKTYPE
,
78
VISUM_NODE
,
79
VISUM_DISTRICT
,
80
VISUM_POINT
,
81
VISUM_LINK
,
82
VISUM_V0
,
83
VISUM_TYPES
,
84
VISUM_RANK
,
85
VISUM_CAPACITY
,
86
VISUM_XCOORD
,
87
VISUM_YCOORD
,
88
VISUM_FROMNODE
,
89
VISUM_TONODE
,
90
VISUM_TYPE
,
91
VISUM_TYP
,
92
VISUM_ID
,
93
VISUM_CODE
,
94
VISUM_DISTRICT_CONNECTION
,
95
VISUM_SOURCE_DISTRICT
,
96
VISUM_FROMNODENO
,
97
VISUM_DIRECTION
,
98
VISUM_SURFACEID
,
99
VISUM_FACEID
,
100
VISUM_FROMPOINTID
,
101
VISUM_TOPOINTID
,
102
VISUM_EDGE
,
103
VISUM_VIANODENO
,
104
VISUM_NUMLANES
,
105
VISUM_TURN
,
106
VISUM_INDEX
,
107
VISUM_LINKPOLY
,
108
VISUM_SURFACEITEM
,
109
VISUM_FACEITEM
,
110
VISUM_EDGEID
,
111
VISUM_ORIGIN
,
112
VISUM_DESTINATION
,
113
// polyconvert keys added to avoid warnings
114
VISUM_CATID
,
115
VISUM_EDGEITEM
,
116
VISUM_POICATEGORY
,
117
VISUM_NO
// must be the last one
118
};
119
121
static
StringBijection<VISUM_KEY>::Entry
KEYS_DE
[];
122
124
static
StringBijection<VISUM_KEY>
KEYS
;
125
126
static
void
loadLanguage
(
const
std::string& file);
127
};
PCPolyContainer.h
PCTypeMap.h
OptionsCont
A storage for options typed value containers)
Definition
OptionsCont.h:89
PCLoaderVisum
A reader of pois and polygons stored in VISUM-format.
Definition
PCLoaderVisum.h:42
PCLoaderVisum::VISUM_KEY
VISUM_KEY
Definition
PCLoaderVisum.h:75
PCLoaderVisum::VISUM_CATID
@ VISUM_CATID
Definition
PCLoaderVisum.h:114
PCLoaderVisum::VISUM_TOPOINTID
@ VISUM_TOPOINTID
Definition
PCLoaderVisum.h:101
PCLoaderVisum::VISUM_POINT
@ VISUM_POINT
Definition
PCLoaderVisum.h:80
PCLoaderVisum::VISUM_LINK
@ VISUM_LINK
Definition
PCLoaderVisum.h:81
PCLoaderVisum::VISUM_DIRECTION
@ VISUM_DIRECTION
Definition
PCLoaderVisum.h:97
PCLoaderVisum::VISUM_XCOORD
@ VISUM_XCOORD
Definition
PCLoaderVisum.h:86
PCLoaderVisum::VISUM_FROMPOINTID
@ VISUM_FROMPOINTID
Definition
PCLoaderVisum.h:100
PCLoaderVisum::VISUM_RANK
@ VISUM_RANK
Definition
PCLoaderVisum.h:84
PCLoaderVisum::VISUM_YCOORD
@ VISUM_YCOORD
Definition
PCLoaderVisum.h:87
PCLoaderVisum::VISUM_EDGE
@ VISUM_EDGE
Definition
PCLoaderVisum.h:102
PCLoaderVisum::VISUM_SURFACEID
@ VISUM_SURFACEID
Definition
PCLoaderVisum.h:98
PCLoaderVisum::VISUM_SURFACEITEM
@ VISUM_SURFACEITEM
Definition
PCLoaderVisum.h:108
PCLoaderVisum::VISUM_SOURCE_DISTRICT
@ VISUM_SOURCE_DISTRICT
Definition
PCLoaderVisum.h:95
PCLoaderVisum::VISUM_EDGEID
@ VISUM_EDGEID
Definition
PCLoaderVisum.h:110
PCLoaderVisum::VISUM_TYPES
@ VISUM_TYPES
Definition
PCLoaderVisum.h:83
PCLoaderVisum::VISUM_LINKPOLY
@ VISUM_LINKPOLY
Definition
PCLoaderVisum.h:107
PCLoaderVisum::VISUM_FROMNODENO
@ VISUM_FROMNODENO
Definition
PCLoaderVisum.h:96
PCLoaderVisum::VISUM_DISTRICT
@ VISUM_DISTRICT
Definition
PCLoaderVisum.h:79
PCLoaderVisum::VISUM_TYPE
@ VISUM_TYPE
Definition
PCLoaderVisum.h:90
PCLoaderVisum::VISUM_CAPACITY
@ VISUM_CAPACITY
Definition
PCLoaderVisum.h:85
PCLoaderVisum::VISUM_DESTINATION
@ VISUM_DESTINATION
Definition
PCLoaderVisum.h:112
PCLoaderVisum::VISUM_INDEX
@ VISUM_INDEX
Definition
PCLoaderVisum.h:106
PCLoaderVisum::VISUM_FACEITEM
@ VISUM_FACEITEM
Definition
PCLoaderVisum.h:109
PCLoaderVisum::VISUM_ORIGIN
@ VISUM_ORIGIN
Definition
PCLoaderVisum.h:111
PCLoaderVisum::VISUM_FROMNODE
@ VISUM_FROMNODE
Definition
PCLoaderVisum.h:88
PCLoaderVisum::VISUM_ID
@ VISUM_ID
Definition
PCLoaderVisum.h:92
PCLoaderVisum::VISUM_V0
@ VISUM_V0
Definition
PCLoaderVisum.h:82
PCLoaderVisum::VISUM_CODE
@ VISUM_CODE
Definition
PCLoaderVisum.h:93
PCLoaderVisum::VISUM_TURN
@ VISUM_TURN
Definition
PCLoaderVisum.h:105
PCLoaderVisum::VISUM_TYP
@ VISUM_TYP
Definition
PCLoaderVisum.h:91
PCLoaderVisum::VISUM_LINKTYPE
@ VISUM_LINKTYPE
Definition
PCLoaderVisum.h:77
PCLoaderVisum::VISUM_EDGEITEM
@ VISUM_EDGEITEM
Definition
PCLoaderVisum.h:115
PCLoaderVisum::VISUM_NO
@ VISUM_NO
Definition
PCLoaderVisum.h:117
PCLoaderVisum::VISUM_VIANODENO
@ VISUM_VIANODENO
Definition
PCLoaderVisum.h:103
PCLoaderVisum::VISUM_NUMLANES
@ VISUM_NUMLANES
Definition
PCLoaderVisum.h:104
PCLoaderVisum::VISUM_NODE
@ VISUM_NODE
Definition
PCLoaderVisum.h:78
PCLoaderVisum::VISUM_TONODE
@ VISUM_TONODE
Definition
PCLoaderVisum.h:89
PCLoaderVisum::VISUM_FACEID
@ VISUM_FACEID
Definition
PCLoaderVisum.h:99
PCLoaderVisum::VISUM_POICATEGORY
@ VISUM_POICATEGORY
Definition
PCLoaderVisum.h:116
PCLoaderVisum::VISUM_SYS
@ VISUM_SYS
Definition
PCLoaderVisum.h:76
PCLoaderVisum::VISUM_DISTRICT_CONNECTION
@ VISUM_DISTRICT_CONNECTION
Definition
PCLoaderVisum.h:94
PCLoaderVisum::KEYS_DE
static StringBijection< VISUM_KEY >::Entry KEYS_DE[]
Strings for the keywords.
Definition
PCLoaderVisum.h:48
PCLoaderVisum::loadLanguage
static void loadLanguage(const std::string &file)
Definition
PCLoaderVisum.cpp:432
PCLoaderVisum::load
static void load(const std::string &file, OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
Parses pois/polys stored within the given file.
Definition
PCLoaderVisum.cpp:125
PCLoaderVisum::KEYS
static StringBijection< VISUM_KEY > KEYS
link directions
Definition
PCLoaderVisum.h:124
PCLoaderVisum::loadIfSet
static void loadIfSet(OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm)
Loads pois/polygons assumed to be stored using VISUM-format.
Definition
PCLoaderVisum.cpp:101
PCPolyContainer
A storage for loaded polygons and pois.
Definition
PCPolyContainer.h:48
PCTypeMap
A storage for type mappings.
Definition
PCTypeMap.h:42
StringBijection
Definition
StringBijection.h:41
StringBijection::Entry
Definition
StringBijection.h:49
src
polyconvert
PCLoaderVisum.h
Generated on Tue Nov 5 2024 00:10:30 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8