Skip to content

Commit

Permalink
Win: Export static fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ttldtor committed Oct 20, 2023
1 parent b5dc6c2 commit 338df0c
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 38 deletions.
12 changes: 6 additions & 6 deletions include/dxfeed_graal_cpp_api/event/market/Direction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,35 @@ struct Direction : Enum<Direction, std::uint32_t> {
* 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.
* Unlike <b>UNDEFINED</b> the <b>ZERO</b> direction implies that current price is defined and
* 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 <>
Expand Down
6 changes: 3 additions & 3 deletions include/dxfeed_graal_cpp_api/event/market/IcebergType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ struct IcebergType : Enum<IcebergType, std::uint32_t> {
/**
* 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 <>
Expand Down
18 changes: 9 additions & 9 deletions include/dxfeed_graal_cpp_api/event/market/OrderAction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct OrderAction : Enum<OrderAction, std::uint32_t> {
*
* <p>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.
Expand All @@ -37,7 +37,7 @@ struct OrderAction : Enum<OrderAction, std::uint32_t> {
* <li>Trade fields will be empty</li>
* </ul>
*/
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).
Expand All @@ -49,7 +49,7 @@ struct OrderAction : Enum<OrderAction, std::uint32_t> {
* <li>Trade fields will be empty</li>
* </ul>
*/
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).
Expand All @@ -61,7 +61,7 @@ struct OrderAction : Enum<OrderAction, std::uint32_t> {
* <li>Trade fields will be empty</li>
* </ul>
*/
static const OrderAction MODIFY;
static const DXFCPP_EXPORT OrderAction MODIFY;

/**
* Order is fully canceled and removed from Order Book.
Expand All @@ -74,7 +74,7 @@ struct OrderAction : Enum<OrderAction, std::uint32_t> {
* <li>Trade fields will be empty</li>
* </ul>
*/
static const OrderAction DELETE;
static const DXFCPP_EXPORT OrderAction DELETE;

/**
* Size is changed (usually reduced) due to partial order execution.
Expand All @@ -89,7 +89,7 @@ struct OrderAction : Enum<OrderAction, std::uint32_t> {
* contain size and price of this execution</li>
* </ul>
*/
static const OrderAction PARTIAL;
static const DXFCPP_EXPORT OrderAction PARTIAL;

/**
* Order is fully executed and removed from Order Book.
Expand All @@ -104,7 +104,7 @@ struct OrderAction : Enum<OrderAction, std::uint32_t> {
* contain size and price of this execution - always present</li>
* </ul>
*/
static const OrderAction EXECUTE;
static const DXFCPP_EXPORT OrderAction EXECUTE;

/**
* Non-Book Trade - this Trade not refers to any entry in Order Book.
Expand All @@ -118,7 +118,7 @@ struct OrderAction : Enum<OrderAction, std::uint32_t> {
* contain size and price of this trade - always present</li>
* </ul>
*/
static const OrderAction TRADE;
static const DXFCPP_EXPORT OrderAction TRADE;

/**
* Prior Trade/Order Execution bust.
Expand All @@ -131,7 +131,7 @@ struct OrderAction : Enum<OrderAction, std::uint32_t> {
* <li>@ref Order::getTradeSize() "tradeSize" and @ref Order::getTradePrice() "tradePrice" - always empty</li>
* </ul>
*/
static const OrderAction BUST;
static const DXFCPP_EXPORT OrderAction BUST;
};

template <>
Expand Down
8 changes: 4 additions & 4 deletions include/dxfeed_graal_cpp_api/event/market/PriceType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ struct PriceType : Enum<PriceType, std::uint32_t> {
/**
* 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 <>
Expand Down
8 changes: 4 additions & 4 deletions include/dxfeed_graal_cpp_api/event/market/Scope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ struct Scope : Enum<Scope, std::uint32_t> {
/**
* 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::CodeType, std::reference_wrapper<const Scope>> Scope::ParentType::ALL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ struct ShortSaleRestriction : Enum<ShortSaleRestriction, std::uint32_t> {
/**
* 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 <>
Expand Down
6 changes: 3 additions & 3 deletions include/dxfeed_graal_cpp_api/event/market/Side.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ struct Side : Enum<Side, std::uint32_t> {
/**
* 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::CodeType, std::reference_wrapper<const Side>> Side::ParentType::ALL;
Expand Down
6 changes: 3 additions & 3 deletions include/dxfeed_graal_cpp_api/event/market/TimeAndSaleType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ struct TimeAndSaleType : Enum<TimeAndSaleType, std::uint32_t> {
/**
* 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 <>
Expand Down
6 changes: 3 additions & 3 deletions include/dxfeed_graal_cpp_api/event/market/TradingStatus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ struct TradingStatus : Enum<TradingStatus, std::uint32_t> {
/**
* 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 <>
Expand Down

0 comments on commit 338df0c

Please sign in to comment.