Skip to content

Commit

Permalink
[EN-7314] Implement the DXPublisher
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatolyKalin committed Aug 23, 2023
1 parent e016023 commit 89def27
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/dxfeed_graal_cpp_api/event/market/Direction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ struct DXFCPP_EXPORT Direction : Enum<Direction, std::uint32_t> {
static const Direction UP;
};

template <>
const std::unordered_map<Direction::CodeType, std::reference_wrapper<const Direction>> Direction::ParentType::ALL;

} // namespace dxfcpp
3 changes: 3 additions & 0 deletions include/dxfeed_graal_cpp_api/event/market/IcebergType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ struct DXFCPP_EXPORT IcebergType : Enum<IcebergType, std::uint32_t> {
static const IcebergType SYNTHETIC;
};

template <>
const std::unordered_map<IcebergType::CodeType, std::reference_wrapper<const IcebergType>> IcebergType::ParentType::ALL;

} // namespace dxfcpp
3 changes: 3 additions & 0 deletions include/dxfeed_graal_cpp_api/event/market/OrderAction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,7 @@ struct DXFCPP_EXPORT OrderAction : Enum<OrderAction, std::uint32_t> {
static const OrderAction BUST;
};

template <>
const std::unordered_map<OrderAction::CodeType, std::reference_wrapper<const OrderAction>> OrderAction::ParentType::ALL;

} // namespace dxfcpp
3 changes: 3 additions & 0 deletions include/dxfeed_graal_cpp_api/event/market/PriceType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ struct DXFCPP_EXPORT PriceType : Enum<PriceType, std::uint32_t> {
static const PriceType FINAL;
};

template <>
const std::unordered_map<PriceType::CodeType, std::reference_wrapper<const PriceType>> PriceType::ParentType::ALL;

} // namespace dxfcpp
3 changes: 3 additions & 0 deletions include/dxfeed_graal_cpp_api/event/market/Scope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ struct DXFCPP_EXPORT Scope : Enum<Scope, std::uint32_t> {
static const Scope ORDER;
};

template <>
const std::unordered_map<Scope::CodeType, std::reference_wrapper<const Scope>> Scope::ParentType::ALL;

} // namespace dxfcpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ struct DXFCPP_EXPORT ShortSaleRestriction : Enum<ShortSaleRestriction, std::uint
static const ShortSaleRestriction INACTIVE;
};

template <>
const std::unordered_map<ShortSaleRestriction::CodeType, std::reference_wrapper<const ShortSaleRestriction>>
ShortSaleRestriction::ParentType::ALL;

} // namespace dxfcpp
3 changes: 3 additions & 0 deletions include/dxfeed_graal_cpp_api/event/market/Side.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ struct DXFCPP_EXPORT Side : Enum<Side, std::uint32_t> {
static const Side SELL;
};

template <>
const std::unordered_map<Side::CodeType, std::reference_wrapper<const Side>> Side::ParentType::ALL;

} // namespace dxfcpp
3 changes: 3 additions & 0 deletions include/dxfeed_graal_cpp_api/event/market/TimeAndSaleType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ struct DXFCPP_EXPORT TimeAndSaleType : Enum<TimeAndSaleType, std::uint32_t> {
static const TimeAndSaleType CANCEL;
};

template <>
const std::unordered_map<TimeAndSaleType::CodeType, std::reference_wrapper<const TimeAndSaleType>>
TimeAndSaleType::ParentType::ALL;
} // namespace dxfcpp
4 changes: 4 additions & 0 deletions include/dxfeed_graal_cpp_api/event/market/TradingStatus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ struct DXFCPP_EXPORT TradingStatus : Enum<TradingStatus, std::uint32_t> {
static const TradingStatus ACTIVE;
};

template <>
const std::unordered_map<TradingStatus::CodeType, std::reference_wrapper<const TradingStatus>>
TradingStatus::ParentType::ALL;

} // namespace dxfcpp

0 comments on commit 89def27

Please sign in to comment.