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
PCTypeMap.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// A storage for type mappings
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2005-2014 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
#ifndef PCTypeMap_h
23
#define PCTypeMap_h
24
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include "
utils/common/RGBColor.h
"
36
#include <string>
37
#include <map>
38
39
40
// ===========================================================================
41
// class declarations
42
// ===========================================================================
43
class
OptionsCont
;
44
52
class
PCTypeMap
{
53
public
:
55
PCTypeMap
(
const
OptionsCont
& oc);
56
57
59
~PCTypeMap
();
60
61
66
struct
TypeDef
{
68
std::string
id
;
70
RGBColor
color
;
72
std::string
prefix
;
74
int
layer
;
76
bool
discard
;
78
bool
allowFill
;
79
80
};
81
82
94
bool
add
(
const
std::string&
id
,
const
std::string& newid,
const
std::string& color,
95
const
std::string& prefix,
int
layer,
bool
discard,
bool
allowFill);
96
97
105
const
TypeDef
&
get
(
const
std::string& id);
106
107
112
bool
has
(
const
std::string&
id
);
113
115
const
TypeDef
&
getDefault
() {
116
return
myDefaultType
;
117
}
118
119
protected
:
121
std::map<std::string, TypeDef>
myTypes
;
122
123
TypeDef
myDefaultType
;
124
125
};
126
127
128
#endif
129
130
/****************************************************************************/
131
tmp
buildd
sumo-0.21.0+dfsg
src
polyconvert
PCTypeMap.h
Generated on Thu Nov 20 2014 19:49:58 for SUMO - Simulation of Urban MObility by
1.8.1.2