ad_rss
generated
include
ad
rss
state
LongitudinalResponse.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
state {
35
43
enum class
LongitudinalResponse
: int32_t
44
{
48
None
= 0,
49
53
BrakeMinCorrect
= 1,
54
58
BrakeMin
= 2
59
};
60
61
}
// namespace state
62
}
// namespace rss
63
}
// namespace ad
67
std::string
toString
(::
ad::rss::state::LongitudinalResponse
const
e);
68
87
template
<
typename
EnumType> EnumType
fromString
(std::string
const
&str);
88
107
template <>::ad::rss::state::LongitudinalResponse
fromString
(std::string
const
&str);
108
112
#ifndef GEN_GUARD_AD_RSS_STATE_LONGITUDINALRESPONSE
113
#define GEN_GUARD_AD_RSS_STATE_LONGITUDINALRESPONSE
114
117
namespace
ad
{
121
namespace
rss {
125
namespace
state {
126
136
inline
std::ostream &
operator<<
(std::ostream &os,
LongitudinalResponse
const
&value)
137
{
138
return
os <<
toString
(value);
139
}
140
141
}
// namespace state
142
}
// namespace rss
143
}
// namespace ad
144
145
namespace
std {
149
inline
std::string
to_string
(::
ad::rss::state::LongitudinalResponse
const
&value)
150
{
151
return ::toString
(value);
152
}
153
}
// namespace std
154
#endif // GEN_GUARD_AD_RSS_STATE_LONGITUDINALRESPONSE
ad
namespace ad
Definition:
LateralRelativePosition.hpp:26
ad::rss::state::LongitudinalResponse::BrakeMinCorrect
@ BrakeMinCorrect
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
toString
std::string toString(::ad::rss::state::LongitudinalResponse const e)
Conversion of ad::rss::state::LongitudinalResponse to std::string helper.
ad::rss::state::operator<<
std::ostream & operator<<(std::ostream &os, AccelerationRestriction const &_value)
standard ostream operator
Definition:
AccelerationRestriction.hpp:164
ad::rss::state::LongitudinalResponse::None
@ None
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
ad::rss::state::LongitudinalResponse
LongitudinalResponse
DataType LongitudinalResponse.
Definition:
LongitudinalResponse.hpp:43
ad::rss::state::LongitudinalResponse::BrakeMin
@ BrakeMin
Generated by
1.8.17