ad_rss_map_integration
RssObjectAdapterDataList.hpp
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 
11 #pragma once
12 
13 #include <iostream>
14 #include <sstream>
15 #include <vector>
20 namespace ad {
24 namespace rss {
28 namespace map {
29 
35 typedef std::vector<::ad::rss::map::RssObjectAdapterData> RssObjectAdapterDataList;
36 
37 } // namespace map
38 } // namespace rss
39 } // namespace ad
40 
44 #ifndef GEN_GUARD_VECTOR_AD_RSS_MAP_RSSObjectAdapterData
45 #define GEN_GUARD_VECTOR_AD_RSS_MAP_RSSObjectAdapterData
46 namespace std {
56 inline std::ostream &operator<<(std::ostream &os, vector<::ad::rss::map::RssObjectAdapterData> const &_value)
57 {
58  os << "[";
59  for (auto it = _value.begin(); it != _value.end(); it++)
60  {
61  if (it != _value.begin())
62  {
63  os << ",";
64  }
65  os << *it;
66  }
67  os << "]";
68  return os;
69 }
70 } // namespace std
71 
72 namespace std {
76 inline std::string to_string(::ad::rss::map::RssObjectAdapterDataList const &value)
77 {
78  stringstream sstream;
79  sstream << value;
80  return sstream.str();
81 }
82 } // namespace std
83 
87 template <> struct fmt::formatter<::ad::rss::map::RssObjectAdapterDataList> : formatter<string_view>
88 {
89  template <typename FormatContext>
90  auto format(::ad::rss::map::RssObjectAdapterDataList const &value, FormatContext &ctx)
91  {
92  return formatter<string_view>::format(std::to_string(value), ctx);
93  }
94 };
95 #endif // GEN_GUARD_VECTOR_AD_RSS_MAP_RSSObjectAdapterData
std::string to_string(::ad::rss::map::RouteAccelerations const &value)
overload of the std::to_string for RouteAccelerations
Definition: RouteAccelerations.hpp:229
std::vector<::ad::rss::map::RssObjectAdapterData > RssObjectAdapterDataList
DataType RssObjectAdapterDataList.
Definition: RssObjectAdapterDataList.hpp:35
std::ostream & operator<<(std::ostream &os, RouteAccelerations const &_value)
standard ostream operator
Definition: RouteAccelerations.hpp:194
namespace ad
Definition: RouteAccelerations.hpp:33