ad_rss
generated
include
ad
rss
world
LaneDrivingDirection.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
LaneDrivingDirection
: int32_t
40
{
44
Bidirectional
= 0,
45
49
Positive
= 1,
50
54
Negative
= 2
55
};
56
57
}
// namespace world
58
}
// namespace rss
59
}
// namespace ad
63
std::string
toString
(::
ad::rss::world::LaneDrivingDirection
const
e);
64
83
template
<
typename
EnumType> EnumType
fromString
(std::string
const
&str);
84
103
template <>::ad::rss::world::LaneDrivingDirection
fromString
(std::string
const
&str);
104
108
#ifndef GEN_GUARD_AD_RSS_WORLD_LANEDRIVINGDIRECTION
109
#define GEN_GUARD_AD_RSS_WORLD_LANEDRIVINGDIRECTION
110
113
namespace
ad
{
117
namespace
rss {
121
namespace
world {
122
132
inline
std::ostream &
operator<<
(std::ostream &os,
LaneDrivingDirection
const
&value)
133
{
134
return
os <<
toString
(value);
135
}
136
137
}
// namespace world
138
}
// namespace rss
139
}
// namespace ad
140
141
namespace
std {
145
inline
std::string
to_string
(::
ad::rss::world::LaneDrivingDirection
const
&value)
146
{
147
return ::toString
(value);
148
}
149
}
// namespace std
150
#endif // GEN_GUARD_AD_RSS_WORLD_LANEDRIVINGDIRECTION
ad::rss::world::LaneDrivingDirection::Negative
@ Negative
ad
namespace ad
Definition:
LateralRelativePosition.hpp:26
toString
std::string toString(::ad::rss::world::LaneDrivingDirection const e)
Conversion of ad::rss::world::LaneDrivingDirection to std::string 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
ad::rss::world::LaneDrivingDirection
LaneDrivingDirection
DataType LaneDrivingDirection.
Definition:
LaneDrivingDirection.hpp:39
ad::rss::world::LaneDrivingDirection::Positive
@ Positive
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
ad::rss::world::LaneDrivingDirection::Bidirectional
@ Bidirectional
Generated by
1.8.17