ad_map_access
ConnectingRouteType.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 ConnectingRouteType : int32_t
44 {
49  Invalid = 0,
50 
59  Following = 1,
60 
67  Opposing = 2,
68 
74  Merging = 3
75 };
76 
77 } // namespace route
78 } // namespace map
79 } // namespace ad
83 std::string toString(::ad::map::route::ConnectingRouteType const e);
84 
103 template <typename EnumType> EnumType fromString(std::string const &str);
104 
124 
128 #ifndef GEN_GUARD_AD_MAP_ROUTE_CONNECTINGROUTETYPE
129 #define GEN_GUARD_AD_MAP_ROUTE_CONNECTINGROUTETYPE
130 
133 namespace ad {
137 namespace map {
143 namespace route {
144 
154 inline std::ostream &operator<<(std::ostream &os, ConnectingRouteType const &value)
155 {
156  return os << toString(value);
157 }
158 
159 } // namespace route
160 } // namespace map
161 } // namespace ad
162 
163 namespace std {
167 inline std::string to_string(::ad::map::route::ConnectingRouteType const &value)
168 {
169  return ::toString(value);
170 }
171 } // namespace std
172 #endif // GEN_GUARD_AD_MAP_ROUTE_CONNECTINGROUTETYPE
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
ad::map::route::ConnectingRouteType::Merging
@ Merging
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
toString
std::string toString(::ad::map::route::ConnectingRouteType const e)
Conversion of ad::map::route::ConnectingRouteType to std::string helper.
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::route::ConnectingRouteType::Opposing
@ Opposing
ad::map::route::operator<<
std::ostream & operator<<(std::ostream &os, ConnectingRoute const &_value)
standard ostream operator
Definition: ConnectingRoute.hpp:193
ad::map::route::ConnectingRouteType::Invalid
@ Invalid
ad::map::route::ConnectingRouteType
ConnectingRouteType
DataType ConnectingRouteType.
Definition: ConnectingRouteType.hpp:43
ad::map::route::ConnectingRouteType::Following
@ Following