ad_rss
SituationType.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 
41 enum class SituationType : int32_t
42 {
48  NotRelevant = 0,
49 
53  SameDirection = 1,
54 
59 
64 
69 
74 
78  Unstructured = 6
79 };
80 
81 } // namespace situation
82 } // namespace rss
83 } // namespace ad
87 std::string toString(::ad::rss::situation::SituationType const e);
88 
107 template <typename EnumType> EnumType fromString(std::string const &str);
108 
128 
132 #ifndef GEN_GUARD_AD_RSS_SITUATION_SITUATIONTYPE
133 #define GEN_GUARD_AD_RSS_SITUATION_SITUATIONTYPE
134 
137 namespace ad {
141 namespace rss {
145 namespace situation {
146 
156 inline std::ostream &operator<<(std::ostream &os, SituationType const &value)
157 {
158  return os << toString(value);
159 }
160 
161 } // namespace situation
162 } // namespace rss
163 } // namespace ad
164 
165 namespace std {
169 inline std::string to_string(::ad::rss::situation::SituationType const &value)
170 {
171  return ::toString(value);
172 }
173 } // namespace std
174 #endif // GEN_GUARD_AD_RSS_SITUATION_SITUATIONTYPE
ad
namespace ad
Definition: LateralRelativePosition.hpp:26
ad::rss::situation::SituationType::SameDirection
@ SameDirection
ad::rss::situation::SituationType::OppositeDirection
@ OppositeDirection
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
ad::rss::situation::SituationType::IntersectionEgoHasPriority
@ IntersectionEgoHasPriority
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::SituationType::IntersectionObjectHasPriority
@ IntersectionObjectHasPriority
toString
std::string toString(::ad::rss::situation::SituationType const e)
Conversion of ad::rss::situation::SituationType to std::string helper.
ad::rss::situation::SituationType::IntersectionSamePriority
@ IntersectionSamePriority
ad::rss::situation::operator<<
std::ostream & operator<<(std::ostream &os, LateralRelativePosition const &value)
standard ostream operator
Definition: LateralRelativePosition.hpp:147
ad::rss::situation::SituationType::NotRelevant
@ NotRelevant
ad::rss::situation::SituationType::Unstructured
@ Unstructured
ad::rss::situation::SituationType
SituationType
DataType SituationType.
Definition: SituationType.hpp:41