question

Upvotes
Accepted
11 12 9 14

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?

elektronrefinitiv-realtimeelektron-sdkrrteta-apielektron-transport-apicompile
icon clock
10 |1500

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

The case 05567864 has been created for this enhancement request.

Upvotes
Accepted
78.8k 250 52 74

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.

icon clock
10 |1500

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

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.

Upvotes
78.8k 250 52 74

@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
icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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