Skip to content

Commit

Permalink
[EN-7588] Implement PublishProfiles sample
Browse files Browse the repository at this point in the history
ObservableSubscriptionChangeListener
  • Loading branch information
AnatolyKalin committed May 2, 2024
1 parent 526689d commit 7609d49
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct DXFCPP_EXPORT ObservableSubscriptionChangeListener {
virtual ~ObservableSubscriptionChangeListener() = default;

virtual void symbolsAdded(const std::unordered_set<SymbolWrapper> &symbols) = 0;
virtual void symbolsRemoved(const std::unordered_set<SymbolWrapper> &symbols){};
virtual void symbolsRemoved(const std::unordered_set<SymbolWrapper> & /*symbols*/){};
virtual void subscriptionClosed(){};
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion include/dxfeed_graal_cpp_api/event/candle/CandlePeriod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion include/dxfeed_graal_cpp_api/event/candle/CandlePrice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion include/dxfeed_graal_cpp_api/internal/Common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 7609d49

Please sign in to comment.