Branch data Line data Source code
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 : : /** 12 : : * Generated file 13 : : * @file 14 : : * 15 : : * Generator Version : 11.0.0-2046 16 : : */ 17 : : 18 : : #pragma once 19 : : 20 : : #include <iostream> 21 : : #include <sstream> 22 : : #include <vector> 23 : : #include "ad/rss/map/RssRouteCheckResult.hpp" 24 : : /*! 25 : : * @brief namespace ad 26 : : */ 27 : : namespace ad { 28 : : /*! 29 : : * @brief namespace rss 30 : : */ 31 : : namespace rss { 32 : : /*! 33 : : * @brief namespace map 34 : : */ 35 : : namespace map { 36 : : 37 : : /*! 38 : : * \brief DataType RssRouteCheckResultList 39 : : * 40 : : * Defines a vector of RssRouteResult 41 : : */ 42 : : typedef std::vector<::ad::rss::map::RssRouteCheckResult> RssRouteCheckResultList; 43 : : 44 : : } // namespace map 45 : : } // namespace rss 46 : : } // namespace ad 47 : : 48 : : /*! 49 : : * \brief protect the definition of functions from duplicates by typedef usage within other data types 50 : : */ 51 : : #ifndef GEN_GUARD_VECTOR_AD_RSS_MAP_RSSROUTECHECKRESULT 52 : : #define GEN_GUARD_VECTOR_AD_RSS_MAP_RSSROUTECHECKRESULT 53 : : namespace std { 54 : : /** 55 : : * \brief standard ostream operator 56 : : * 57 : : * \param[in] os The output stream to write to 58 : : * \param[in] _value RssRouteCheckResultList value 59 : : * 60 : : * \returns The stream object. 61 : : * 62 : : */ 63 : 9 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::rss::map::RssRouteCheckResult> const &_value) 64 : : { 65 : 9 : os << "["; 66 [ + + ]: 14 : for (auto it = _value.begin(); it != _value.end(); it++) 67 : : { 68 [ - + ]: 5 : if (it != _value.begin()) 69 : : { 70 [ # # ]: 0 : os << ","; 71 : : } 72 [ + - ]: 5 : os << *it; 73 : : } 74 : 9 : os << "]"; 75 : 9 : return os; 76 : : } 77 : : } // namespace std 78 : : 79 : : namespace std { 80 : : /*! 81 : : * \brief overload of the std::to_string for RssRouteCheckResultList 82 : : */ 83 : 1 : inline std::string to_string(::ad::rss::map::RssRouteCheckResultList const &value) 84 : : { 85 [ + - ]: 1 : stringstream sstream; 86 [ + - ]: 1 : sstream << value; 87 [ + - ]: 2 : return sstream.str(); 88 : 1 : } 89 : : } // namespace std 90 : : 91 : : /*! 92 : : * \brief overload of fmt::formatter calling std::to_string 93 : : */ 94 : : template <> struct fmt::formatter<::ad::rss::map::RssRouteCheckResultList> : formatter<string_view> 95 : : { 96 : : template <typename FormatContext> 97 : 1 : auto format(::ad::rss::map::RssRouteCheckResultList const &value, FormatContext &ctx) 98 : : { 99 : 2 : return formatter<string_view>::format(std::to_string(value), ctx); 100 : : } 101 : : }; 102 : : 103 : : #endif // GEN_GUARD_VECTOR_AD_RSS_MAP_RSSROUTECHECKRESULT