BLPAPI C++ 3.25.10
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
28#ifndef INCLUDED_BLPAPI_ZFPUTIL
29#define INCLUDED_BLPAPI_ZFPUTIL
30
86#ifndef INCLUDED_BLPAPI_ABSTRACTSESSION
88#endif
89
90#ifndef INCLUDED_BLPAPI_CALL
91#include <blpapi_call.h>
92#endif
93
94#ifndef INCLUDED_BLPAPI_EXCEPTION
95#include <blpapi_exception.h>
96#endif
97
98#ifndef INCLUDED_BLPAPI_DEFS
99#include <blpapi_defs.h>
100#endif
101
102#ifndef INCLUDED_BLPAPI_SESSIONOPTIONS
104#endif
105
106#ifndef INCLUDED_BLPAPI_TLSOPTIONS
107#include <blpapi_tlsoptions.h>
108#endif
109
110#ifndef INCLUDED_BLPAPI_VERSIONMACROS
111#include <blpapi_versionmacros.h>
112#endif
113
114#ifdef __cplusplus
115extern "C" {
116#endif
117
120 blpapi_SessionOptions_t *sessionOptions,
121 const blpapi_TlsOptions_t *tlsOptions,
122 int remote);
123
124#ifdef __cplusplus
125}
126
134namespace BloombergLP {
135namespace blpapi {
136
143class ZfpUtil {
144
145 public:
150
152 Remote remote, const TlsOptions& tlsOptions);
163};
164
168// ============================================================================
169// INLINE FUNCTION DEFINITIONS
170// ============================================================================
171
172// -------------
173// class ZfpUtil
174// -------------
176 Remote remote, const TlsOptions& tlsOptions)
177{
178 // Ignore the return value
181
185 so.handle(), tlsOptions.handle(), remote));
186 return so;
187}
188
189} // close namespace blpapi
190} // close namespace BloombergLP
191
192#endif // #ifdef __cplusplus
193#endif // #ifndef INCLUDED_BLPAPI_ZFPUTIL
A common interface shared between publisher and consumer sessions.
BLPAPI_EXPORT int blpapi_UserAgentInfo_setNativeSdkLanguageAndVersion(const char *language, const char *version)
Provide functions for dispatchtbl.
#define BLPAPI_CALL(FUNCNAME)
Definition blpapi_call.h:353
Common definitions used by the library.
#define BLPAPI_ZFPUTIL_REMOTE_8194
Definition blpapi_defs.h:153
#define BLPAPI_EXPORT
Definition blpapi_defs.h:171
#define BLPAPI_ZFPUTIL_REMOTE_8196
Definition blpapi_defs.h:154
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.
#define BLPAPI_SDK_VERSION_STRING
Definition blpapi_versionmacros.h:69
BLPAPI_EXPORT int blpapi_ZfpUtil_getOptionsForLeasedLines(blpapi_SessionOptions_t *sessionOptions, const blpapi_TlsOptions_t *tlsOptions, int remote)
static void throwOnError(int errorCode)
Definition blpapi_exception.h:526
Definition blpapi_sessionoptions.h:431
blpapi_SessionOptions_t * handle() const
Definition blpapi_sessionoptions.h:1400
Definition blpapi_tlsoptions.h:188
blpapi_TlsOptions_t * handle() const
Definition blpapi_tlsoptions.h:344
Definition blpapi_zfputil.h:143
Remote
Definition blpapi_zfputil.h:146
@ REMOTE_8196
Use port 8196.
Definition blpapi_zfputil.h:148
@ REMOTE_8194
Use port 8194.
Definition blpapi_zfputil.h:147
static SessionOptions getZfpOptionsForLeasedLines(Remote remote, const TlsOptions &tlsOptions)
Definition blpapi_zfputil.h:175
struct blpapi_SessionOptions blpapi_SessionOptions_t
Definition blpapi_types.h:172
struct blpapi_TlsOptions blpapi_TlsOptions_t
Definition blpapi_types.h:178
Definition blpapi_abstractsession.h:195