ad_map_access
ContactType.hpp
Go to the documentation of this file.
1 /*
2  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
3  *
4  * Copyright (C) 2018-2020 Intel Corporation
5  *
6  * SPDX-License-Identifier: MIT
7  *
8  * ----------------- END LICENSE BLOCK -----------------------------------
9  */
10 
18 #pragma once
19 
20 #include <iostream>
21 #include <memory>
22 #include <string>
26 namespace ad {
30 namespace map {
36 namespace lane {
37 
43 enum class ContactType : int32_t
44 {
48  INVALID = 0,
49 
53  UNKNOWN = 1,
54 
58  FREE = 2,
59 
63  LANE_CHANGE = 3,
64 
69 
73  LANE_END = 5,
74 
78  SINGLE_POINT = 6,
79 
83  STOP = 7,
84 
88  STOP_ALL = 8,
89 
93  YIELD = 9,
94 
98  GATE_BARRIER = 10,
99 
103  GATE_TOLBOOTH = 11,
104 
108  GATE_SPIKES = 12,
109 
113  GATE_SPIKES_CONTRA = 13,
114 
118  CURB_UP = 14,
119 
123  CURB_DOWN = 15,
124 
128  SPEED_BUMP = 16,
129 
133  TRAFFIC_LIGHT = 17,
134 
138  CROSSWALK = 18,
139 
143  PRIO_TO_RIGHT = 19,
144 
148  RIGHT_OF_WAY = 20,
149 
154 };
155 
156 } // namespace lane
157 } // namespace map
158 } // namespace ad
162 std::string toString(::ad::map::lane::ContactType const e);
163 
182 template <typename EnumType> EnumType fromString(std::string const &str);
183 
203 
207 #ifndef GEN_GUARD_AD_MAP_LANE_CONTACTTYPE
208 #define GEN_GUARD_AD_MAP_LANE_CONTACTTYPE
209 
212 namespace ad {
216 namespace map {
222 namespace lane {
223 
233 inline std::ostream &operator<<(std::ostream &os, ContactType const &value)
234 {
235  return os << toString(value);
236 }
237 
238 } // namespace lane
239 } // namespace map
240 } // namespace ad
241 
242 namespace std {
246 inline std::string to_string(::ad::map::lane::ContactType const &value)
247 {
248  return ::toString(value);
249 }
250 } // namespace std
251 #endif // GEN_GUARD_AD_MAP_LANE_CONTACTTYPE
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
ad::map::lane::ContactType::GATE_TOLBOOTH
@ GATE_TOLBOOTH
ad::map::lane::ContactType::STOP_ALL
@ STOP_ALL
ad::map::lane::ContactType
ContactType
DataType ContactType.
Definition: ContactType.hpp:43
ad::map::lane::ContactType::RIGHT_OF_WAY
@ RIGHT_OF_WAY
ad::map::lane::ContactType::GATE_SPIKES_CONTRA
@ GATE_SPIKES_CONTRA
ad::map::lane::ContactType::LANE_CHANGE
@ LANE_CHANGE
ad::map::lane::ContactType::CURB_UP
@ CURB_UP
ad::map::lane::ContactType::CURB_DOWN
@ CURB_DOWN
std::to_string
std::string to_string(::ad::map::access::GeometryStoreItem const &value)
overload of the std::to_string for GeometryStoreItem
Definition: GeometryStoreItem.hpp:183
ad::map::lane::ContactType::LANE_END
@ LANE_END
ad::map::lane::ContactType::SINGLE_POINT
@ SINGLE_POINT
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
ad::map::lane::ContactType::STOP
@ STOP
ad::map::lane::ContactType::PRIO_TO_RIGHT
@ PRIO_TO_RIGHT
ad::map::lane::operator<<
std::ostream & operator<<(std::ostream &os, ContactLane const &_value)
standard ostream operator
Definition: ContactLane.hpp:182
ad::map::lane::ContactType::PRIO_TO_RIGHT_AND_STRAIGHT
@ PRIO_TO_RIGHT_AND_STRAIGHT
ad::map::lane::ContactType::GATE_SPIKES
@ GATE_SPIKES
ad::map::lane::ContactType::LANE_CONTINUATION
@ LANE_CONTINUATION
toString
std::string toString(::ad::map::lane::ContactType const e)
Conversion of ad::map::lane::ContactType to std::string helper.
ad::map::lane::ContactType::FREE
@ FREE
ad::map::lane::ContactType::CROSSWALK
@ CROSSWALK
ad::map::lane::ContactType::TRAFFIC_LIGHT
@ TRAFFIC_LIGHT
ad::map::lane::ContactType::GATE_BARRIER
@ GATE_BARRIER
ad::map::lane::ContactType::INVALID
@ INVALID
ad::map::lane::ContactType::SPEED_BUMP
@ SPEED_BUMP
ad::map::lane::ContactType::UNKNOWN
@ UNKNOWN
ad::map::lane::ContactType::YIELD
@ YIELD