From 7609d49e782cdcaf4e8d880fd996b25ed501249d Mon Sep 17 00:00:00 2001 From: Anatoly Kalin Date: Thu, 2 May 2024 17:42:08 +0300 Subject: [PATCH] [EN-7588] Implement PublishProfiles sample ObservableSubscriptionChangeListener --- .../api/osub/ObservableSubscriptionChangeListener.hpp | 2 +- include/dxfeed_graal_cpp_api/event/candle/CandleAlignment.hpp | 2 +- include/dxfeed_graal_cpp_api/event/candle/CandlePeriod.hpp | 2 +- include/dxfeed_graal_cpp_api/event/candle/CandlePrice.hpp | 2 +- include/dxfeed_graal_cpp_api/event/candle/CandlePriceLevel.hpp | 2 +- include/dxfeed_graal_cpp_api/event/candle/CandleSession.hpp | 2 +- include/dxfeed_graal_cpp_api/internal/Common.hpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/dxfeed_graal_cpp_api/api/osub/ObservableSubscriptionChangeListener.hpp b/include/dxfeed_graal_cpp_api/api/osub/ObservableSubscriptionChangeListener.hpp index 553473c4..09c13bb2 100644 --- a/include/dxfeed_graal_cpp_api/api/osub/ObservableSubscriptionChangeListener.hpp +++ b/include/dxfeed_graal_cpp_api/api/osub/ObservableSubscriptionChangeListener.hpp @@ -21,7 +21,7 @@ struct DXFCPP_EXPORT ObservableSubscriptionChangeListener { virtual ~ObservableSubscriptionChangeListener() = default; virtual void symbolsAdded(const std::unordered_set &symbols) = 0; - virtual void symbolsRemoved(const std::unordered_set &symbols){}; + virtual void symbolsRemoved(const std::unordered_set & /*symbols*/){}; virtual void subscriptionClosed(){}; }; diff --git a/include/dxfeed_graal_cpp_api/event/candle/CandleAlignment.hpp b/include/dxfeed_graal_cpp_api/event/candle/CandleAlignment.hpp index 4484c5fe..6e30218e 100644 --- a/include/dxfeed_graal_cpp_api/event/candle/CandleAlignment.hpp +++ b/include/dxfeed_graal_cpp_api/event/candle/CandleAlignment.hpp @@ -141,7 +141,7 @@ struct DXFCPP_EXPORT CandleAlignment : public CandleSymbolAttribute { * @param symbol The candle symbol string. * @return candle symbol string with the normalized representation of the the candle alignment attribute. */ - static DXFCPP_CXX20_CONSTEXPR_STRING std::string + static std::string normalizeAttributeForSymbol(const dxfcpp::StringLikeWrapper &symbol) { auto a = MarketEventSymbols::getAttributeStringByKey(symbol, ATTRIBUTE_KEY); diff --git a/include/dxfeed_graal_cpp_api/event/candle/CandlePeriod.hpp b/include/dxfeed_graal_cpp_api/event/candle/CandlePeriod.hpp index ee6132ef..c0835a3c 100644 --- a/include/dxfeed_graal_cpp_api/event/candle/CandlePeriod.hpp +++ b/include/dxfeed_graal_cpp_api/event/candle/CandlePeriod.hpp @@ -215,7 +215,7 @@ struct DXFCPP_EXPORT CandlePeriod : public CandleSymbolAttribute { * @param symbol candle symbol string. * @return candle symbol string with the normalized representation of the the candle period attribute. */ - static DXFCPP_CXX20_CONSTEXPR_STRING std::string + static std::string normalizeAttributeForSymbol(const dxfcpp::StringLikeWrapper &symbol) { auto a = MarketEventSymbols::getAttributeStringByKey(symbol, ATTRIBUTE_KEY); diff --git a/include/dxfeed_graal_cpp_api/event/candle/CandlePrice.hpp b/include/dxfeed_graal_cpp_api/event/candle/CandlePrice.hpp index 7d830e64..b547e114 100644 --- a/include/dxfeed_graal_cpp_api/event/candle/CandlePrice.hpp +++ b/include/dxfeed_graal_cpp_api/event/candle/CandlePrice.hpp @@ -163,7 +163,7 @@ struct DXFCPP_EXPORT CandlePrice : public CandleSymbolAttribute { * @param symbol candle symbol string. * @return candle symbol string with the normalized representation of the the candle price type attribute. */ - static DXFCPP_CXX20_CONSTEXPR_STRING std::string + static std::string normalizeAttributeForSymbol(const dxfcpp::StringLikeWrapper &symbol) { auto a = MarketEventSymbols::getAttributeStringByKey(symbol, ATTRIBUTE_KEY); diff --git a/include/dxfeed_graal_cpp_api/event/candle/CandlePriceLevel.hpp b/include/dxfeed_graal_cpp_api/event/candle/CandlePriceLevel.hpp index 05934fde..a41bdfdb 100644 --- a/include/dxfeed_graal_cpp_api/event/candle/CandlePriceLevel.hpp +++ b/include/dxfeed_graal_cpp_api/event/candle/CandlePriceLevel.hpp @@ -145,7 +145,7 @@ struct DXFCPP_EXPORT CandlePriceLevel : public CandleSymbolAttribute { * @param symbol candle symbol string. * @return candle symbol string with the normalized representation of the the candle price level attribute. */ - static DXFCPP_CXX20_CONSTEXPR_STRING std::string + static std::string normalizeAttributeForSymbol(const dxfcpp::StringLikeWrapper &symbol) { auto a = MarketEventSymbols::getAttributeStringByKey(symbol, ATTRIBUTE_KEY); diff --git a/include/dxfeed_graal_cpp_api/event/candle/CandleSession.hpp b/include/dxfeed_graal_cpp_api/event/candle/CandleSession.hpp index 251539bf..8e0d6b11 100644 --- a/include/dxfeed_graal_cpp_api/event/candle/CandleSession.hpp +++ b/include/dxfeed_graal_cpp_api/event/candle/CandleSession.hpp @@ -159,7 +159,7 @@ struct DXFCPP_EXPORT CandleSession : public CandleSymbolAttribute { * @param symbol candle symbol string. * @return candle symbol string with the normalized representation of the the candle session attribute. */ - static DXFCPP_CXX20_CONSTEXPR_STRING std::string normalizeAttributeForSymbol(const dxfcpp::StringLikeWrapper &symbol) noexcept { + static std::string normalizeAttributeForSymbol(const dxfcpp::StringLikeWrapper &symbol) noexcept { auto a = MarketEventSymbols::getAttributeStringByKey(symbol, ATTRIBUTE_KEY); if (!a) { diff --git a/include/dxfeed_graal_cpp_api/internal/Common.hpp b/include/dxfeed_graal_cpp_api/internal/Common.hpp index a9e64ed0..e672160f 100644 --- a/include/dxfeed_graal_cpp_api/internal/Common.hpp +++ b/include/dxfeed_graal_cpp_api/internal/Common.hpp @@ -280,7 +280,7 @@ constexpr static std::int32_t getYearMonthDayByDayId(std::int32_t dayId) { return yyyy >= 0 ? yyyymmdd : -yyyymmdd; } -constexpr static std::int32_t getDayIdByYearMonthDay(std::int32_t year, std::int32_t month, std::int32_t day) { +static std::int32_t getDayIdByYearMonthDay(std::int32_t year, std::int32_t month, std::int32_t day) { if (month < 1 || month > 12) { throw std::invalid_argument("invalid month " + std::to_string(month)); }