-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EN-7588] Implement PublishProfiles sample
DXPublisherObservableSubscription's stub.
- Loading branch information
Showing
7 changed files
with
84 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
include/dxfeed_graal_cpp_api/api/DXPublisherObservableSubscription.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) 2024 Devexperts LLC. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#pragma once | ||
|
||
#include "../internal/Conf.hpp" | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_PUSH(4251) | ||
|
||
#include "../internal/EventClassList.hpp" | ||
#include "../internal/context/ApiContext.hpp" | ||
|
||
#include "../entity/EntityModule.hpp" | ||
#include "osub/ObservableSubscription.hpp" | ||
#include "../event/EventType.hpp" | ||
#include "../event/EventTypeEnum.hpp" | ||
#include "../internal/Common.hpp" | ||
#include "../internal/Handler.hpp" | ||
#include "../internal/JavaObjectHandle.hpp" | ||
#include "../symbols/SymbolWrapper.hpp" | ||
|
||
#include <concepts> | ||
#include <memory> | ||
#include <type_traits> | ||
#include <unordered_set> | ||
|
||
DXFCPP_BEGIN_NAMESPACE | ||
|
||
class DXFCPP_EXPORT DXPublisherObservableSubscription : public ObservableSubscription, public SharedEntity { | ||
public: | ||
bool isClosed() override; | ||
std::unordered_set<EventTypeEnum> getEventTypes() override; | ||
bool containsEventType(const EventTypeEnum &eventType) override; | ||
std::size_t addChangeListener(std::shared_ptr<ObservableSubscriptionChangeListener> listener) override; | ||
void removeChangeListener(std::size_t id) override; | ||
}; | ||
|
||
DXFCPP_END_NAMESPACE | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_POP() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) 2024 Devexperts LLC. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#include <dxfg_api.h> | ||
|
||
#include <dxfeed_graal_cpp_api/api.hpp> | ||
|
||
#include <memory> | ||
#include <typeinfo> | ||
|
||
#include <fmt/chrono.h> | ||
#include <fmt/format.h> | ||
#include <fmt/ostream.h> | ||
#include <fmt/std.h> | ||
|
||
DXFCPP_BEGIN_NAMESPACE | ||
|
||
bool DXPublisherObservableSubscription::isClosed() { | ||
return false; | ||
} | ||
|
||
std::unordered_set<EventTypeEnum> DXPublisherObservableSubscription::getEventTypes() { | ||
return {}; | ||
} | ||
|
||
bool DXPublisherObservableSubscription::containsEventType(const EventTypeEnum &eventType) { | ||
return false; | ||
} | ||
|
||
std::size_t | ||
DXPublisherObservableSubscription::addChangeListener(std::shared_ptr<ObservableSubscriptionChangeListener> listener) { | ||
return Id<ObservableSubscriptionChangeListener>::UNKNOWN.getValue(); | ||
} | ||
|
||
void DXPublisherObservableSubscription::removeChangeListener(std::size_t id) { | ||
} | ||
|
||
DXFCPP_END_NAMESPACE |