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
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛