BLPAPI C++  3.25.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
87 #include <blpapi_abstractsession.h>
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
103 #include <blpapi_sessionoptions.h>
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
115 extern "C" {
116 #endif
117 
120  blpapi_SessionOptions_t *sessionOptions,
121  const blpapi_TlsOptions_t *tlsOptions,
122  int remote);
123 
124 #ifdef __cplusplus
125 }
126 
134 namespace BloombergLP {
135 namespace blpapi {
136 
143 class ZfpUtil {
144 
145  public:
146  enum Remote {
149  };
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
180  ("C++", BLPAPI_SDK_VERSION_STRING);
181 
182  SessionOptions so;
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
#define BLPAPI_ZFPUTIL_REMOTE_8194
Definition: blpapi_defs.h:153
#define BLPAPI_SDK_VERSION_STRING
Definition: blpapi_versionmacros.h:69
Common definitions used by the library.
Definition: blpapi_tlsoptions.h:188
Remote
Definition: blpapi_zfputil.h:146
blpapi_TlsOptions_t * handle() const
Definition: blpapi_tlsoptions.h:344
Definition: blpapi_abstractsession.h:195
#define BLPAPI_CALL(FUNCNAME)
Definition: blpapi_call.h:353
blpapi_SessionOptions_t * handle() const
Definition: blpapi_sessionoptions.h:1401
Use port 8196.
Definition: blpapi_zfputil.h:148
static void throwOnError(int errorCode)
Definition: blpapi_exception.h:526
Definition: blpapi_zfputil.h:143
int blpapi_ZfpUtil_getOptionsForLeasedLines(blpapi_SessionOptions_t *sessionOptions, const blpapi_TlsOptions_t *tlsOptions, int remote)
static SessionOptions getZfpOptionsForLeasedLines(Remote remote, const TlsOptions &tlsOptions)
Definition: blpapi_zfputil.h:175
Provide preprocessor macros for BLPAPI library version information.
Use port 8194.
Definition: blpapi_zfputil.h:147
struct blpapi_TlsOptions blpapi_TlsOptions_t
Definition: blpapi_types.h:178
BLPAPI_EXPORT int blpapi_UserAgentInfo_setNativeSdkLanguageAndVersion(const char *language, const char *version)
Maintain client credentials and trust material.
Defines Exceptions that can be thrown by the blpapi library.
A common interface shared between publish and consumer sessions.
#define BLPAPI_ZFPUTIL_REMOTE_8196
Definition: blpapi_defs.h:154
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
struct blpapi_SessionOptions blpapi_SessionOptions_t
Definition: blpapi_types.h:172
Provide functions for dispatchtbl.
Definition: blpapi_sessionoptions.h:431
A common interface shared between publisher and consumer sessions.