BLPAPI C++ 3.26.6
Loading...
Searching...
No Matches
blpapi_zfputil.h
Go to the documentation of this file.
1/* Copyright 2018. Bloomberg Finance L.P.
2 *
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to
5 * deal in the Software without restriction, including without limitation the
6 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 * sell copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions: The above
9 * copyright notice and this permission notice shall be included in all copies
10 * or substantial portions of the Software.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18 * IN THE SOFTWARE.
19 */
20
37
38#ifndef INCLUDED_BLPAPI_ZFPUTIL
39#define INCLUDED_BLPAPI_ZFPUTIL
40
89
92
93#ifndef INCLUDED_BLPAPI_ABSTRACTSESSION
95#endif
96
97#ifndef INCLUDED_BLPAPI_CALL
98#include <blpapi_call.h>
99#endif
100
101#ifndef INCLUDED_BLPAPI_EXCEPTION
102#include <blpapi_exception.h>
103#endif
104
105#ifndef INCLUDED_BLPAPI_DEFS
106#include <blpapi_defs.h>
107#endif
108
109#ifndef INCLUDED_BLPAPI_SESSIONOPTIONS
111#endif
112
113#ifndef INCLUDED_BLPAPI_TLSOPTIONS
114#include <blpapi_tlsoptions.h>
115#endif
116
117#ifndef INCLUDED_BLPAPI_VERSIONMACROS
118#include <blpapi_versionmacros.h>
119#endif
120
121#ifdef __cplusplus
122extern "C" {
123#endif
124
128
130
155BLPAPI_EXPORT
156int blpapi_ZfpUtil_getOptionsForLeasedLines(
157 blpapi_SessionOptions_t *sessionOptions,
158 const blpapi_TlsOptions_t *tlsOptions,
159 int remote);
161
163
164#ifdef __cplusplus
165}
166
167namespace BloombergLP {
168namespace blpapi {
175
182class ZfpUtil {
183
184 public:
185 enum Remote {
186 REMOTE_8194 = BLPAPI_ZFPUTIL_REMOTE_8194,
187 REMOTE_8196 = BLPAPI_ZFPUTIL_REMOTE_8196
188 };
189
191 Remote remote, const TlsOptions& tlsOptions);
202};
203
206
207// ============================================================================
208// INLINE FUNCTION DEFINITIONS
209// ============================================================================
210
211// -------------
212// class ZfpUtil
213// -------------
215 Remote remote, const TlsOptions& tlsOptions)
216{
217 // Ignore the return value
218 BLPAPI_CALL(blpapi_UserAgentInfo_setNativeSdkLanguageAndVersion)
220
223 BLPAPI_CALL(blpapi_ZfpUtil_getOptionsForLeasedLines)(
224 so.handle(), tlsOptions.handle(), remote));
225 return so;
226}
227
228} // close namespace blpapi
229} // close namespace BloombergLP
230
231#endif // #ifdef __cplusplus
232#endif // #ifndef INCLUDED_BLPAPI_ZFPUTIL
A common interface shared between publisher and consumer sessions.
Provide functions for dispatchtbl.
Common definitions used by the library.
Defines Exceptions that can be thrown by the blpapi library.
A common interface shared between publish and consumer sessions.
Maintain client credentials and trust material.
Provide preprocessor macros for BLPAPI library version information.
static void throwOnError(int errorCode)
Definition blpapi_exception.h:556
Definition blpapi_sessionoptions.h:1141
Definition blpapi_tlsoptions.h:296
Definition blpapi_zfputil.h:182
Remote
Definition blpapi_zfputil.h:185
@ REMOTE_8196
Use port 8196.
Definition blpapi_zfputil.h:187
@ REMOTE_8194
Use port 8194.
Definition blpapi_zfputil.h:186
static SessionOptions getZfpOptionsForLeasedLines(Remote remote, const TlsOptions &tlsOptions)
Definition blpapi_zfputil.h:214
#define BLPAPI_SDK_VERSION_STRING
C-string encoding the version of the BLPAPI headers used at compile time in "MAJOR....
Definition blpapi_versionmacros.h:99
Definition blpapi_abstractsession.h:452
Definition blpapi_abstractsession.h:451