EMA C++ Edition
ServiceEndpointDiscoveryConfig.h
Go to the documentation of this file.
1/*|-----------------------------------------------------------------------------
2 *| This source code is provided under the Apache 2.0 license
3 *| and is provided AS IS with no warranty or guarantee of fit for purpose.
4 *| See the project's LICENSE.md for details.
5 *| Copyright (C) 2019-2023 LSEG. All rights reserved. --
6 *|-----------------------------------------------------------------------------
7 */
8
9#include "cstdio"
11
12#ifndef __refinitiv_ema_access_ServiceEndpointDiscoveryConfig_h
13#define __refinitiv_ema_access_ServiceEndpointDiscoveryConfig_h
14
15namespace refinitiv {
16
17namespace ema {
18
19namespace access {
20
22{
23public:
24
26
27
30
32
33
37 void clear();
38
44
50
56
61 ServiceEndpointDiscoveryConfig& restLogOutputStream(FILE* restLogOutputStream = NULL);
62
67 ServiceEndpointDiscoveryConfig& restEnableLog(bool restEnableLog = false);
68
73 ServiceEndpointDiscoveryConfig& restVerboseMode(bool restVerboseMode = false);
74
80
86
92
97 ServiceEndpointDiscoveryConfig& shouldInitializeCPUIDlib(bool shouldInitializeCPUIDlib = true);
98
99private:
100
101 friend class ServiceEndpointDiscoveryImpl;
102
103 const EmaString* _tokenServiceURL_V1; // Defaults to empty
104 const EmaString* _tokenServiceURL_V2; // Defaults to empty
105 const EmaString* _serviceDiscoveryURL;// Defaults to empty
106 FILE* _restLogOutputStreamFile; // Defaults to NULL to send logs to stdout
107 bool _restEnableLog; // Defaults to false
108 bool _restVerboseMode; // Defaults to false
109
110 const EmaString* _libsslName; // Defaults to empty
111 const EmaString* _libcryptoName; // Defaults to empty
112 const EmaString* _libcurlName; // Defaults to empty
113 bool _shouldInitializeCPUIDlib; // Defaults to true
114};
115
116}
117
118}
119
120}
121
122#endif // __refinitiv_ema_access_ServiceEndpointDiscoveryConfig_h
#define EMA_ACCESS_API
Definition: Common.h:95
*|--------------------------------------------------------------------------—
Definition: AckMsg.h:62
The access namespace contains all interfaces and definitions specified for use with the EMA Access pa...
The ema namespace contains all interfaces and definitions specified for use with EMA.
EmaString class is a container of a null terminated Ascii character string.
Definition: EmaString.h:57
ServiceEndpointDiscoveryConfig & shouldInitializeCPUIDlib(bool shouldInitializeCPUIDlib=true)
ServiceEndpointDiscoveryConfig & tokenServiceUrlV2(const EmaString &tokenServiceUrl="")
ServiceEndpointDiscoveryConfig & libSslName(const EmaString &libsslName="")
ServiceEndpointDiscoveryConfig & libCurlName(const EmaString &libcurlName="")
ServiceEndpointDiscoveryConfig & serviceDiscoveryUrl(const EmaString &serviceDiscoveryUrl="")
ServiceEndpointDiscoveryConfig & restVerboseMode(bool restVerboseMode=false)
ServiceEndpointDiscoveryConfig & tokenServiceUrlV1(const EmaString &tokenServiceUrl="")
ServiceEndpointDiscoveryConfig & restEnableLog(bool restEnableLog=false)
ServiceEndpointDiscoveryConfig & restLogOutputStream(FILE *restLogOutputStream=NULL)
ServiceEndpointDiscoveryConfig & libCryptoName(const EmaString &libcryptoName="")