ad_map_access
ObjectReferencePoints.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 ObjectReferencePoints : int32_t
44 {
48  FrontLeft = 0,
52  FrontRight = 1,
56  RearLeft = 2,
60  RearRight = 3,
64  Center = 4,
68  NumPoints = 5
69 };
70 
71 } // namespace match
72 } // namespace map
73 } // namespace ad
77 std::string toString(::ad::map::match::ObjectReferencePoints const e);
78 
97 template <typename EnumType> EnumType fromString(std::string const &str);
98 
118 
122 #ifndef GEN_GUARD_AD_MAP_MATCH_OBJECTREFERENCEPOINTS
123 #define GEN_GUARD_AD_MAP_MATCH_OBJECTREFERENCEPOINTS
124 
127 namespace ad {
131 namespace map {
137 namespace match {
138 
148 inline std::ostream &operator<<(std::ostream &os, ObjectReferencePoints 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::ObjectReferencePoints const &value)
162 {
163  return ::toString(value);
164 }
165 } // namespace std
166 #endif // GEN_GUARD_AD_MAP_MATCH_OBJECTREFERENCEPOINTS
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
toString
std::string toString(::ad::map::match::ObjectReferencePoints const e)
Conversion of ad::map::match::ObjectReferencePoints to std::string helper.
ad::map::match::ObjectReferencePoints::FrontLeft
@ FrontLeft
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::ObjectReferencePoints::NumPoints
@ NumPoints
ad::map::match::ObjectReferencePoints::RearRight
@ RearRight
ad::map::match::operator<<
std::ostream & operator<<(std::ostream &os, ENUObjectPosition const &_value)
standard ostream operator
Definition: ENUObjectPosition.hpp:175
ad::map::match::ObjectReferencePoints::RearLeft
@ RearLeft
ad::map::match::ObjectReferencePoints::Center
@ Center
ad::map::match::ObjectReferencePoints::FrontRight
@ FrontRight
ad::map::match::ObjectReferencePoints
ObjectReferencePoints
DataType ObjectReferencePoints.
Definition: ObjectReferencePoints.hpp:43