From 338df0c212646647bb18249a4546b7d9a078fb9f Mon Sep 17 00:00:00 2001 From: ttldtor Date: Fri, 20 Oct 2023 20:24:49 +0300 Subject: [PATCH] Win: Export static fields --- .../event/market/Direction.hpp | 12 ++++++------ .../event/market/IcebergType.hpp | 6 +++--- .../event/market/OrderAction.hpp | 18 +++++++++--------- .../event/market/PriceType.hpp | 8 ++++---- .../event/market/Scope.hpp | 8 ++++---- .../event/market/ShortSaleRestriction.hpp | 6 +++--- .../dxfeed_graal_cpp_api/event/market/Side.hpp | 6 +++--- .../event/market/TimeAndSaleType.hpp | 6 +++--- .../event/market/TradingStatus.hpp | 6 +++--- 9 files changed, 38 insertions(+), 38 deletions(-) diff --git a/include/dxfeed_graal_cpp_api/event/market/Direction.hpp b/include/dxfeed_graal_cpp_api/event/market/Direction.hpp index bcdd9361..145ca919 100644 --- a/include/dxfeed_graal_cpp_api/event/market/Direction.hpp +++ b/include/dxfeed_graal_cpp_api/event/market/Direction.hpp @@ -25,17 +25,17 @@ struct Direction : Enum { * Direction is undefined, unknown or inapplicable. * It includes cases with undefined price value or when direction computation was not performed. */ - static const Direction UNDEFINED; + static const DXFCPP_EXPORT Direction UNDEFINED; /** * Current price is lower than previous price. */ - static const Direction DOWN; + static const DXFCPP_EXPORT Direction DOWN; /** * Current price is the same as previous price and is lower than the last known price of different value. */ - static const Direction ZERO_DOWN; + static const DXFCPP_EXPORT Direction ZERO_DOWN; /** * Current price is equal to the only known price value suitable for price direction computation. @@ -43,17 +43,17 @@ struct Direction : Enum { * direction computation was duly performed but has failed to detect any upward or downward price movement. * It is also reported for cases when price sequence was broken and direction computation was restarted anew. */ - static const Direction ZERO; + static const DXFCPP_EXPORT Direction ZERO; /** * Current price is the same as previous price and is higher than the last known price of different value. */ - static const Direction ZERO_UP; + static const DXFCPP_EXPORT Direction ZERO_UP; /** * Current price is higher than previous price. */ - static const Direction UP; + static const DXFCPP_EXPORT Direction UP; }; template <> diff --git a/include/dxfeed_graal_cpp_api/event/market/IcebergType.hpp b/include/dxfeed_graal_cpp_api/event/market/IcebergType.hpp index 0a823298..c55f7323 100644 --- a/include/dxfeed_graal_cpp_api/event/market/IcebergType.hpp +++ b/include/dxfeed_graal_cpp_api/event/market/IcebergType.hpp @@ -21,17 +21,17 @@ struct IcebergType : Enum { /** * Iceberg type is undefined, unknown or inapplicable. */ - static const IcebergType UNDEFINED; + static const DXFCPP_EXPORT IcebergType UNDEFINED; /** * Represents native (exchange-managed) iceberg type. */ - static const IcebergType NATIVE; + static const DXFCPP_EXPORT IcebergType NATIVE; /** * Represents synthetic (managed outside of the exchange) iceberg type */ - static const IcebergType SYNTHETIC; + static const DXFCPP_EXPORT IcebergType SYNTHETIC; }; template <> diff --git a/include/dxfeed_graal_cpp_api/event/market/OrderAction.hpp b/include/dxfeed_graal_cpp_api/event/market/OrderAction.hpp index 0dbffc73..e097d0dd 100644 --- a/include/dxfeed_graal_cpp_api/event/market/OrderAction.hpp +++ b/include/dxfeed_graal_cpp_api/event/market/OrderAction.hpp @@ -25,7 +25,7 @@ struct OrderAction : Enum { * *

All Full Order Book related fields for this action will be empty. */ - static const OrderAction UNDEFINED; + static const DXFCPP_EXPORT OrderAction UNDEFINED; /** * New Order is added to Order Book. @@ -37,7 +37,7 @@ struct OrderAction : Enum { *

  • Trade fields will be empty
  • * */ - static const OrderAction NEW; + static const DXFCPP_EXPORT OrderAction NEW; /** * Order is modified and price-time-priority is not maintained (i.e. order has re-entered Order Book). @@ -49,7 +49,7 @@ struct OrderAction : Enum { *
  • Trade fields will be empty
  • * */ - static const OrderAction REPLACE; + static const DXFCPP_EXPORT OrderAction REPLACE; /** * Order is modified without changing its price-time-priority (usually due to partial cancel by user). @@ -61,7 +61,7 @@ struct OrderAction : Enum { *
  • Trade fields will be empty
  • * */ - static const OrderAction MODIFY; + static const DXFCPP_EXPORT OrderAction MODIFY; /** * Order is fully canceled and removed from Order Book. @@ -74,7 +74,7 @@ struct OrderAction : Enum { *
  • Trade fields will be empty
  • * */ - static const OrderAction DELETE; + static const DXFCPP_EXPORT OrderAction DELETE; /** * Size is changed (usually reduced) due to partial order execution. @@ -89,7 +89,7 @@ struct OrderAction : Enum { * contain size and price of this execution * */ - static const OrderAction PARTIAL; + static const DXFCPP_EXPORT OrderAction PARTIAL; /** * Order is fully executed and removed from Order Book. @@ -104,7 +104,7 @@ struct OrderAction : Enum { * contain size and price of this execution - always present * */ - static const OrderAction EXECUTE; + static const DXFCPP_EXPORT OrderAction EXECUTE; /** * Non-Book Trade - this Trade not refers to any entry in Order Book. @@ -118,7 +118,7 @@ struct OrderAction : Enum { * contain size and price of this trade - always present * */ - static const OrderAction TRADE; + static const DXFCPP_EXPORT OrderAction TRADE; /** * Prior Trade/Order Execution bust. @@ -131,7 +131,7 @@ struct OrderAction : Enum { *
  • @ref Order::getTradeSize() "tradeSize" and @ref Order::getTradePrice() "tradePrice" - always empty
  • * */ - static const OrderAction BUST; + static const DXFCPP_EXPORT OrderAction BUST; }; template <> diff --git a/include/dxfeed_graal_cpp_api/event/market/PriceType.hpp b/include/dxfeed_graal_cpp_api/event/market/PriceType.hpp index a7216a68..3fcaa8d1 100644 --- a/include/dxfeed_graal_cpp_api/event/market/PriceType.hpp +++ b/include/dxfeed_graal_cpp_api/event/market/PriceType.hpp @@ -21,22 +21,22 @@ struct PriceType : Enum { /** * Regular price. */ - static const PriceType REGULAR; + static const DXFCPP_EXPORT PriceType REGULAR; /** * Indicative price (derived via math formula). */ - static const PriceType INDICATIVE; + static const DXFCPP_EXPORT PriceType INDICATIVE; /** * Preliminary price (preliminary settlement price), usually posted prior to PriceType::FINAL price. */ - static const PriceType PRELIMINARY; + static const DXFCPP_EXPORT PriceType PRELIMINARY; /** * Final price (final settlement price). */ - static const PriceType FINAL; + static const DXFCPP_EXPORT PriceType FINAL; }; template <> diff --git a/include/dxfeed_graal_cpp_api/event/market/Scope.hpp b/include/dxfeed_graal_cpp_api/event/market/Scope.hpp index 2111978b..8da4538b 100644 --- a/include/dxfeed_graal_cpp_api/event/market/Scope.hpp +++ b/include/dxfeed_graal_cpp_api/event/market/Scope.hpp @@ -24,23 +24,23 @@ struct Scope : Enum { /** * Represents best bid or best offer for the whole market. */ - static const Scope COMPOSITE; + static const DXFCPP_EXPORT Scope COMPOSITE; /** * Represents best bid or best offer for a given exchange code. */ - static const Scope REGIONAL; + static const DXFCPP_EXPORT Scope REGIONAL; /** * Represents aggregate information for a given price level or * best bid or best offer for a given market maker. */ - static const Scope AGGREGATE; + static const DXFCPP_EXPORT Scope AGGREGATE; /** * Represents individual order on the market. */ - static const Scope ORDER; + static const DXFCPP_EXPORT Scope ORDER; }; template <> const std::unordered_map> Scope::ParentType::ALL; diff --git a/include/dxfeed_graal_cpp_api/event/market/ShortSaleRestriction.hpp b/include/dxfeed_graal_cpp_api/event/market/ShortSaleRestriction.hpp index 2e11ae01..ce80b23d 100644 --- a/include/dxfeed_graal_cpp_api/event/market/ShortSaleRestriction.hpp +++ b/include/dxfeed_graal_cpp_api/event/market/ShortSaleRestriction.hpp @@ -24,17 +24,17 @@ struct ShortSaleRestriction : Enum { /** * Short sale restriction is undefined, unknown or inapplicable. */ - static const ShortSaleRestriction UNDEFINED; + static const DXFCPP_EXPORT ShortSaleRestriction UNDEFINED; /** * Short sale restriction is active. */ - static const ShortSaleRestriction ACTIVE; + static const DXFCPP_EXPORT ShortSaleRestriction ACTIVE; /** * Short sale restriction is inactive. */ - static const ShortSaleRestriction INACTIVE; + static const DXFCPP_EXPORT ShortSaleRestriction INACTIVE; }; template <> diff --git a/include/dxfeed_graal_cpp_api/event/market/Side.hpp b/include/dxfeed_graal_cpp_api/event/market/Side.hpp index ffffeba2..a67f2eb0 100644 --- a/include/dxfeed_graal_cpp_api/event/market/Side.hpp +++ b/include/dxfeed_graal_cpp_api/event/market/Side.hpp @@ -24,17 +24,17 @@ struct Side : Enum { /** * Side is undefined, unknown or inapplicable. */ - static const Side UNDEFINED; + static const DXFCPP_EXPORT Side UNDEFINED; /** * Buy side (bid). */ - static const Side BUY; + static const DXFCPP_EXPORT Side BUY; /** * Sell side (ask or offer). */ - static const Side SELL; + static const DXFCPP_EXPORT Side SELL; }; template <> const std::unordered_map> Side::ParentType::ALL; diff --git a/include/dxfeed_graal_cpp_api/event/market/TimeAndSaleType.hpp b/include/dxfeed_graal_cpp_api/event/market/TimeAndSaleType.hpp index bf5dae54..cec347ba 100644 --- a/include/dxfeed_graal_cpp_api/event/market/TimeAndSaleType.hpp +++ b/include/dxfeed_graal_cpp_api/event/market/TimeAndSaleType.hpp @@ -24,17 +24,17 @@ struct TimeAndSaleType : Enum { /** * Represents new time and sale event. */ - static const TimeAndSaleType NEW; + static const DXFCPP_EXPORT TimeAndSaleType NEW; /** * Represents correction time and sale event. */ - static const TimeAndSaleType CORRECTION; + static const DXFCPP_EXPORT TimeAndSaleType CORRECTION; /** * Represents cancel time and sale event. */ - static const TimeAndSaleType CANCEL; + static const DXFCPP_EXPORT TimeAndSaleType CANCEL; }; template <> diff --git a/include/dxfeed_graal_cpp_api/event/market/TradingStatus.hpp b/include/dxfeed_graal_cpp_api/event/market/TradingStatus.hpp index 96f9b408..0632281e 100644 --- a/include/dxfeed_graal_cpp_api/event/market/TradingStatus.hpp +++ b/include/dxfeed_graal_cpp_api/event/market/TradingStatus.hpp @@ -24,17 +24,17 @@ struct TradingStatus : Enum { /** * Trading status is undefined, unknown or inapplicable. */ - static const TradingStatus UNDEFINED; + static const DXFCPP_EXPORT TradingStatus UNDEFINED; /** * Trading is halted. */ - static const TradingStatus HALTED; + static const DXFCPP_EXPORT TradingStatus HALTED; /** * Trading is active. */ - static const TradingStatus ACTIVE; + static const DXFCPP_EXPORT TradingStatus ACTIVE; }; template <>