diff --git a/CMakeLists.txt b/CMakeLists.txt index 54eb6ff9..99b4de51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ set(DXFCXX_VERSION "v3.0.0" CACHE STRING "The dxFeed Graal CXX API package versi dxfcxx_ParseVersion(${DXFCXX_VERSION} DXFCXX_MAJOR_VERSION DXFCXX_MINOR_VERSION DXFCXX_PATCH_VERSION DXFCXX_SUFFIX_VERSION) -set(DXFEED_GRAAL_NATIVE_SDK_VERSION "1.1.23" CACHE STRING "") +set(DXFEED_GRAAL_NATIVE_SDK_VERSION "2.0.0" CACHE STRING "") set(FMTLIB_VERSION "11.0.2") set(BOOST_VERSION "1.84.0") set(UTFCPP_VERSION "3.2.3") @@ -223,6 +223,9 @@ set(dxFeedGraalCxxApi_Isolated_Sources src/isolated/ipf/IsolatedInstrumentProfileReader.cpp src/isolated/ipf/live/IsolatedInstrumentProfileCollector.cpp src/isolated/ipf/live/IsolatedInstrumentProfileConnection.cpp + src/isolated/model/IsolatedTxModelListener.cpp + src/isolated/model/IsolatedIndexedTxModel.cpp + src/isolated/model/IsolatedTimeSeriesTxModel.cpp src/isolated/ondemand/IsolatedOnDemandService.cpp src/isolated/util/IsolatedTimePeriod.cpp src/isolated/schedule/IsolatedDay.cpp diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md index 9efc078a..cd914ebc 100644 --- a/DEPENDENCIES.md +++ b/DEPENDENCIES.md @@ -2,7 +2,7 @@ ## Compile-time -- [dxFeed Graal Native SDK](https://github.com/dxFeed/dxfeed-graal-native-sdk) v1.1.23 +- [dxFeed Graal Native SDK](https://github.com/dxFeed/dxfeed-graal-native-sdk) v2.0.0 - [Bundles](https://dxfeed.jfrog.io/artifactory/maven-open/com/dxfeed/graal-native-sdk/) - \[opt] [Boost](https://github.com/boostorg/boost) v1.84.0 - Boost.Stacktrace 1.0 @@ -26,8 +26,7 @@ - addr2line \[opt] (Diagnostic backtraces) ## Run-time -- [dxFeed Graal Native SDK](https://github.com/dxFeed/dxfeed-graal-native-sdk) v1.1.23 - - [Bundles](https://dxfeed.jfrog.io/artifactory/maven-open/com/dxfeed/graal-native-sdk/) +- [dxFeed Graal Native SDK](https://github.com/dxFeed/dxfeed-graal-native-sdk) v2.0.0 - [doctest](https://github.com/doctest/doctest) v2.4.11 (Tests) diff --git a/deps.json b/deps.json index 32cee397..c54f8f06 100644 --- a/deps.json +++ b/deps.json @@ -3,7 +3,7 @@ "date": "3.0.1", "doctest": "2.4.11", "fmt": "11.0.2", - "graal-native-sdk": "1.1.23", + "graal-native-sdk": "2.0.0", "Process": "3.0.1", "range-v3": "0.12", "untfcpp": "3.2.3" diff --git a/include/dxfeed_graal_cpp_api/api.hpp b/include/dxfeed_graal_cpp_api/api.hpp index 28436f61..3a9bde30 100644 --- a/include/dxfeed_graal_cpp_api/api.hpp +++ b/include/dxfeed_graal_cpp_api/api.hpp @@ -49,6 +49,9 @@ DXFCXX_DISABLE_MSC_WARNINGS_PUSH(4251 4996) #include "symbols/StringSymbol.hpp" #include "symbols/SymbolWrapper.hpp" #include "system/System.hpp" +#include "model/TxModelListener.hpp" +#include "model/IndexedTxModel.hpp" +#include "model/TimeSeriesTxModel.hpp" #include "exceptions/RuntimeException.hpp" #include "exceptions/InvalidArgumentException.hpp" @@ -72,6 +75,9 @@ DXFCXX_DISABLE_MSC_WARNINGS_PUSH(4251 4996) #include "isolated/ipf/live/IsolatedInstrumentProfileCollector.hpp" #include "isolated/ipf/live/IsolatedInstrumentProfileConnection.hpp" #include "isolated/ipf/IsolatedInstrumentProfileReader.hpp" +#include "isolated/model/IsolatedTxModelListener.hpp" +#include "isolated/model/IsolatedIndexedTxModel.hpp" +#include "isolated/model/IsolatedTimeSeriesTxModel.hpp" #include "isolated/ondemand/IsolatedOnDemandService.hpp" #include "isolated/util/IsolatedTimePeriod.hpp" #include "isolated/schedule/IsolatedDay.hpp" diff --git a/include/dxfeed_graal_cpp_api/isolated/ipf/IsolatedInstrumentProfile.hpp b/include/dxfeed_graal_cpp_api/isolated/ipf/IsolatedInstrumentProfile.hpp index 722edeb5..6aa64668 100644 --- a/include/dxfeed_graal_cpp_api/isolated/ipf/IsolatedInstrumentProfile.hpp +++ b/include/dxfeed_graal_cpp_api/isolated/ipf/IsolatedInstrumentProfile.hpp @@ -22,276 +22,276 @@ namespace isolated::ipf::IsolatedInstrumentProfile { // dxfg_InstrumentProfile_new2 /* dxfg_instrument_profile_t* */ JavaObjectHandle -create(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +create(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_getType -/* const char* */ std::string getType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +/* const char* */ std::string getType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setType -/* std::int32_t */ void setType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getSymbol -/* const char* */ std::string getSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +/* const char* */ std::string getSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setSymbol -/* std::int32_t */ void setSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getDescription /* const char* */ std::string -getDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setDescription -/* std::int32_t */ void setDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getLocalSymbol /* const char* */ std::string -getLocalSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getLocalSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setLocalSymbol -/* std::int32_t */ void setLocalSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setLocalSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getLocalDescription /* const char* */ std::string -getLocalDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getLocalDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setLocalDescription /* std::int32_t */ void -setLocalDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setLocalDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getCountry /* const char* */ std::string -getCountry(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getCountry(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setCountry -/* std::int32_t */ void setCountry(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setCountry(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getOPOL -/* const char* */ std::string getOPOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +/* const char* */ std::string getOPOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setOPOL -/* std::int32_t */ void setOPOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setOPOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getExchangeData /* const char* */ std::string -getExchangeData(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getExchangeData(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setExchangeData -/* std::int32_t */ void setExchangeData(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setExchangeData(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getExchanges /* const char* */ std::string -getExchanges(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getExchanges(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setExchanges -/* std::int32_t */ void setExchanges(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setExchanges(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getCurrency /* const char* */ std::string -getCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setCurrency -/* std::int32_t */ void setCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getBaseCurrency /* const char* */ std::string -getBaseCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getBaseCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setBaseCurrency -/* std::int32_t */ void setBaseCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setBaseCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getCFI -/* const char* */ std::string getCFI(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +/* const char* */ std::string getCFI(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setCFI -/* std::int32_t */ void setCFI(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setCFI(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getISIN -/* const char* */ std::string getISIN(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +/* const char* */ std::string getISIN(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setISIN -/* std::int32_t */ void setISIN(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setISIN(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getSEDOL -/* const char* */ std::string getSEDOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +/* const char* */ std::string getSEDOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setSEDOL -/* std::int32_t */ void setSEDOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setSEDOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getCUSIP -/* const char* */ std::string getCUSIP(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +/* const char* */ std::string getCUSIP(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setCUSIP -/* std::int32_t */ void setCUSIP(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setCUSIP(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getICB -std::int32_t getICB(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +std::int32_t getICB(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setICB -/* std::int32_t */ void setICB(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setICB(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, std::int32_t value); // dxfg_InstrumentProfile_getSIC -std::int32_t getSIC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +std::int32_t getSIC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setSIC -/* std::int32_t */ void setSIC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setSIC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, std::int32_t value); // dxfg_InstrumentProfile_getMultiplier -double getMultiplier(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +double getMultiplier(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setMultiplier -/* std::int32_t */ void setMultiplier(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setMultiplier(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, double value); // dxfg_InstrumentProfile_getProduct /* const char* */ std::string -getProduct(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getProduct(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setProduct -/* std::int32_t */ void setProduct(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setProduct(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getUnderlying /* const char* */ std::string -getUnderlying(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getUnderlying(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setUnderlying -/* std::int32_t */ void setUnderlying(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setUnderlying(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getSPC -double getSPC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +double getSPC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setSPC -/* std::int32_t */ void setSPC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setSPC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, double value); // dxfg_InstrumentProfile_getAdditionalUnderlyings /* const char* */ std::string -getAdditionalUnderlyings(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getAdditionalUnderlyings(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setAdditionalUnderlyings /* std::int32_t */ void -setAdditionalUnderlyings(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setAdditionalUnderlyings(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getMMY -/* const char* */ std::string getMMY(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +/* const char* */ std::string getMMY(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setMMY -/* std::int32_t */ void setMMY(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setMMY(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getExpiration -std::int32_t getExpiration(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +std::int32_t getExpiration(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setExpiration -/* std::int32_t */ void setExpiration(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setExpiration(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, std::int32_t value); // dxfg_InstrumentProfile_getLastTrade -std::int32_t getLastTrade(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +std::int32_t getLastTrade(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setLastTrade -/* std::int32_t */ void setLastTrade(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setLastTrade(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, std::int32_t value); // dxfg_InstrumentProfile_getStrike -double getStrike(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +double getStrike(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setStrike -/* std::int32_t */ void setStrike(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setStrike(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, double value); // dxfg_InstrumentProfile_getOptionType /* const char* */ std::string -getOptionType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getOptionType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setOptionType -/* std::int32_t */ void setOptionType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setOptionType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getExpirationStyle /* const char* */ std::string -getExpirationStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getExpirationStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setExpirationStyle /* std::int32_t */ void -setExpirationStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setExpirationStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getSettlementStyle /* const char* */ std::string -getSettlementStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getSettlementStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setSettlementStyle /* std::int32_t */ void -setSettlementStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setSettlementStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getPriceIncrements /* const char* */ std::string -getPriceIncrements(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getPriceIncrements(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setPriceIncrements /* std::int32_t */ void -setPriceIncrements(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setPriceIncrements(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getTradingHours /* const char* */ std::string -getTradingHours(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getTradingHours(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_setTradingHours -/* std::int32_t */ void setTradingHours(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setTradingHours(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getField -/* const char* */ std::string getField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* const char* */ std::string getField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &name); // dxfg_InstrumentProfile_setField -/* std::int32_t */ void setField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &name, const StringLikeWrapper &value); // dxfg_InstrumentProfile_getNumericField -double getNumericField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +double getNumericField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &name); // dxfg_InstrumentProfile_setNumericField -/* std::int32_t */ void setNumericField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setNumericField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &name, double value); // dxfg_InstrumentProfile_getDateField -std::int32_t getDateField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +std::int32_t getDateField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &name); // dxfg_InstrumentProfile_setDateField -/* std::int32_t */ void setDateField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +/* std::int32_t */ void setDateField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &name, std::int32_t value); // dxfg_InstrumentProfile_getNonEmptyCustomFieldNames /* dxfg_string_list* */ std::vector -getNonEmptyCustomFieldNames(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip); +getNonEmptyCustomFieldNames(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile); // dxfg_InstrumentProfile_release -// /* std::int32_t */ void release(/* dxfg_instrument_profile_t* */ const JavaObjectHandle& ip); +// /* std::int32_t */ void release(/* dxfg_instrument_profile_t* */ const JavaObjectHandle& instrumentProfile); } // namespace isolated::ipf::IsolatedInstrumentProfile diff --git a/include/dxfeed_graal_cpp_api/isolated/model/IsolatedIndexedTxModel.hpp b/include/dxfeed_graal_cpp_api/isolated/model/IsolatedIndexedTxModel.hpp new file mode 100644 index 00000000..f957b391 --- /dev/null +++ b/include/dxfeed_graal_cpp_api/isolated/model/IsolatedIndexedTxModel.hpp @@ -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 +#include +#include + +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 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 &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 &model, void *sources); + +// int32_t dxfg_IndexedTxModel_isBatchProcessing(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source); +bool isBatchProcessing(const JavaObjectHandle &model); + +// int32_t dxfg_IndexedTxModel_isSnapshotProcessing(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source); +bool isSnapshotProcessing(const JavaObjectHandle &model); + +// int32_t dxfg_IndexedTxModel_attach(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source, dxfg_feed_t* +// feed); +void attach(const JavaObjectHandle &model, const JavaObjectHandle &feed); + +// int32_t dxfg_IndexedTxModel_detach(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source, dxfg_feed_t* +// feed); +void detach(const JavaObjectHandle &model, const JavaObjectHandle &feed); + +// int32_t dxfg_IndexedTxModel_close(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source); +void close(const JavaObjectHandle &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 withSources(const JavaObjectHandle &builder, + void *sources); + +// dxfg_indexed_tx_model_t* dxfg_IndexedTxModel_Builder_build(graal_isolatethread_t* thread, +// dxfg_indexed_tx_model_builder_t* source); +JavaObjectHandle build(const JavaObjectHandle &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 withBatchProcessing(const JavaObjectHandle &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 +withSnapshotProcessing(const JavaObjectHandle &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 withFeed(const JavaObjectHandle &builder, + const JavaObjectHandle &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 withSymbol(const JavaObjectHandle &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 withListener(const JavaObjectHandle &builder, + const JavaObjectHandle &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 withExecutor(const JavaObjectHandle &builder, + void *executor); + +} // namespace Builder +} // namespace isolated::model::IsolatedIndexedTxModel + +DXFCPP_END_NAMESPACE + +DXFCXX_DISABLE_MSC_WARNINGS_POP() \ No newline at end of file diff --git a/include/dxfeed_graal_cpp_api/isolated/model/IsolatedTimeSeriesTxModel.hpp b/include/dxfeed_graal_cpp_api/isolated/model/IsolatedTimeSeriesTxModel.hpp new file mode 100644 index 00000000..e09897d5 --- /dev/null +++ b/include/dxfeed_graal_cpp_api/isolated/model/IsolatedTimeSeriesTxModel.hpp @@ -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 +#include +#include + +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 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 &model); + +// int32_t dxfg_TimeSeriesTxModel_setFromTime(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source, +// int64_t fromTime); +void setFromTime(const JavaObjectHandle &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 &model); + +// int32_t dxfg_TimeSeriesTxModel_isSnapshotProcessing(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* +// source); +bool isSnapshotProcessing(const JavaObjectHandle &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 &model, const JavaObjectHandle &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 &model, const JavaObjectHandle &feed); + +// int32_t dxfg_TimeSeriesTxModel_close(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source); +void close(const JavaObjectHandle &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 withFromTime(const JavaObjectHandle &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 build(const JavaObjectHandle &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 +withBatchProcessing(const JavaObjectHandle &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 +withSnapshotProcessing(const JavaObjectHandle &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 withFeed(const JavaObjectHandle &builder, + const JavaObjectHandle &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 withSymbol(const JavaObjectHandle &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 withListener(const JavaObjectHandle &builder, + const JavaObjectHandle &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 withExecutor(const JavaObjectHandle &builder, + void *executor); + +} // namespace Builder +} // namespace isolated::model::IsolatedTimeSeriesTxModel + +DXFCPP_END_NAMESPACE + +DXFCXX_DISABLE_MSC_WARNINGS_POP() \ No newline at end of file diff --git a/include/dxfeed_graal_cpp_api/isolated/model/IsolatedTxModelListener.hpp b/include/dxfeed_graal_cpp_api/isolated/model/IsolatedTxModelListener.hpp new file mode 100644 index 00000000..fc6699cb --- /dev/null +++ b/include/dxfeed_graal_cpp_api/isolated/model/IsolatedTxModelListener.hpp @@ -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 +#include +#include + +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 create(void* functionEventsReceived, void* userData); + +} + +DXFCPP_END_NAMESPACE + +DXFCXX_DISABLE_MSC_WARNINGS_POP() \ No newline at end of file diff --git a/include/dxfeed_graal_cpp_api/model/IndexedTxModel.hpp b/include/dxfeed_graal_cpp_api/model/IndexedTxModel.hpp new file mode 100644 index 00000000..8d4c06f2 --- /dev/null +++ b/include/dxfeed_graal_cpp_api/model/IndexedTxModel.hpp @@ -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 +#include + +DXFCPP_BEGIN_NAMESPACE + +struct DXFCPP_EXPORT IndexedTxModel { + + struct DXFCPP_EXPORT Builder {}; +}; + +DXFCPP_END_NAMESPACE \ No newline at end of file diff --git a/include/dxfeed_graal_cpp_api/model/TimeSeriesTxModel.hpp b/include/dxfeed_graal_cpp_api/model/TimeSeriesTxModel.hpp new file mode 100644 index 00000000..e0164ae7 --- /dev/null +++ b/include/dxfeed_graal_cpp_api/model/TimeSeriesTxModel.hpp @@ -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 +#include + +DXFCPP_BEGIN_NAMESPACE + +struct DXFCPP_EXPORT TimeSeriesTxModel { + + struct DXFCPP_EXPORT Builder {}; +}; + +DXFCPP_END_NAMESPACE \ No newline at end of file diff --git a/include/dxfeed_graal_cpp_api/model/TxModelListener.hpp b/include/dxfeed_graal_cpp_api/model/TxModelListener.hpp new file mode 100644 index 00000000..0f9d5f34 --- /dev/null +++ b/include/dxfeed_graal_cpp_api/model/TxModelListener.hpp @@ -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 +#include + +DXFCPP_BEGIN_NAMESPACE + +struct DXFCPP_EXPORT TxModelListener { + +}; + +DXFCPP_END_NAMESPACE \ No newline at end of file diff --git a/src/internal/JavaObjectHandle.cpp b/src/internal/JavaObjectHandle.cpp index 413c51c0..c97e6cc3 100644 --- a/src/internal/JavaObjectHandle.cpp +++ b/src/internal/JavaObjectHandle.cpp @@ -92,5 +92,10 @@ template struct JavaObjectHandle; template struct JavaObjectHandle; +template struct JavaObjectHandle; +template struct JavaObjectHandle; +template struct JavaObjectHandle; +template struct JavaObjectHandle; +template struct JavaObjectHandle; DXFCPP_END_NAMESPACE \ No newline at end of file diff --git a/src/isolated/ipf/IsolatedInstrumentProfile.cpp b/src/isolated/ipf/IsolatedInstrumentProfile.cpp index 46e6de71..88291eb2 100644 --- a/src/isolated/ipf/IsolatedInstrumentProfile.cpp +++ b/src/isolated/ipf/IsolatedInstrumentProfile.cpp @@ -18,133 +18,142 @@ namespace isolated::ipf::IsolatedInstrumentProfile { // dxfg_InstrumentProfile_new2 /* dxfg_instrument_profile_t* */ JavaObjectHandle -create(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +create(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_new2`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_new2`. The `instrumentProfile` handle is invalid"); } return JavaObjectHandle(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_new2, static_cast(ip.get()))); + dxfg_InstrumentProfile_new2, static_cast(instrumentProfile.get()))); } // dxfg_InstrumentProfile_getType -/* const char* */ std::string getType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +/* const char* */ std::string +getType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getType`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getType`. The `instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getType, static_cast(ip.get()))); + dxfg_InstrumentProfile_getType, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setType -/* int32_t */ void setType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { +/* int32_t */ void +setType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setType`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setType`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setType, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getSymbol /* const char* */ std::string -getSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +getSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getSymbol`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getSymbol`. The `instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getSymbol, static_cast(ip.get()))); + dxfg_InstrumentProfile_getSymbol, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setSymbol -/* std::int32_t */ void setSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { +/* std::int32_t */ void +setSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setSymbol`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setSymbol`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setSymbol, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getDescription /* const char* */ std::string -getDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getDescription`. The ip handle is invalid"); +getDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getDescription`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getDescription, static_cast(ip.get()))); + dxfg_InstrumentProfile_getDescription, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setDescription -/* std::int32_t */ void setDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setDescription`. The ip handle is invalid"); +/* std::int32_t */ void +setDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setDescription`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setDescription, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getLocalSymbol /* const char* */ std::string -getLocalSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getLocalSymbol`. The ip handle is invalid"); +getLocalSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getLocalSymbol`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getLocalSymbol, static_cast(ip.get()))); + dxfg_InstrumentProfile_getLocalSymbol, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setLocalSymbol -/* std::int32_t */ void setLocalSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setLocalSymbol`. The ip handle is invalid"); +/* std::int32_t */ void +setLocalSymbol(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setLocalSymbol`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setLocalSymbol, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getLocalDescription /* const char* */ std::string -getLocalDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getLocalDescription`. The ip handle is invalid"); +getLocalDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getLocalDescription`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getLocalDescription, static_cast(ip.get()))); + dxfg_InstrumentProfile_getLocalDescription, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; @@ -152,438 +161,472 @@ getLocalDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setLocalDescription(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setLocalDescription`. The ip handle is invalid"); + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setLocalDescription`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setLocalDescription, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getCountry /* const char* */ std::string -getCountry(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getCountry`. The ip handle is invalid"); +getCountry(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getCountry`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getCountry, static_cast(ip.get()))); + dxfg_InstrumentProfile_getCountry, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setCountry -/* std::int32_t */ void setCountry(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setCountry`. The ip handle is invalid"); +/* std::int32_t */ void +setCountry(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setCountry`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setCountry, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getOPOL -/* const char* */ std::string getOPOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +/* const char* */ std::string +getOPOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getOPOL`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getOPOL`. The `instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getOPOL, static_cast(ip.get()))); + dxfg_InstrumentProfile_getOPOL, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setOPOL -/* std::int32_t */ void setOPOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { +/* std::int32_t */ void +setOPOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setOPOL`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setOPOL`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setOPOL, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getExchangeData /* const char* */ std::string -getExchangeData(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getExchangeData`. The ip handle is invalid"); +getExchangeData(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getExchangeData`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getExchangeData, static_cast(ip.get()))); + dxfg_InstrumentProfile_getExchangeData, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setExchangeData -/* std::int32_t */ void setExchangeData(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setExchangeData`. The ip handle is invalid"); +/* std::int32_t */ void +setExchangeData(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setExchangeData`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setExchangeData, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getExchanges /* const char* */ std::string -getExchanges(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getExchanges`. The ip handle is invalid"); +getExchanges(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getExchanges`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getExchanges, static_cast(ip.get()))); + dxfg_InstrumentProfile_getExchanges, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setExchanges -/* std::int32_t */ void setExchanges(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setExchanges`. The ip handle is invalid"); +/* std::int32_t */ void +setExchanges(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setExchanges`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setExchanges, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getCurrency /* const char* */ std::string -getCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getCurrency`. The ip handle is invalid"); +getCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getCurrency`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getCurrency, static_cast(ip.get()))); + dxfg_InstrumentProfile_getCurrency, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setCurrency -/* std::int32_t */ void setCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setCurrency`. The ip handle is invalid"); +/* std::int32_t */ void +setCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setCurrency`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setCurrency, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getBaseCurrency /* const char* */ std::string -getBaseCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getBaseCurrency`. The ip handle is invalid"); +getBaseCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getBaseCurrency`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getBaseCurrency, static_cast(ip.get()))); + dxfg_InstrumentProfile_getBaseCurrency, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setBaseCurrency -/* std::int32_t */ void setBaseCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setBaseCurrency`. The ip handle is invalid"); +/* std::int32_t */ void +setBaseCurrency(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setBaseCurrency`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setBaseCurrency, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getCFI -/* const char* */ std::string getCFI(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +/* const char* */ std::string +getCFI(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getCFI`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getCFI`. The `instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getCFI, static_cast(ip.get()))); + dxfg_InstrumentProfile_getCFI, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setCFI -/* std::int32_t */ void setCFI(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { +/* std::int32_t */ void +setCFI(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setCFI`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setCFI`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setCFI, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getISIN -/* const char* */ std::string getISIN(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +/* const char* */ std::string +getISIN(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getISIN`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getISIN`. The `instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getISIN, static_cast(ip.get()))); + dxfg_InstrumentProfile_getISIN, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setISIN -/* std::int32_t */ void setISIN(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { +/* std::int32_t */ void +setISIN(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setISIN`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setISIN`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setISIN, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getSEDOL -/* const char* */ std::string getSEDOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +/* const char* */ std::string +getSEDOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getSEDOL`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getSEDOL`. The `instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getSEDOL, static_cast(ip.get()))); + dxfg_InstrumentProfile_getSEDOL, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setSEDOL -/* std::int32_t */ void setSEDOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { +/* std::int32_t */ void +setSEDOL(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setSEDOL`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setSEDOL`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setSEDOL, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getCUSIP -/* const char* */ std::string getCUSIP(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +/* const char* */ std::string +getCUSIP(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getCUSIP`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getCUSIP`. The `instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getCUSIP, static_cast(ip.get()))); + dxfg_InstrumentProfile_getCUSIP, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setCUSIP -/* std::int32_t */ void setCUSIP(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { +/* std::int32_t */ void +setCUSIP(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setCUSIP`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setCUSIP`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setCUSIP, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getICB -std::int32_t getICB(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +std::int32_t getICB(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getICB`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getICB`. The `instrumentProfile` handle is invalid"); } return runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_getICB, - static_cast(ip.get())); + static_cast(instrumentProfile.get())); } // dxfg_InstrumentProfile_setICB -/* std::int32_t */ void setICB(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - std::int32_t value) { - if (!ip) { +/* std::int32_t */ void +setICB(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + std::int32_t value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setICB`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setICB`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setICB, - static_cast(ip.get()), value); + static_cast(instrumentProfile.get()), value); } // dxfg_InstrumentProfile_getSIC -std::int32_t getSIC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +std::int32_t getSIC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getSIC`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getSIC`. The `instrumentProfile` handle is invalid"); } return runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_getSIC, - static_cast(ip.get())); + static_cast(instrumentProfile.get())); } // dxfg_InstrumentProfile_setSIC -/* std::int32_t */ void setSIC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - std::int32_t value) { - if (!ip) { +/* std::int32_t */ void +setSIC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + std::int32_t value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setSIC`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setSIC`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setSIC, - static_cast(ip.get()), value); + static_cast(instrumentProfile.get()), value); } // dxfg_InstrumentProfile_getMultiplier -double getMultiplier(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getMultiplier`. The ip handle is invalid"); +double getMultiplier(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getMultiplier`. The " + "`instrumentProfile` handle is invalid"); } return runGraalFunctionAndThrowIfMinusInf(dxfg_InstrumentProfile_getMultiplier, - static_cast(ip.get())); + static_cast(instrumentProfile.get())); } // dxfg_InstrumentProfile_setMultiplier -/* std::int32_t */ void setMultiplier(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - double value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setMultiplier`. The ip handle is invalid"); +/* std::int32_t */ void +setMultiplier(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + double value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setMultiplier`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setMultiplier, - static_cast(ip.get()), value); + static_cast(instrumentProfile.get()), value); } // dxfg_InstrumentProfile_getProduct /* const char* */ std::string -getProduct(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getProduct`. The ip handle is invalid"); +getProduct(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getProduct`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getProduct, static_cast(ip.get()))); + dxfg_InstrumentProfile_getProduct, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setProduct -/* std::int32_t */ void setProduct(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setProduct`. The ip handle is invalid"); +/* std::int32_t */ void +setProduct(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setProduct`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setProduct, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getUnderlying /* const char* */ std::string -getUnderlying(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getUnderlying`. The ip handle is invalid"); +getUnderlying(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getUnderlying`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getUnderlying, static_cast(ip.get()))); + dxfg_InstrumentProfile_getUnderlying, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setUnderlying -/* std::int32_t */ void setUnderlying(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setUnderlying`. The ip handle is invalid"); +/* std::int32_t */ void +setUnderlying(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setUnderlying`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setUnderlying, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getSPC -double getSPC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +double getSPC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getSPC`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getSPC`. The `instrumentProfile` handle is invalid"); } return runGraalFunctionAndThrowIfMinusInf(dxfg_InstrumentProfile_getSPC, - static_cast(ip.get())); + static_cast(instrumentProfile.get())); } // dxfg_InstrumentProfile_setSPC -/* std::int32_t */ void setSPC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - double value) { - if (!ip) { +/* std::int32_t */ void +setSPC(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, double value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setSPC`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setSPC`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setSPC, - static_cast(ip.get()), value); + static_cast(instrumentProfile.get()), value); } // dxfg_InstrumentProfile_getAdditionalUnderlyings -/* const char* */ std::string -getAdditionalUnderlyings(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getAdditionalUnderlyings`. The ip handle is invalid"); +/* const char* */ std::string getAdditionalUnderlyings( + /* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getAdditionalUnderlyings`. " + "The `instrumentProfile` handle is invalid"); } - const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getAdditionalUnderlyings, static_cast(ip.get()))); + const auto string = internal::IsolatedString::toUnique( + runGraalFunctionAndThrowIfNullptr(dxfg_InstrumentProfile_getAdditionalUnderlyings, + static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; @@ -591,149 +634,159 @@ getAdditionalUnderlyings(/* dxfg_instrument_profile_t* */ const JavaObjectHandle // dxfg_InstrumentProfile_setAdditionalUnderlyings /* std::int32_t */ void -setAdditionalUnderlyings(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setAdditionalUnderlyings(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setAdditionalUnderlyings`. The ip handle is invalid"); + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setAdditionalUnderlyings`. " + "The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setAdditionalUnderlyings, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getMMY -/* const char* */ std::string getMMY(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +/* const char* */ std::string +getMMY(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getMMY`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getMMY`. The `instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getMMY, static_cast(ip.get()))); + dxfg_InstrumentProfile_getMMY, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setMMY -/* std::int32_t */ void setMMY(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { +/* std::int32_t */ void +setMMY(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setMMY`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setMMY`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setMMY, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getExpiration -std::int32_t getExpiration(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getExpiration`. The ip handle is invalid"); +std::int32_t +getExpiration(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getExpiration`. The " + "`instrumentProfile` handle is invalid"); } return runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_getExpiration, - static_cast(ip.get())); + static_cast(instrumentProfile.get())); } // dxfg_InstrumentProfile_setExpiration -/* std::int32_t */ void setExpiration(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - std::int32_t value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setExpiration`. The ip handle is invalid"); +/* std::int32_t */ void +setExpiration(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + std::int32_t value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setExpiration`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setExpiration, - static_cast(ip.get()), value); + static_cast(instrumentProfile.get()), value); } // dxfg_InstrumentProfile_getLastTrade -std::int32_t getLastTrade(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getLastTrade`. The ip handle is invalid"); +std::int32_t +getLastTrade(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getLastTrade`. The " + "`instrumentProfile` handle is invalid"); } return runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_getLastTrade, - static_cast(ip.get())); + static_cast(instrumentProfile.get())); } // dxfg_InstrumentProfile_setLastTrade -/* std::int32_t */ void setLastTrade(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - std::int32_t value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setLastTrade`. The ip handle is invalid"); +/* std::int32_t */ void +setLastTrade(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + std::int32_t value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setLastTrade`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setLastTrade, - static_cast(ip.get()), value); + static_cast(instrumentProfile.get()), value); } // dxfg_InstrumentProfile_getStrike -double getStrike(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { +double getStrike(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getStrike`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getStrike`. The `instrumentProfile` handle is invalid"); } return runGraalFunctionAndThrowIfMinusInf(dxfg_InstrumentProfile_getStrike, - static_cast(ip.get())); + static_cast(instrumentProfile.get())); } // dxfg_InstrumentProfile_setStrike -/* std::int32_t */ void setStrike(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - double value) { - if (!ip) { +/* std::int32_t */ void +setStrike(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, double value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setStrike`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setStrike`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setStrike, - static_cast(ip.get()), value); + static_cast(instrumentProfile.get()), value); } // dxfg_InstrumentProfile_getOptionType /* const char* */ std::string -getOptionType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getOptionType`. The ip handle is invalid"); +getOptionType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getOptionType`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getOptionType, static_cast(ip.get()))); + dxfg_InstrumentProfile_getOptionType, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setOptionType -/* std::int32_t */ void setOptionType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setOptionType`. The ip handle is invalid"); +/* std::int32_t */ void +setOptionType(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setOptionType`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setOptionType, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getExpirationStyle /* const char* */ std::string -getExpirationStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getExpirationStyle`. The ip handle is invalid"); +getExpirationStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getExpirationStyle`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getExpirationStyle, static_cast(ip.get()))); + dxfg_InstrumentProfile_getExpirationStyle, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; @@ -741,27 +794,28 @@ getExpirationStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setExpirationStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setExpirationStyle`. The ip handle is invalid"); + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setExpirationStyle`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setExpirationStyle, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getSettlementStyle /* const char* */ std::string -getSettlementStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getSettlementStyle`. The ip handle is invalid"); +getSettlementStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getSettlementStyle`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getSettlementStyle, static_cast(ip.get()))); + dxfg_InstrumentProfile_getSettlementStyle, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; @@ -769,27 +823,28 @@ getSettlementStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setSettlementStyle(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setSettlementStyle`. The ip handle is invalid"); + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setSettlementStyle`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setSettlementStyle, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getPriceIncrements /* const char* */ std::string -getPriceIncrements(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getPriceIncrements`. The ip handle is invalid"); +getPriceIncrements(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getPriceIncrements`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getPriceIncrements, static_cast(ip.get()))); + dxfg_InstrumentProfile_getPriceIncrements, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; @@ -797,130 +852,145 @@ getPriceIncrements(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +setPriceIncrements(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setPriceIncrements`. The ip handle is invalid"); + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setPriceIncrements`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setPriceIncrements, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getTradingHours /* const char* */ std::string -getTradingHours(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getTradingHours`. The ip handle is invalid"); +getTradingHours(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getTradingHours`. The " + "`instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getTradingHours, static_cast(ip.get()))); + dxfg_InstrumentProfile_getTradingHours, static_cast(instrumentProfile.get()))); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setTradingHours -/* std::int32_t */ void setTradingHours(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setTradingHours`. The ip handle is invalid"); +/* std::int32_t */ void +setTradingHours(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setTradingHours`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setTradingHours, - static_cast(ip.get()), value.c_str()); + static_cast(instrumentProfile.get()), + value.c_str()); } // dxfg_InstrumentProfile_getField -/* const char* */ std::string getField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &name) { - if (!ip) { +/* const char* */ std::string +getField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &name) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getField`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_getField`. The `instrumentProfile` handle is invalid"); } const auto string = internal::IsolatedString::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getField, static_cast(ip.get()), name.c_str())); + dxfg_InstrumentProfile_getField, static_cast(instrumentProfile.get()), + name.c_str())); auto result = dxfcpp::toString(string.get()); return result; } // dxfg_InstrumentProfile_setField -/* std::int32_t */ void setField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &name, const StringLikeWrapper &value) { - if (!ip) { +/* std::int32_t */ void +setField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &name, const StringLikeWrapper &value) { + if (!instrumentProfile) { throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setField`. The ip handle is invalid"); + "Unable to execute function `dxfg_InstrumentProfile_setField`. The `instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setField, - static_cast(ip.get()), name.c_str(), value.c_str()); + static_cast(instrumentProfile.get()), name.c_str(), + value.c_str()); } // dxfg_InstrumentProfile_getNumericField -double getNumericField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +double getNumericField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &name) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getNumericField`. The ip handle is invalid"); + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getNumericField`. The " + "`instrumentProfile` handle is invalid"); } return runGraalFunctionAndThrowIfMinusInf(dxfg_InstrumentProfile_getNumericField, - static_cast(ip.get()), name.c_str()); + static_cast(instrumentProfile.get()), + name.c_str()); } // dxfg_InstrumentProfile_setNumericField -/* std::int32_t */ void setNumericField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &name, double value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setNumericField`. The ip handle is invalid"); +/* std::int32_t */ void +setNumericField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &name, double value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setNumericField`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setNumericField, - static_cast(ip.get()), name.c_str(), value); + static_cast(instrumentProfile.get()), name.c_str(), + value); } // dxfg_InstrumentProfile_getDateField -std::int32_t getDateField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, +std::int32_t getDateField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, const StringLikeWrapper &name) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_getDateField`. The ip handle is invalid"); + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getDateField`. The " + "`instrumentProfile` handle is invalid"); } return runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_getDateField, - static_cast(ip.get()), name.c_str()); + static_cast(instrumentProfile.get()), + name.c_str()); } // dxfg_InstrumentProfile_setDateField -/* std::int32_t */ void setDateField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip, - const StringLikeWrapper &name, std::int32_t value) { - if (!ip) { - throw InvalidArgumentException( - "Unable to execute function `dxfg_InstrumentProfile_setNumericField`. The ip handle is invalid"); +/* std::int32_t */ void +setDateField(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile, + const StringLikeWrapper &name, std::int32_t value) { + if (!instrumentProfile) { + throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_setNumericField`. The " + "`instrumentProfile` handle is invalid"); } runGraalFunctionAndThrowIfMinusOne(dxfg_InstrumentProfile_setNumericField, - static_cast(ip.get()), name.c_str(), value); + static_cast(instrumentProfile.get()), name.c_str(), + value); } // dxfg_InstrumentProfile_getNonEmptyCustomFieldNames -/* dxfg_string_list* */ std::vector -getNonEmptyCustomFieldNames(/* dxfg_instrument_profile_t* */ const JavaObjectHandle &ip) { - if (!ip) { - throw InvalidArgumentException("Unable to execute function `dxfg_InstrumentProfile_getNonEmptyCustomFieldNames`. " - "The ip handle is invalid"); +/* dxfg_string_list* */ std::vector getNonEmptyCustomFieldNames( + /* dxfg_instrument_profile_t* */ const JavaObjectHandle &instrumentProfile) { + if (!instrumentProfile) { + throw InvalidArgumentException( + "Unable to execute function `dxfg_InstrumentProfile_getNonEmptyCustomFieldNames`. " + "The `instrumentProfile` handle is invalid"); } std::vector result; - auto graalStringList = internal::IsolatedStringList::toUnique(runGraalFunctionAndThrowIfNullptr( - dxfg_InstrumentProfile_getNonEmptyCustomFieldNames, static_cast(ip.get()))); + auto graalStringList = internal::IsolatedStringList::toUnique( + runGraalFunctionAndThrowIfNullptr(dxfg_InstrumentProfile_getNonEmptyCustomFieldNames, + static_cast(instrumentProfile.get()))); const auto size = static_cast(graalStringList.get())->size; const auto elements = static_cast(graalStringList.get())->elements; diff --git a/src/isolated/model/IsolatedIndexedTxModel.cpp b/src/isolated/model/IsolatedIndexedTxModel.cpp new file mode 100644 index 00000000..8db33e71 --- /dev/null +++ b/src/isolated/model/IsolatedIndexedTxModel.cpp @@ -0,0 +1,256 @@ +// Copyright (c) 2024 Devexperts LLC. +// SPDX-License-Identifier: MPL-2.0 + +#include + +#include +#include +#include + +DXFCPP_BEGIN_NAMESPACE + +namespace isolated::model::IsolatedIndexedTxModel { + +// dxfg_indexed_tx_model_builder_t* dxfg_IndexedTxModel_newBuilder(graal_isolatethread_t* thread, dxfg_event_clazz_t +// eventType); +JavaObjectHandle newBuilder(const EventTypeEnum &eventType) { + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_newBuilder, static_cast(eventType.getId()))}; +} + +// dxfg_indexed_event_source_list* dxfg_IndexedTxModel_getSources(graal_isolatethread_t* thread, +// dxfg_indexed_tx_model_t* source); +void *getSources(const JavaObjectHandle &model) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_getSources`. The " + "`model` handle is invalid"); + } + + return dxfcpp::bit_cast(runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_getSources, static_cast(model.get()))); +} + +// 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 &model, void *sources) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_setSources`. The " + "`model` handle is invalid"); + } + + if (!sources) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_setSources`. The " + "`sources` is nullptr"); + } + + runGraalFunctionAndThrowIfMinusOne(dxfg_IndexedTxModel_setSources, + static_cast(model.get()), + static_cast(sources)); +} + +// int32_t dxfg_IndexedTxModel_isBatchProcessing(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source); +bool isBatchProcessing(const JavaObjectHandle &model) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_isBatchProcessing`. The " + "`model` handle is invalid"); + } + + return runGraalFunctionAndThrowIfMinusOne(dxfg_IndexedTxModel_isBatchProcessing, + static_cast(model.get())) == 1; +} + +// int32_t dxfg_IndexedTxModel_isSnapshotProcessing(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source); +bool isSnapshotProcessing(const JavaObjectHandle &model) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_isSnapshotProcessing`. The " + "`model` handle is invalid"); + } + + return runGraalFunctionAndThrowIfMinusOne(dxfg_IndexedTxModel_isSnapshotProcessing, + static_cast(model.get())) == 1; +} + +// int32_t dxfg_IndexedTxModel_attach(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source, dxfg_feed_t* +// feed); +void attach(const JavaObjectHandle &model, const JavaObjectHandle &feed) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_attach`. The " + "`model` handle is invalid"); + } + + if (!feed) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_attach`. The " + "`feed` handle is invalid"); + } + + runGraalFunctionAndThrowIfMinusOne(dxfg_IndexedTxModel_attach, static_cast(model.get()), + static_cast(feed.get())); +} + +// int32_t dxfg_IndexedTxModel_detach(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source, dxfg_feed_t* +// feed); +void detach(const JavaObjectHandle &model, const JavaObjectHandle &feed) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_detach`. The " + "`model` handle is invalid"); + } + + if (!feed) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_detach`. The " + "`feed` handle is invalid"); + } + + runGraalFunctionAndThrowIfMinusOne(dxfg_IndexedTxModel_detach, static_cast(model.get()), + static_cast(feed.get())); +} + +// int32_t dxfg_IndexedTxModel_close(graal_isolatethread_t* thread, dxfg_indexed_tx_model_t* source); +void close(const JavaObjectHandle &model) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_close`. The " + "`model` handle is invalid"); + } + + runGraalFunctionAndThrowIfMinusOne(dxfg_IndexedTxModel_close, static_cast(model.get())); +} + +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 withSources(const JavaObjectHandle &builder, + void *sources) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_withSources`. The " + "`builder` handle is invalid"); + } + + if (!sources) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_withSources`. The " + "`sources` is nullptr"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_Builder_withSources, static_cast(builder.get()), + static_cast(sources))}; +} + +// dxfg_indexed_tx_model_t* dxfg_IndexedTxModel_Builder_build(graal_isolatethread_t* thread, +// dxfg_indexed_tx_model_builder_t* source); +JavaObjectHandle build(const JavaObjectHandle &builder) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_build`. The " + "`builder` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_Builder_build, static_cast(builder.get()))}; +} + +// 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 withBatchProcessing(const JavaObjectHandle &builder, + bool isBatchProcessing) { + if (!builder) { + throw InvalidArgumentException( + "Unable to execute function `dxfg_IndexedTxModel_Builder_withBatchProcessing`. The " + "`builder` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_Builder_withBatchProcessing, static_cast(builder.get()), + isBatchProcessing ? 1 : 0)}; +} + +// 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 +withSnapshotProcessing(const JavaObjectHandle &builder, bool isSnapshotProcessing) { + if (!builder) { + throw InvalidArgumentException( + "Unable to execute function `dxfg_IndexedTxModel_Builder_withSnapshotProcessing`. The " + "`builder` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_Builder_withSnapshotProcessing, + static_cast(builder.get()), isSnapshotProcessing ? 1 : 0)}; +} + +// 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 withFeed(const JavaObjectHandle &builder, + const JavaObjectHandle &feed) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_withFeed`. The " + "`builder` handle is invalid"); + } + + if (!feed) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_withFeed`. The " + "`feed` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_Builder_withFeed, static_cast(builder.get()), + static_cast(feed.get()))}; +} + +// 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 withSymbol(const JavaObjectHandle &builder, + const SymbolWrapper &symbol) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_withSymbol`. The " + "`builder` handle is invalid"); + } + + auto graalSymbol = symbol.toGraalUnique(); + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_Builder_withSymbol, static_cast(builder.get()), + static_cast(graalSymbol.get()))}; +} + +// 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 withListener(const JavaObjectHandle &builder, + const JavaObjectHandle &listener) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_withListener`. The " + "`builder` handle is invalid"); + } + + if (!listener) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_withListener`. The " + "`listener` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_Builder_withListener, static_cast(builder.get()), + static_cast(listener.get()))}; +} + +// 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 withExecutor(const JavaObjectHandle &builder, + void *executor) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_withExecutor`. The " + "`builder` handle is invalid"); + } + + if (!executor) { + throw InvalidArgumentException("Unable to execute function `dxfg_IndexedTxModel_Builder_withExecutor`. The " + "`executor` is nullptr"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_IndexedTxModel_Builder_withExecutor, static_cast(builder.get()), + static_cast(executor))}; +} + +} // namespace Builder +} // namespace isolated::model::IsolatedIndexedTxModel + +DXFCPP_END_NAMESPACE \ No newline at end of file diff --git a/src/isolated/model/IsolatedTimeSeriesTxModel.cpp b/src/isolated/model/IsolatedTimeSeriesTxModel.cpp new file mode 100644 index 00000000..70e3c0b5 --- /dev/null +++ b/src/isolated/model/IsolatedTimeSeriesTxModel.cpp @@ -0,0 +1,249 @@ +// Copyright (c) 2024 Devexperts LLC. +// SPDX-License-Identifier: MPL-2.0 + +#include + +#include +#include +#include + +DXFCPP_BEGIN_NAMESPACE + +namespace isolated::model::IsolatedTimeSeriesTxModel { + +// dxfg_time_series_tx_model_builder_t* dxfg_TimeSeriesTxModel_newBuilder(graal_isolatethread_t* thread, +// dxfg_event_clazz_t eventType); +JavaObjectHandle newBuilder(const EventTypeEnum &eventType) { + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_TimeSeriesTxModel_newBuilder, static_cast(eventType.getId()))}; +} + +// int64_t dxfg_TimeSeriesTxModel_getFromTime(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source); +std::int64_t getFromTime(const JavaObjectHandle &model) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_getFromTime`. The " + "`model` handle is invalid"); + } + + return runGraalFunctionAndThrowIfMinusOne(dxfg_TimeSeriesTxModel_getFromTime, + static_cast(model.get())); +} + +// int32_t dxfg_TimeSeriesTxModel_setFromTime(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source, +// int64_t fromTime); +void setFromTime(const JavaObjectHandle &model, std::int64_t fromTime) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_setFromTime`. The " + "`model` handle is invalid"); + } + + runGraalFunctionAndThrowIfMinusOne(dxfg_TimeSeriesTxModel_setFromTime, + static_cast(model.get()), fromTime); +} + +// int32_t dxfg_TimeSeriesTxModel_isBatchProcessing(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source); +bool isBatchProcessing(const JavaObjectHandle &model) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_isBatchProcessing`. The " + "`model` handle is invalid"); + } + + return runGraalFunctionAndThrowIfMinusOne(dxfg_TimeSeriesTxModel_isBatchProcessing, + static_cast(model.get())) == 1; +} + +// int32_t dxfg_TimeSeriesTxModel_isSnapshotProcessing(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* +// source); +bool isSnapshotProcessing(const JavaObjectHandle &model) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_isSnapshotProcessing`. The " + "`model` handle is invalid"); + } + + return runGraalFunctionAndThrowIfMinusOne(dxfg_TimeSeriesTxModel_isSnapshotProcessing, + static_cast(model.get())) == 1; +} + +// int32_t dxfg_TimeSeriesTxModel_attach(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source, +// dxfg_feed_t* feed); +void attach(const JavaObjectHandle &model, const JavaObjectHandle &feed) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_attach`. The " + "`model` handle is invalid"); + } + + if (!feed) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_attach`. The " + "`feed` handle is invalid"); + } + + runGraalFunctionAndThrowIfMinusOne(dxfg_TimeSeriesTxModel_attach, + static_cast(model.get()), + static_cast(feed.get())); +} + +// int32_t dxfg_TimeSeriesTxModel_detach(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source, +// dxfg_feed_t* feed); +void detach(const JavaObjectHandle &model, const JavaObjectHandle &feed) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_detach`. The " + "`model` handle is invalid"); + } + + if (!feed) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_detach`. The " + "`feed` handle is invalid"); + } + + runGraalFunctionAndThrowIfMinusOne(dxfg_TimeSeriesTxModel_detach, + static_cast(model.get()), + static_cast(feed.get())); +} + +// int32_t dxfg_TimeSeriesTxModel_close(graal_isolatethread_t* thread, dxfg_time_series_tx_model_t* source); +void close(const JavaObjectHandle &model) { + if (!model) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_close`. The " + "`model` handle is invalid"); + } + + runGraalFunctionAndThrowIfMinusOne(dxfg_TimeSeriesTxModel_close, + static_cast(model.get())); +} + +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 withFromTime(const JavaObjectHandle &builder, + std::int64_t fromTime) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withFromTime`. The " + "`builder` handle is invalid"); + } + + return JavaObjectHandle{ + runGraalFunctionAndThrowIfNullptr(dxfg_TimeSeriesTxModel_Builder_withFromTime, + static_cast(builder.get()), fromTime)}; +} + +// dxfg_time_series_tx_model_t* dxfg_TimeSeriesTxModel_Builder_build(graal_isolatethread_t* thread, +// dxfg_time_series_tx_model_builder_t* source); +JavaObjectHandle build(const JavaObjectHandle &builder) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_Builder_build`. The " + "`builder` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_TimeSeriesTxModel_Builder_build, static_cast(builder.get()))}; +} + +// 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 +withBatchProcessing(const JavaObjectHandle &builder, bool isBatchProcessing) { + if (!builder) { + throw InvalidArgumentException( + "Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withBatchProcessing`. The " + "`builder` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_TimeSeriesTxModel_Builder_withBatchProcessing, + static_cast(builder.get()), isBatchProcessing ? 1 : 0)}; +} + +// 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 +withSnapshotProcessing(const JavaObjectHandle &builder, bool isSnapshotProcessing) { + if (!builder) { + throw InvalidArgumentException( + "Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withSnapshotProcessing`. The " + "`builder` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_TimeSeriesTxModel_Builder_withSnapshotProcessing, + static_cast(builder.get()), isSnapshotProcessing ? 1 : 0)}; +} + +// 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 withFeed(const JavaObjectHandle &builder, + const JavaObjectHandle &feed) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withFeed`. The " + "`builder` handle is invalid"); + } + + if (!feed) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withFeed`. The " + "`feed` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_TimeSeriesTxModel_Builder_withFeed, static_cast(builder.get()), + static_cast(feed.get()))}; +} + +// 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 withSymbol(const JavaObjectHandle &builder, + const SymbolWrapper &symbol) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withSymbol`. The " + "`builder` handle is invalid"); + } + + auto graalSymbol = symbol.toGraalUnique(); + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_TimeSeriesTxModel_Builder_withSymbol, static_cast(builder.get()), + static_cast(graalSymbol.get()))}; +} + +// 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 withListener(const JavaObjectHandle &builder, + const JavaObjectHandle &listener) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withListener`. The " + "`builder` handle is invalid"); + } + + if (!listener) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withListener`. The " + "`listener` handle is invalid"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_TimeSeriesTxModel_Builder_withListener, static_cast(builder.get()), + static_cast(listener.get()))}; +} + +// 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 withExecutor(const JavaObjectHandle &builder, + void *executor) { + if (!builder) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withExecutor`. The " + "`builder` handle is invalid"); + } + + if (!executor) { + throw InvalidArgumentException("Unable to execute function `dxfg_TimeSeriesTxModel_Builder_withExecutor`. The " + "`executor` is null"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_TimeSeriesTxModel_Builder_withExecutor, static_cast(builder.get()), + static_cast(executor))}; +} + +} // namespace Builder + +} // namespace isolated::model::IsolatedTimeSeriesTxModel + +DXFCPP_END_NAMESPACE \ No newline at end of file diff --git a/src/isolated/model/IsolatedTxModelListener.cpp b/src/isolated/model/IsolatedTxModelListener.cpp new file mode 100644 index 00000000..947f3c9b --- /dev/null +++ b/src/isolated/model/IsolatedTxModelListener.cpp @@ -0,0 +1,32 @@ +// Copyright (c) 2024 Devexperts LLC. +// SPDX-License-Identifier: MPL-2.0 + +#include + +#include +#include + +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 create(void *functionEventsReceived, void *userData) { + if (!functionEventsReceived) { + throw InvalidArgumentException( + "Unable to execute function `dxfg_TxModelListener_new`. The `functionEventsReceived` is nullptr"); + } + + return JavaObjectHandle{runGraalFunctionAndThrowIfNullptr( + dxfg_TxModelListener_new, + dxfcpp::bit_cast(functionEventsReceived), userData)}; +} + +} // namespace isolated::model::IsolatedTxModelListener + +DXFCPP_END_NAMESPACE \ No newline at end of file