ad_map_access
RouteCreationMode.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 RouteCreationMode : int32_t
44 {
48  Undefined = 0,
49 
54 
58  AllRoutableLanes = 2,
59 
64 };
65 
66 } // namespace route
67 } // namespace map
68 } // namespace ad
72 std::string toString(::ad::map::route::RouteCreationMode const e);
73 
92 template <typename EnumType> EnumType fromString(std::string const &str);
93 
113 
117 #ifndef GEN_GUARD_AD_MAP_ROUTE_ROUTECREATIONMODE
118 #define GEN_GUARD_AD_MAP_ROUTE_ROUTECREATIONMODE
119 
122 namespace ad {
126 namespace map {
132 namespace route {
133 
143 inline std::ostream &operator<<(std::ostream &os, RouteCreationMode const &value)
144 {
145  return os << toString(value);
146 }
147 
148 } // namespace route
149 } // namespace map
150 } // namespace ad
151 
152 namespace std {
156 inline std::string to_string(::ad::map::route::RouteCreationMode const &value)
157 {
158  return ::toString(value);
159 }
160 } // namespace std
161 #endif // GEN_GUARD_AD_MAP_ROUTE_ROUTECREATIONMODE
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
ad::map::route::RouteCreationMode::Undefined
@ Undefined
ad::map::route::RouteCreationMode
RouteCreationMode
DataType RouteCreationMode.
Definition: RouteCreationMode.hpp:43
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T 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
toString
std::string toString(::ad::map::route::RouteCreationMode const e)
Conversion of ad::map::route::RouteCreationMode to std::string helper.
ad::map::route::RouteCreationMode::SameDrivingDirection
@ SameDrivingDirection
ad::map::route::RouteCreationMode::AllNeighborLanes
@ AllNeighborLanes
ad::map::route::operator<<
std::ostream & operator<<(std::ostream &os, ConnectingRoute const &_value)
standard ostream operator
Definition: ConnectingRoute.hpp:193
ad::map::route::RouteCreationMode::AllRoutableLanes
@ AllRoutableLanes