ad_map_access
LaneChangeDirection.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 route {
37 
43 enum class LaneChangeDirection : int32_t
44 {
48  LeftToRight = 0,
49 
53  RightToLeft = 1,
54 
58  Invalid = 2
59 };
60 
61 } // namespace route
62 } // namespace map
63 } // namespace ad
67 std::string toString(::ad::map::route::LaneChangeDirection const e);
68 
87 template <typename EnumType> EnumType fromString(std::string const &str);
88 
108 
112 #ifndef GEN_GUARD_AD_MAP_ROUTE_LANECHANGEDIRECTION
113 #define GEN_GUARD_AD_MAP_ROUTE_LANECHANGEDIRECTION
114 
117 namespace ad {
121 namespace map {
127 namespace route {
128 
138 inline std::ostream &operator<<(std::ostream &os, LaneChangeDirection const &value)
139 {
140  return os << toString(value);
141 }
142 
143 } // namespace route
144 } // namespace map
145 } // namespace ad
146 
147 namespace std {
151 inline std::string to_string(::ad::map::route::LaneChangeDirection const &value)
152 {
153  return ::toString(value);
154 }
155 } // namespace std
156 #endif // GEN_GUARD_AD_MAP_ROUTE_LANECHANGEDIRECTION
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
ad::map::route::LaneChangeDirection
LaneChangeDirection
DataType LaneChangeDirection.
Definition: LaneChangeDirection.hpp:43
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
toString
std::string toString(::ad::map::route::LaneChangeDirection const e)
Conversion of ad::map::route::LaneChangeDirection to std::string helper.
ad::map::route::operator<<
std::ostream & operator<<(std::ostream &os, ConnectingRoute const &_value)
standard ostream operator
Definition: ConnectingRoute.hpp:193
ad::map::route::LaneChangeDirection::RightToLeft
@ RightToLeft
ad::map::route::LaneChangeDirection::LeftToRight
@ LeftToRight
ad::map::route::LaneChangeDirection::Invalid
@ Invalid