How to determine ElektronSDK version at compile time?
I was looking at example ETA code included in the ElektronSDK version 1.1.0. I found some logic there that I thought might be applicable to by client and added a few lines based on what I saw there. However compilation failed when I tried to compile the client code.
The client is using the ElektronSDK version 1.0.6. It looks like there are additional #defines and fields in structures in the newer version.
Without going into the details regarding why I can't simply start using 1.1.0, I was hoping there was a way to modify the client code to do something like:
#if RSSL_API_VERSION >= 110
// use portions of SDK available starting with version 1.1.0
#endif
But I haven't been able to find #define like that in any of the include files.
Is there such a #define?
If not, can one be added in future versions for such a purpose?
Best Answer
-
I found a header file that defines the version in the EMA package. It is \Ema\Src\Access\EmaVersion.h.
#ifndef _EMA_VERSION_H_
#define _EMA_VERSION_H_
/*--------------------------------------------------------------------------
CHANGE BELOW HERE
--------------------------------------------------------------------------*/
#define Ema_Release_Major 3
#define Ema_Release_Minor 0
#define Ema_Product_Major 6
#define Ema_Product_Minor 1
#define PRODNAME "Elektron Message API EMA "
#define PRODVERNAME "3.0.6"
#define COMPANYNAME "Thomson Reuters, Oak Brook, IL"
#define COPYRIGHTYEAR "2016"
#define DDATE "Mon Dec 5 11:00:00 CDT 2016"
#define INTERNALVERSION "(Internal Node: Ema 3.0.6.1)"However, I am unable to find the same in the ETA package. I will contact the development team to verify it.
0
Answers
-
I searched through all the headers from several versions of the ElektronSDK for anything resembling this for ETA prior to posting this question.
Perhaps there is something we've both missed.
If not, hopefully they'll add it in future versions, it would be useful in certain cicumstances.0 -
I found the new version of Elektron SDK contains the rsslVersion.h in the Cpp-C\Eta\Include directory.
It contains the following information.
#define RSSL_Release_Major 3 // Release major version number
#define RSSL_Release_Minor 3 // Release minor version number
#define RSSL_Product_Major 1 // Release patch number
#define RSSL_Product_Minor 0 // Release tweak number
#define RSSL_Year "2019"
#define RSSL_CompanyName " Thomson Reuters, Oak Brook, IL"
#define RSSL_Version RSSL_Release_Major,RSSL_Release_Minor,RSSL_Product_Major,RSSL_Product_Minor
#define RSSL_VersionString MKSTR(RSSL_Release_Major) "." MKSTR(RSSL_Release_Minor) "." MKSTR(RSSL_Product_Major) "." MKSTR(RSSL_Product_Minor) " (" BLDTYPE ")"
#define RSSL_LegalCopyRight "(C) Copyright " RSSL_Year RSSL_CompanyName ", All Rights Reserved. "
#define RSSL_ExternalName "eta3.3.1.L1"
#define RSSL_InternalName "eta3.3.1.0"
#define RSSL_ReleaseType "rrg"
#define RSSL_ProdName "Elektron Transport API (ETA) C Edition"
#define RSSL_Package " PACKAGE " RSSL_ExternalName " " RSSL_ReleaseType0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛