ad_rss
LateralRelativePosition.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: LGPL-2.1-only
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 rss {
34 namespace situation {
35 
42 enum class LateralRelativePosition : int32_t
43 {
47  AtLeft = 0,
48 
53  OverlapLeft = 1,
54 
58  Overlap = 2,
59 
64  OverlapRight = 3,
65 
69  AtRight = 4
70 };
71 
72 } // namespace situation
73 } // namespace rss
74 } // namespace ad
79 
98 template <typename EnumType> EnumType fromString(std::string const &str);
99 
119 
123 #ifndef GEN_GUARD_AD_RSS_SITUATION_LATERALRELATIVEPOSITION
124 #define GEN_GUARD_AD_RSS_SITUATION_LATERALRELATIVEPOSITION
125 
128 namespace ad {
132 namespace rss {
136 namespace situation {
137 
147 inline std::ostream &operator<<(std::ostream &os, LateralRelativePosition const &value)
148 {
149  return os << toString(value);
150 }
151 
152 } // namespace situation
153 } // namespace rss
154 } // namespace ad
155 
156 namespace std {
160 inline std::string to_string(::ad::rss::situation::LateralRelativePosition const &value)
161 {
162  return ::toString(value);
163 }
164 } // namespace std
165 #endif // GEN_GUARD_AD_RSS_SITUATION_LATERALRELATIVEPOSITION
ad
namespace ad
Definition: LateralRelativePosition.hpp:26
ad::rss::situation::LateralRelativePosition::AtRight
@ AtRight
ad::rss::situation::LateralRelativePosition::OverlapLeft
@ OverlapLeft
std::to_string
std::string to_string(::ad::rss::situation::LateralRelativePosition const &value)
overload of the std::to_string for LateralRelativePosition
Definition: LateralRelativePosition.hpp:160
ad::rss::situation::LateralRelativePosition::AtLeft
@ AtLeft
ad::rss::situation::operator<<
std::ostream & operator<<(std::ostream &os, LateralRelativePosition const &value)
standard ostream operator
Definition: LateralRelativePosition.hpp:147
toString
std::string toString(::ad::rss::situation::LateralRelativePosition const e)
Conversion of ad::rss::situation::LateralRelativePosition to std::string helper.
ad::rss::situation::LateralRelativePosition::OverlapRight
@ OverlapRight
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
ad::rss::situation::LateralRelativePosition::Overlap
@ Overlap
ad::rss::situation::LateralRelativePosition
LateralRelativePosition
DataType LateralRelativePosition.
Definition: LateralRelativePosition.hpp:42