ad_map_access
TrafficLightType.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 landmark {
37 
43 enum class TrafficLightType : int32_t
44 {
48  INVALID = 0,
49 
53  UNKNOWN = 1,
54 
58  SOLID_RED_YELLOW = 2,
59 
64 
69 
74 
79 
84 
89 
94 
98  BIKE_RED_GREEN = 10,
99 
104 
109 
114 
119 };
120 
121 } // namespace landmark
122 } // namespace map
123 } // namespace ad
127 std::string toString(::ad::map::landmark::TrafficLightType const e);
128 
147 template <typename EnumType> EnumType fromString(std::string const &str);
148 
168 
172 #ifndef GEN_GUARD_AD_MAP_LANDMARK_TRAFFICLIGHTTYPE
173 #define GEN_GUARD_AD_MAP_LANDMARK_TRAFFICLIGHTTYPE
174 
177 namespace ad {
181 namespace map {
187 namespace landmark {
188 
198 inline std::ostream &operator<<(std::ostream &os, TrafficLightType const &value)
199 {
200  return os << toString(value);
201 }
202 
203 } // namespace landmark
204 } // namespace map
205 } // namespace ad
206 
207 namespace std {
211 inline std::string to_string(::ad::map::landmark::TrafficLightType const &value)
212 {
213  return ::toString(value);
214 }
215 } // namespace std
216 #endif // GEN_GUARD_AD_MAP_LANDMARK_TRAFFICLIGHTTYPE
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
ad::map::landmark::TrafficLightType::SOLID_RED_YELLOW_GREEN
@ SOLID_RED_YELLOW_GREEN
ad::map::landmark::operator<<
std::ostream & operator<<(std::ostream &os, ENULandmark const &_value)
standard ostream operator
Definition: ENULandmark.hpp:179
ad::map::landmark::TrafficLightType::BIKE_RED_YELLOW_GREEN
@ BIKE_RED_YELLOW_GREEN
ad::map::landmark::TrafficLightType::UNKNOWN
@ UNKNOWN
ad::map::landmark::TrafficLightType::STRAIGHT_RED_YELLOW_GREEN
@ STRAIGHT_RED_YELLOW_GREEN
ad::map::landmark::TrafficLightType::BIKE_PEDESTRIAN_RED_YELLOW_GREEN
@ BIKE_PEDESTRIAN_RED_YELLOW_GREEN
ad::map::landmark::TrafficLightType::LEFT_RED_YELLOW_GREEN
@ LEFT_RED_YELLOW_GREEN
ad::map::landmark::TrafficLightType::BIKE_RED_GREEN
@ BIKE_RED_GREEN
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::landmark::TrafficLightType
TrafficLightType
DataType TrafficLightType.
Definition: TrafficLightType.hpp:43
ad::map::landmark::TrafficLightType::BIKE_PEDESTRIAN_RED_GREEN
@ BIKE_PEDESTRIAN_RED_GREEN
ad::map::landmark::TrafficLightType::INVALID
@ INVALID
ad::map::landmark::TrafficLightType::PEDESTRIAN_RED_GREEN
@ PEDESTRIAN_RED_GREEN
toString
std::string toString(::ad::map::landmark::TrafficLightType const e)
Conversion of ad::map::landmark::TrafficLightType to std::string helper.
ad::map::landmark::TrafficLightType::SOLID_RED_YELLOW
@ SOLID_RED_YELLOW
ad::map::landmark::TrafficLightType::LEFT_STRAIGHT_RED_YELLOW_GREEN
@ LEFT_STRAIGHT_RED_YELLOW_GREEN
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
ad::map::landmark::TrafficLightType::RIGHT_STRAIGHT_RED_YELLOW_GREEN
@ RIGHT_STRAIGHT_RED_YELLOW_GREEN
ad::map::landmark::TrafficLightType::RIGHT_RED_YELLOW_GREEN
@ RIGHT_RED_YELLOW_GREEN
ad::map::landmark::TrafficLightType::PEDESTRIAN_RED_YELLOW_GREEN
@ PEDESTRIAN_RED_YELLOW_GREEN