ad_rss_map_integration
generated
include
ad
rss
map
RssRestrictSpeedLimitMode.hpp
Go to the documentation of this file.
1
/*
2
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
3
*
4
* Copyright (C) 2018-2022 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>
23
#include "spdlog/fmt/ostr.h"
24
#include "spdlog/spdlog.h"
28
namespace
ad
{
32
namespace
rss {
36
namespace
map {
37
43
enum class
RssRestrictSpeedLimitMode
: int32_t
44
{
48
None
= 0,
49
54
ExactSpeedLimit
= 1,
55
60
IncreasedSpeedLimit5
= 2,
61
66
IncreasedSpeedLimit10
= 3
67
};
68
69
}
// namespace map
70
}
// namespace rss
71
}
// namespace ad
75
std::string
toString
(::
ad::rss::map::RssRestrictSpeedLimitMode
const
e);
76
95
template
<
typename
EnumType> EnumType
fromString
(std::string
const
&str);
96
115
template <>::ad::rss::map::RssRestrictSpeedLimitMode
fromString
(std::string
const
&str);
116
120
#ifndef GEN_GUARD_AD_RSS_MAP_RSSRESTRICTSPEEDLIMITMODE
121
#define GEN_GUARD_AD_RSS_MAP_RSSRESTRICTSPEEDLIMITMODE
125
namespace
ad
{
129
namespace
rss {
133
namespace
map {
134
144
inline
std::ostream &
operator<<
(std::ostream &os,
RssRestrictSpeedLimitMode
const
&value)
145
{
146
return
os <<
toString
(value);
147
}
148
149
}
// namespace map
150
}
// namespace rss
151
}
// namespace ad
152
153
namespace
std {
157
inline
std::string
to_string
(::
ad::rss::map::RssRestrictSpeedLimitMode
const
&value)
158
{
159
return ::toString
(value);
160
}
161
}
// namespace std
162
166
template
<>
struct
fmt::formatter<::
ad::rss::map::RssRestrictSpeedLimitMode
> : formatter<string_view>
167
{
168
template
<
typename
FormatContext>
169
auto
format(::
ad::rss::map::RssRestrictSpeedLimitMode
const
&value, FormatContext &ctx)
170
{
171
return
formatter<string_view>::format(std::to_string(value), ctx);
172
}
173
};
174
175
#endif
// GEN_GUARD_AD_RSS_MAP_RSSRESTRICTSPEEDLIMITMODE
std::to_string
std::string to_string(::ad::rss::map::RouteAccelerations const &value)
overload of the std::to_string for RouteAccelerations
Definition:
RouteAccelerations.hpp:229
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
toString
std::string toString(::ad::rss::map::RssRestrictSpeedLimitMode const e)
Conversion of ad::rss::map::RssRestrictSpeedLimitMode to std::string helper.
ad::rss::map::RssRestrictSpeedLimitMode
RssRestrictSpeedLimitMode
DataType RssRestrictSpeedLimitMode.
Definition:
RssRestrictSpeedLimitMode.hpp:44
ad::rss::map::RssRestrictSpeedLimitMode::ExactSpeedLimit
@ ExactSpeedLimit
ad::rss::map::RssRestrictSpeedLimitMode::IncreasedSpeedLimit10
@ IncreasedSpeedLimit10
ad::rss::map::RssRestrictSpeedLimitMode::IncreasedSpeedLimit5
@ IncreasedSpeedLimit5
ad::rss::map::RssRestrictSpeedLimitMode::None
@ None
ad::rss::map::operator<<
std::ostream & operator<<(std::ostream &os, RouteAccelerations const &_value)
standard ostream operator
Definition:
RouteAccelerations.hpp:194
ad
namespace ad
Definition:
RouteAccelerations.hpp:33
Generated by
1.9.1