ad_map_access
MapMatchedPositionType.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 match {
37 
43 enum class MapMatchedPositionType : int32_t
44 {
48  INVALID = 0,
49 
53  UNKNOWN = 1,
54 
58  LANE_IN = 2,
59 
63  LANE_LEFT = 3,
64 
68  LANE_RIGHT = 4
69 };
70 
71 } // namespace match
72 } // namespace map
73 } // namespace ad
78 
97 template <typename EnumType> EnumType fromString(std::string const &str);
98 
118 
122 #ifndef GEN_GUARD_AD_MAP_MATCH_MAPMATCHEDPOSITIONTYPE
123 #define GEN_GUARD_AD_MAP_MATCH_MAPMATCHEDPOSITIONTYPE
124 
127 namespace ad {
131 namespace map {
137 namespace match {
138 
148 inline std::ostream &operator<<(std::ostream &os, MapMatchedPositionType const &value)
149 {
150  return os << toString(value);
151 }
152 
153 } // namespace match
154 } // namespace map
155 } // namespace ad
156 
157 namespace std {
161 inline std::string to_string(::ad::map::match::MapMatchedPositionType const &value)
162 {
163  return ::toString(value);
164 }
165 } // namespace std
166 #endif // GEN_GUARD_AD_MAP_MATCH_MAPMATCHEDPOSITIONTYPE
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
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
ad::map::match::MapMatchedPositionType::LANE_RIGHT
@ LANE_RIGHT
ad::map::match::MapMatchedPositionType
MapMatchedPositionType
DataType MapMatchedPositionType.
Definition: MapMatchedPositionType.hpp:43
toString
std::string toString(::ad::map::match::MapMatchedPositionType const e)
Conversion of ad::map::match::MapMatchedPositionType to std::string helper.
ad::map::match::MapMatchedPositionType::INVALID
@ INVALID
ad::map::match::operator<<
std::ostream & operator<<(std::ostream &os, ENUObjectPosition const &_value)
standard ostream operator
Definition: ENUObjectPosition.hpp:175
ad::map::match::MapMatchedPositionType::LANE_IN
@ LANE_IN
ad::map::match::MapMatchedPositionType::LANE_LEFT
@ LANE_LEFT
ad::map::match::MapMatchedPositionType::UNKNOWN
@ UNKNOWN