Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • ETA /
avatar image
Question by Joe.Ferraro · Jun 01, 2017 at 09:46 AM · elektronETAsdkversionconditional compilation

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?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by jirapongse.phuriphanvichai · Jun 01, 2017 at 11:41 PM

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.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Joe.Ferraro · Jun 02, 2017 at 05:04 PM 0
Share

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.

avatar image
REFINITIV
Answer by jirapongse.phuriphanvichai · Nov 19, 2019 at 03:40 AM

@Joe.Ferraro

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_ReleaseType
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

How to know when BDS (SymbolLists) are available after Elektron Server reboot

Spurious Channel "UP" event received in the middle of Elektron Edge device reboot disrupting ETA reactor "Reconnect" logic

How to log a generic message?

repeatedly call rsslInitChannel when channel in Initializing state?

How to test on stream contribution on EZD UAT with ETA API

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges