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
NBSign.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// A class representing a street sign
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11
// Copyright (C) 2012-2014 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
#ifndef NBSign_h
22
#define NBSign_h
23
24
25
// ===========================================================================
26
// included modules
27
// ===========================================================================
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include <string>
35
#include <
utils/common/StringBijection.h
>
36
37
// ===========================================================================
38
// class declarations
39
// ===========================================================================
40
class
NBEdge
;
41
class
OutputDevice
;
42
43
44
// ===========================================================================
45
// class definitions
46
// ===========================================================================
51
class
NBSign
{
52
public
:
53
54
enum
SignType
{
55
SIGN_TYPE_SPEED
,
56
SIGN_TYPE_YIELD
,
57
SIGN_TYPE_STOP
,
58
SIGN_TYPE_ALLWAY_STOP
,
59
SIGN_TYPE_ON_RAMP
,
60
SIGN_TYPE_PRIORITY
,
61
SIGN_TYPE_RIGHT_BEFORE_LEFT
,
62
SIGN_TYPE_ROUNDABOUT
,
63
SIGN_TYPE_RAIL_CROSSING
,
64
SIGN_TYPE_SLOPE
,
65
SIGN_TYPE_CITY
,
66
SIGN_TYPE_INFO
// terminator
67
};
68
75
NBSign
(
SignType
type,
SUMOReal
offset,
const
std::string label =
""
);
76
77
79
~NBSign
();
80
82
void
writeAsPOI
(
OutputDevice
& into,
const
NBEdge
* edge)
const
;
83
84
85
private
:
87
SignType
myType
;
88
90
SUMOReal
myOffset
;
91
93
std::string
myLabel
;
94
95
static
StringBijection<SignType>
SignTypeStrings
;
96
static
StringBijection<SignType>
SignTypeColors
;
97
};
98
99
100
#endif
101
102
/****************************************************************************/
103
tmp
buildd
sumo-0.21.0+dfsg
src
netbuild
NBSign.h
Generated on Thu Nov 20 2014 19:49:56 for SUMO - Simulation of Urban MObility by
1.8.1.2