ad_rss
LaneSegmentType.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 world {
35 
39 enum class LaneSegmentType : int32_t
40 {
44  Normal = 0,
45 
49  Intersection = 1
50 };
51 
52 } // namespace world
53 } // namespace rss
54 } // namespace ad
58 std::string toString(::ad::rss::world::LaneSegmentType const e);
59 
78 template <typename EnumType> EnumType fromString(std::string const &str);
79 
99 
103 #ifndef GEN_GUARD_AD_RSS_WORLD_LANESEGMENTTYPE
104 #define GEN_GUARD_AD_RSS_WORLD_LANESEGMENTTYPE
105 
108 namespace ad {
112 namespace rss {
116 namespace world {
117 
127 inline std::ostream &operator<<(std::ostream &os, LaneSegmentType const &value)
128 {
129  return os << toString(value);
130 }
131 
132 } // namespace world
133 } // namespace rss
134 } // namespace ad
135 
136 namespace std {
140 inline std::string to_string(::ad::rss::world::LaneSegmentType const &value)
141 {
142  return ::toString(value);
143 }
144 } // namespace std
145 #endif // GEN_GUARD_AD_RSS_WORLD_LANESEGMENTTYPE
ad
namespace ad
Definition: LateralRelativePosition.hpp:26
ad::rss::world::LaneSegmentType::Normal
@ Normal
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
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::world::operator<<
std::ostream & operator<<(std::ostream &os, LaneDrivingDirection const &value)
standard ostream operator
Definition: LaneDrivingDirection.hpp:132
toString
std::string toString(::ad::rss::world::LaneSegmentType const e)
Conversion of ad::rss::world::LaneSegmentType to std::string helper.
ad::rss::world::LaneSegmentType
LaneSegmentType
DataType LaneSegmentType.
Definition: LaneSegmentType.hpp:39
ad::rss::world::LaneSegmentType::Intersection
@ Intersection