Eclipse SUMO - Simulation of Urban MObility
NIVissimVehicleType.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
15
// -------------------
16
/****************************************************************************/
17
#ifndef NIVissimVehicleType_h
18
#define NIVissimVehicleType_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
27
#include <
utils/common/RGBColor.h
>
28
#include <string>
29
#include <map>
30
31
// ===========================================================================
32
// class definitions
33
// ===========================================================================
37
class
NIVissimVehicleType
{
38
public
:
39
NIVissimVehicleType
(
const
std::string& name,
40
const
std::string& category,
const
RGBColor
& color);
41
~NIVissimVehicleType
();
42
static
bool
dictionary
(
int
id
,
const
std::string& name,
43
const
std::string& category,
const
RGBColor
& color);
44
static
bool
dictionary
(
int
id
,
NIVissimVehicleType
* o);
45
static
NIVissimVehicleType
*
dictionary
(
int
id
);
46
static
void
clearDict
();
47
48
private
:
49
std::string
myName
;
50
std::string
myCategory
;
51
RGBColor
myColor
;
52
private
:
53
typedef
std::map<int, NIVissimVehicleType*>
DictType
;
54
static
DictType
myDict
;
55
};
56
57
58
#endif
59
60
/****************************************************************************/
61
NIVissimVehicleType::NIVissimVehicleType
NIVissimVehicleType(const std::string &name, const std::string &category, const RGBColor &color)
Definition:
NIVissimVehicleType.cpp:29
NIVissimVehicleType::~NIVissimVehicleType
~NIVissimVehicleType()
Definition:
NIVissimVehicleType.cpp:35
RGBColor.h
RGBColor
Definition:
RGBColor.h:40
NIVissimVehicleType::myColor
RGBColor myColor
Definition:
NIVissimVehicleType.h:51
NIVissimVehicleType::myDict
static DictType myDict
Definition:
NIVissimVehicleType.h:54
NIVissimVehicleType::clearDict
static void clearDict()
Definition:
NIVissimVehicleType.cpp:72
NIVissimVehicleType::myName
std::string myName
Definition:
NIVissimVehicleType.h:49
NIVissimVehicleType::myCategory
std::string myCategory
Definition:
NIVissimVehicleType.h:50
config.h
NIVissimVehicleType
Definition:
NIVissimVehicleType.h:37
NIVissimVehicleType::DictType
std::map< int, NIVissimVehicleType * > DictType
Definition:
NIVissimVehicleType.h:53
NIVissimVehicleType::dictionary
static bool dictionary(int id, const std::string &name, const std::string &category, const RGBColor &color)
Definition:
NIVissimVehicleType.cpp:40
src
netimport
vissim
tempstructs
NIVissimVehicleType.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16