-
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.
[MDAPI-159] [C++] Migrate to Graal SDK v1.2.0 (#60)
- Loading branch information
Showing
16 changed files
with
1,352 additions
and
433 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
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
142 changes: 71 additions & 71 deletions
142
include/dxfeed_graal_cpp_api/isolated/ipf/IsolatedInstrumentProfile.hpp
Large diffs are not rendered by default.
Oops, something went wrong.
101 changes: 101 additions & 0 deletions
101
include/dxfeed_graal_cpp_api/isolated/model/IsolatedIndexedTxModel.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,101 @@ | ||
// Copyright (c) 2024 Devexperts LLC. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#pragma once | ||
|
||
#include "../../internal/Conf.hpp" | ||
|
||
#include "../../model/IndexedTxModel.hpp" | ||
#include "../../model/TxModelListener.hpp" | ||
|
||
#include <cstdint> | ||
#include <type_traits> | ||
#include <unordered_set> | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_PUSH(4251) | ||
|
||
DXFCPP_BEGIN_NAMESPACE | ||
|
||
class EventTypeEnum; | ||
class IndexedEventSource; | ||
struct DXFeed; | ||
struct SymbolWrapper; | ||
|
||
namespace isolated::model::IsolatedIndexedTxModel { | ||
|
||
// dxfg_indexed_tx_model_builder_t* dxfg_IndexedTxModel_newBuilder(graal_isolatethread_t* thread, dxfg_event_clazz_t | ||
// eventType); | ||
JavaObjectHandle<IndexedTxModel::Builder> newBuilder(const EventTypeEnum &eventType); | ||
|
||
// dxfg_indexed_event_source_list* dxfg_IndexedTxModel_getSources(graal_isolatethread_t* thread, | ||
// dxfg_indexed_tx_model_t* source); | ||
void *getSources(const JavaObjectHandle<IndexedTxModel> &model); | ||
|
||
// int32_t dxfg_IndexedTxModel_setSources(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source, | ||
// dxfg_indexed_event_source_list* sources); | ||
void setSources(const JavaObjectHandle<IndexedTxModel> &model, void *sources); | ||
|
||
// int32_t dxfg_IndexedTxModel_isBatchProcessing(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source); | ||
bool isBatchProcessing(const JavaObjectHandle<IndexedTxModel> &model); | ||
|
||
// int32_t dxfg_IndexedTxModel_isSnapshotProcessing(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source); | ||
bool isSnapshotProcessing(const JavaObjectHandle<IndexedTxModel> &model); | ||
|
||
// int32_t dxfg_IndexedTxModel_attach(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source, dxfg_feed_t* | ||
// feed); | ||
void attach(const JavaObjectHandle<IndexedTxModel> &model, const JavaObjectHandle<DXFeed> &feed); | ||
|
||
// int32_t dxfg_IndexedTxModel_detach(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source, dxfg_feed_t* | ||
// feed); | ||
void detach(const JavaObjectHandle<IndexedTxModel> &model, const JavaObjectHandle<DXFeed> &feed); | ||
|
||
// int32_t dxfg_IndexedTxModel_close(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source); | ||
void close(const JavaObjectHandle<IndexedTxModel> &model); | ||
|
||
namespace Builder { | ||
|
||
// dxfg_indexed_tx_model_builder_t* dxfg_IndexedTxModel_Builder_withSources(graal_isolatethread_t* thread, | ||
// dxfg_indexed_tx_model_builder_t* source, dxfg_indexed_event_source_list* sources); | ||
JavaObjectHandle<IndexedTxModel::Builder> withSources(const JavaObjectHandle<IndexedTxModel::Builder> &builder, | ||
void *sources); | ||
|
||
// dxfg_indexed_tx_model_t* dxfg_IndexedTxModel_Builder_build(graal_isolatethread_t* thread, | ||
// dxfg_indexed_tx_model_builder_t* source); | ||
JavaObjectHandle<IndexedTxModel> build(const JavaObjectHandle<IndexedTxModel::Builder> &builder); | ||
|
||
// dxfg_indexed_tx_model_builder_t* dxfg_IndexedTxModel_Builder_withBatchProcessing(graal_isolatethread_t* thread, | ||
// dxfg_indexed_tx_model_builder_t* source, int32_t isBatchProcessing); | ||
JavaObjectHandle<IndexedTxModel::Builder> withBatchProcessing(const JavaObjectHandle<IndexedTxModel::Builder> &builder, | ||
bool isBatchProcessing); | ||
|
||
// dxfg_indexed_tx_model_builder_t* dxfg_IndexedTxModel_Builder_withSnapshotProcessing(graal_isolatethread_t* thread, | ||
// dxfg_indexed_tx_model_builder_t* source, int32_t isSnapshotProcessing); | ||
JavaObjectHandle<IndexedTxModel::Builder> | ||
withSnapshotProcessing(const JavaObjectHandle<IndexedTxModel::Builder> &builder, bool isSnapshotProcessing); | ||
|
||
// dxfg_indexed_tx_model_builder_t* dxfg_IndexedTxModel_Builder_withFeed(graal_isolatethread_t* thread, | ||
// dxfg_indexed_tx_model_builder_t* source, dxfg_feed_t* feed); | ||
JavaObjectHandle<IndexedTxModel::Builder> withFeed(const JavaObjectHandle<IndexedTxModel::Builder> &builder, | ||
const JavaObjectHandle<DXFeed> &feed); | ||
|
||
// dxfg_indexed_tx_model_builder_t* dxfg_IndexedTxModel_Builder_withSymbol(graal_isolatethread_t* thread, | ||
// dxfg_indexed_tx_model_builder_t* source, dxfg_symbol_t* symbol); | ||
JavaObjectHandle<IndexedTxModel::Builder> withSymbol(const JavaObjectHandle<IndexedTxModel::Builder> &builder, | ||
const SymbolWrapper &symbol); | ||
|
||
// dxfg_indexed_tx_model_builder_t* dxfg_IndexedTxModel_Builder_withListener(graal_isolatethread_t* thread, | ||
// dxfg_indexed_tx_model_builder_t* source, dxfg_tx_model_listener_t* listener); | ||
JavaObjectHandle<IndexedTxModel::Builder> withListener(const JavaObjectHandle<IndexedTxModel::Builder> &builder, | ||
const JavaObjectHandle<TxModelListener> &listener); | ||
|
||
// dxfg_indexed_tx_model_builder_t* dxfg_IndexedTxModel_Builder_withExecutor(graal_isolatethread_t* thread, | ||
// dxfg_indexed_tx_model_builder_t* source, dxfg_executor_t* executor); | ||
JavaObjectHandle<IndexedTxModel::Builder> withExecutor(const JavaObjectHandle<IndexedTxModel::Builder> &builder, | ||
void *executor); | ||
|
||
} // namespace Builder | ||
} // namespace isolated::model::IsolatedIndexedTxModel | ||
|
||
DXFCPP_END_NAMESPACE | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_POP() |
101 changes: 101 additions & 0 deletions
101
include/dxfeed_graal_cpp_api/isolated/model/IsolatedTimeSeriesTxModel.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,101 @@ | ||
// Copyright (c) 2024 Devexperts LLC. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#pragma once | ||
|
||
#include "../../internal/Conf.hpp" | ||
|
||
#include "../../model/TimeSeriesTxModel.hpp" | ||
#include "../../model/TxModelListener.hpp" | ||
|
||
#include <cstdint> | ||
#include <string> | ||
#include <vector> | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_PUSH(4251) | ||
|
||
DXFCPP_BEGIN_NAMESPACE | ||
|
||
class EventTypeEnum; | ||
class IndexedEventSource; | ||
struct DXFeed; | ||
struct SymbolWrapper; | ||
|
||
namespace isolated::model::IsolatedTimeSeriesTxModel { | ||
|
||
// dxfg_time_series_tx_model_builder_t* dxfg_TimeSeriesTxModel_newBuilder(graal_isolatethread_t* thread, | ||
// dxfg_event_clazz_t eventType); | ||
JavaObjectHandle<TimeSeriesTxModel::Builder> newBuilder(const EventTypeEnum &eventType); | ||
|
||
// int64_t dxfg_TimeSeriesTxModel_getFromTime(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source); | ||
std::int64_t getFromTime(const JavaObjectHandle<TimeSeriesTxModel> &model); | ||
|
||
// int32_t dxfg_TimeSeriesTxModel_setFromTime(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source, | ||
// int64_t fromTime); | ||
void setFromTime(const JavaObjectHandle<TimeSeriesTxModel> &model, std::int64_t fromTime); | ||
|
||
// int32_t dxfg_TimeSeriesTxModel_isBatchProcessing(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source); | ||
bool isBatchProcessing(const JavaObjectHandle<TimeSeriesTxModel> &model); | ||
|
||
// int32_t dxfg_TimeSeriesTxModel_isSnapshotProcessing(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* | ||
// source); | ||
bool isSnapshotProcessing(const JavaObjectHandle<TimeSeriesTxModel> &model); | ||
|
||
// int32_t dxfg_TimeSeriesTxModel_attach(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source, | ||
// dxfg_feed_t* feed); | ||
void attach(const JavaObjectHandle<TimeSeriesTxModel> &model, const JavaObjectHandle<DXFeed> &feed); | ||
|
||
// int32_t dxfg_TimeSeriesTxModel_detach(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source, | ||
// dxfg_feed_t* feed); | ||
void detach(const JavaObjectHandle<TimeSeriesTxModel> &model, const JavaObjectHandle<DXFeed> &feed); | ||
|
||
// int32_t dxfg_TimeSeriesTxModel_close(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source); | ||
void close(const JavaObjectHandle<TimeSeriesTxModel> &model); | ||
|
||
namespace Builder { | ||
|
||
// dxfg_time_series_tx_model_builder_t* dxfg_TimeSeriesTxModel_Builder_withFromTime(graal_isolatethread_t* thread, | ||
// dxfg_time_series_tx_model_builder_t* source, int64_t fromTime); | ||
JavaObjectHandle<TimeSeriesTxModel::Builder> withFromTime(const JavaObjectHandle<TimeSeriesTxModel::Builder> &builder, | ||
std::int64_t fromTime); | ||
|
||
// dxfg_time_series_tx_model_t* dxfg_TimeSeriesTxModel_Builder_build(graal_isolatethread_t* thread, | ||
// dxfg_time_series_tx_model_builder_t* source); | ||
JavaObjectHandle<TimeSeriesTxModel> build(const JavaObjectHandle<TimeSeriesTxModel::Builder> &builder); | ||
|
||
// dxfg_time_series_tx_model_builder_t* dxfg_TimeSeriesTxModel_Builder_withBatchProcessing(graal_isolatethread_t* | ||
// thread, dxfg_time_series_tx_model_builder_t* source, int32_t isBatchProcessing); | ||
JavaObjectHandle<TimeSeriesTxModel::Builder> | ||
withBatchProcessing(const JavaObjectHandle<TimeSeriesTxModel::Builder> &builder, bool isBatchProcessing); | ||
|
||
// dxfg_time_series_tx_model_builder_t* dxfg_TimeSeriesTxModel_Builder_withSnapshotProcessing(graal_isolatethread_t* | ||
// thread, dxfg_time_series_tx_model_builder_t* source, int32_t isSnapshotProcessing); | ||
JavaObjectHandle<TimeSeriesTxModel::Builder> | ||
withSnapshotProcessing(const JavaObjectHandle<TimeSeriesTxModel::Builder> &builder, bool isSnapshotProcessing); | ||
|
||
// dxfg_time_series_tx_model_builder_t* dxfg_TimeSeriesTxModel_Builder_withFeed(graal_isolatethread_t* thread, | ||
// dxfg_time_series_tx_model_builder_t* source, dxfg_feed_t* feed); | ||
JavaObjectHandle<TimeSeriesTxModel::Builder> withFeed(const JavaObjectHandle<TimeSeriesTxModel::Builder> &builder, | ||
const JavaObjectHandle<DXFeed> &feed); | ||
|
||
// dxfg_time_series_tx_model_builder_t* dxfg_TimeSeriesTxModel_Builder_withSymbol(graal_isolatethread_t* thread, | ||
// dxfg_time_series_tx_model_builder_t* source, dxfg_symbol_t* symbol); | ||
JavaObjectHandle<TimeSeriesTxModel::Builder> withSymbol(const JavaObjectHandle<TimeSeriesTxModel::Builder> &builder, | ||
const SymbolWrapper &symbol); | ||
|
||
// dxfg_time_series_tx_model_builder_t* dxfg_TimeSeriesTxModel_Builder_withListener(graal_isolatethread_t* thread, | ||
// dxfg_time_series_tx_model_builder_t* source, dxfg_tx_model_listener_t* listener); | ||
JavaObjectHandle<TimeSeriesTxModel::Builder> withListener(const JavaObjectHandle<TimeSeriesTxModel::Builder> &builder, | ||
const JavaObjectHandle<TxModelListener> &listener); | ||
|
||
// dxfg_time_series_tx_model_builder_t* dxfg_TimeSeriesTxModel_Builder_withExecutor(graal_isolatethread_t* thread, | ||
// dxfg_time_series_tx_model_builder_t* source, dxfg_executor_t* executor); | ||
JavaObjectHandle<TimeSeriesTxModel::Builder> withExecutor(const JavaObjectHandle<TimeSeriesTxModel::Builder> &builder, | ||
void *executor); | ||
|
||
} // namespace Builder | ||
} // namespace isolated::model::IsolatedTimeSeriesTxModel | ||
|
||
DXFCPP_END_NAMESPACE | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_POP() |
29 changes: 29 additions & 0 deletions
29
include/dxfeed_graal_cpp_api/isolated/model/IsolatedTxModelListener.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,29 @@ | ||
// Copyright (c) 2024 Devexperts LLC. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#pragma once | ||
|
||
#include "../../internal/Conf.hpp" | ||
|
||
#include "../../model/TxModelListener.hpp" | ||
|
||
#include <cstdint> | ||
#include <string> | ||
#include <vector> | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_PUSH(4251) | ||
|
||
DXFCPP_BEGIN_NAMESPACE | ||
|
||
namespace isolated::model::IsolatedTxModelListener { | ||
|
||
// typedef void (*dxfg_TxModelListener_function_eventsReceived)(graal_isolatethread_t* thread, dxfg_indexed_event_source_t* source, dxfg_event_type_list* events, int32_t /* boolean */ isSnapshot, void* user_data); | ||
|
||
// dxfg_tx_model_listener_t* dxfg_TxModelListener_new(graal_isolatethread_t* thread, dxfg_TxModelListener_function_eventsReceived function_eventsReceived, void* user_data); | ||
JavaObjectHandle<TxModelListener> create(void* functionEventsReceived, void* userData); | ||
|
||
} | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) 2024 Devexperts LLC. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#pragma once | ||
|
||
#include "../internal/Conf.hpp" | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_PUSH(4251) | ||
|
||
#include "../symbols/SymbolWrapper.hpp" | ||
// #include "../entity/SharedEntity.hpp" | ||
|
||
#include <memory> | ||
#include <unordered_set> | ||
|
||
DXFCPP_BEGIN_NAMESPACE | ||
|
||
struct DXFCPP_EXPORT IndexedTxModel { | ||
|
||
struct DXFCPP_EXPORT Builder {}; | ||
}; | ||
|
||
DXFCPP_END_NAMESPACE |
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,23 @@ | ||
// Copyright (c) 2024 Devexperts LLC. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#pragma once | ||
|
||
#include "../internal/Conf.hpp" | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_PUSH(4251) | ||
|
||
#include "../symbols/SymbolWrapper.hpp" | ||
// #include "../entity/SharedEntity.hpp" | ||
|
||
#include <memory> | ||
#include <unordered_set> | ||
|
||
DXFCPP_BEGIN_NAMESPACE | ||
|
||
struct DXFCPP_EXPORT TimeSeriesTxModel { | ||
|
||
struct DXFCPP_EXPORT Builder {}; | ||
}; | ||
|
||
DXFCPP_END_NAMESPACE |
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,22 @@ | ||
// Copyright (c) 2024 Devexperts LLC. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#pragma once | ||
|
||
#include "../internal/Conf.hpp" | ||
|
||
DXFCXX_DISABLE_MSC_WARNINGS_PUSH(4251) | ||
|
||
#include "../symbols/SymbolWrapper.hpp" | ||
//#include "../entity/SharedEntity.hpp" | ||
|
||
#include <memory> | ||
#include <unordered_set> | ||
|
||
DXFCPP_BEGIN_NAMESPACE | ||
|
||
struct DXFCPP_EXPORT TxModelListener { | ||
|
||
}; | ||
|
||
DXFCPP_END_NAMESPACE |
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
Oops, something went wrong.