ad_rss_map_integration
RssAppendRoadBoundariesMode.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 RssAppendRoadBoundariesMode : int32_t
44 {
48  Off = 0,
49 
54  RouteOnly = 1,
55 
62 
69 };
70 
71 } // namespace map
72 } // namespace rss
73 } // namespace ad
78 
97 template <typename EnumType> EnumType fromString(std::string const &str);
98 
118 
122 #ifndef GEN_GUARD_AD_RSS_MAP_RSSAPPENDROADBOUNDARIESMODE
123 #define GEN_GUARD_AD_RSS_MAP_RSSAPPENDROADBOUNDARIESMODE
127 namespace ad {
131 namespace rss {
135 namespace map {
136 
146 inline std::ostream &operator<<(std::ostream &os, RssAppendRoadBoundariesMode const &value)
147 {
148  return os << toString(value);
149 }
150 
151 } // namespace map
152 } // namespace rss
153 } // namespace ad
154 
155 namespace std {
159 inline std::string to_string(::ad::rss::map::RssAppendRoadBoundariesMode const &value)
160 {
161  return ::toString(value);
162 }
163 } // namespace std
164 
168 template <> struct fmt::formatter<::ad::rss::map::RssAppendRoadBoundariesMode> : formatter<string_view>
169 {
170  template <typename FormatContext>
171  auto format(::ad::rss::map::RssAppendRoadBoundariesMode const &value, FormatContext &ctx)
172  {
173  return formatter<string_view>::format(std::to_string(value), ctx);
174  }
175 };
176 
177 #endif // GEN_GUARD_AD_RSS_MAP_RSSAPPENDROADBOUNDARIESMODE
std::string to_string(::ad::rss::map::RouteAccelerations const &value)
overload of the std::to_string for RouteAccelerations
Definition: RouteAccelerations.hpp:229
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
std::string toString(::ad::rss::map::RssAppendRoadBoundariesMode const e)
Conversion of ad::rss::map::RssAppendRoadBoundariesMode to std::string helper.
RssAppendRoadBoundariesMode
DataType RssAppendRoadBoundariesMode.
Definition: RssAppendRoadBoundariesMode.hpp:44
std::ostream & operator<<(std::ostream &os, RouteAccelerations const &_value)
standard ostream operator
Definition: RouteAccelerations.hpp:194
namespace ad
Definition: RouteAccelerations.hpp:33