ad_map_access
LaneDirection.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 LaneDirection : int32_t
44 {
48  INVALID = 0,
52  UNKNOWN = 1,
56  POSITIVE = 2,
60  NEGATIVE = 3,
64  REVERSABLE = 4,
68  BIDIRECTIONAL = 5,
72  NONE = 6
73 };
74 
75 } // namespace lane
76 } // namespace map
77 } // namespace ad
81 std::string toString(::ad::map::lane::LaneDirection const e);
82 
101 template <typename EnumType> EnumType fromString(std::string const &str);
102 
122 
126 #ifndef GEN_GUARD_AD_MAP_LANE_LANEDIRECTION
127 #define GEN_GUARD_AD_MAP_LANE_LANEDIRECTION
128 
131 namespace ad {
135 namespace map {
141 namespace lane {
142 
152 inline std::ostream &operator<<(std::ostream &os, LaneDirection const &value)
153 {
154  return os << toString(value);
155 }
156 
157 } // namespace lane
158 } // namespace map
159 } // namespace ad
160 
161 namespace std {
165 inline std::string to_string(::ad::map::lane::LaneDirection const &value)
166 {
167  return ::toString(value);
168 }
169 } // namespace std
170 #endif // GEN_GUARD_AD_MAP_LANE_LANEDIRECTION
ad::map::lane::LaneDirection::UNKNOWN
@ UNKNOWN
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
ad::map::lane::LaneDirection::NONE
@ NONE
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::LaneDirection::BIDIRECTIONAL
@ BIDIRECTIONAL
toString
std::string toString(::ad::map::lane::LaneDirection const e)
Conversion of ad::map::lane::LaneDirection to std::string helper.
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
ad::map::lane::operator<<
std::ostream & operator<<(std::ostream &os, ContactLane const &_value)
standard ostream operator
Definition: ContactLane.hpp:182
ad::map::lane::LaneDirection::REVERSABLE
@ REVERSABLE
ad::map::lane::LaneDirection::INVALID
@ INVALID
ad::map::lane::LaneDirection::POSITIVE
@ POSITIVE
ad::map::lane::LaneDirection::NEGATIVE
@ NEGATIVE
ad::map::lane::LaneDirection
LaneDirection
DataType LaneDirection.
Definition: LaneDirection.hpp:43