BLPAPI C++  3.24.10
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_CALL
87 #include <blpapi_call.h>
88 #endif
89 
90 #ifndef INCLUDED_BLPAPI_EXCEPTION
91 #include <blpapi_exception.h>
92 #endif
93 
94 #ifndef INCLUDED_BLPAPI_DEFS
95 #include <blpapi_defs.h>
96 #endif
97 
98 #ifndef INCLUDED_BLPAPI_SESSIONOPTIONS
99 #include <blpapi_sessionoptions.h>
100 #endif
101 
102 #ifndef INCLUDED_BLPAPI_TLSOPTIONS
103 #include <blpapi_tlsoptions.h>
104 #endif
105 
106 #ifdef __cplusplus
107 extern "C" {
108 #endif
109 
112  blpapi_SessionOptions_t *sessionOptions,
113  const blpapi_TlsOptions_t *tlsOptions,
114  int remote);
115 
116 #ifdef __cplusplus
117 }
118 
126 namespace BloombergLP {
127 namespace blpapi {
128 
135 class ZfpUtil {
136 
137  public:
138  enum Remote {
141  };
142 
144  Remote remote, const TlsOptions& tlsOptions);
155 };
156 
160 // ============================================================================
161 // INLINE FUNCTION DEFINITIONS
162 // ============================================================================
163 
164 // -------------
165 // class ZfpUtil
166 // -------------
168  Remote remote, const TlsOptions& tlsOptions)
169 {
170  SessionOptions so;
173  so.handle(), tlsOptions.handle(), remote));
174  return so;
175 }
176 
177 } // close namespace blpapi
178 } // close namespace BloombergLP
179 
180 #endif // #ifdef __cplusplus
181 #endif // #ifndef INCLUDED_BLPAPI_ZFPUTIL
#define BLPAPI_ZFPUTIL_REMOTE_8194
Definition: blpapi_defs.h:153
Common definitions used by the library.
Definition: blpapi_tlsoptions.h:188
Remote
Definition: blpapi_zfputil.h:138
blpapi_TlsOptions_t * handle() const
Definition: blpapi_tlsoptions.h:344
Definition: blpapi_abstractsession.h:187
#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:140
static void throwOnError(int errorCode)
Definition: blpapi_exception.h:526
Definition: blpapi_zfputil.h:135
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:167
Use port 8194.
Definition: blpapi_zfputil.h:139
struct blpapi_TlsOptions blpapi_TlsOptions_t
Definition: blpapi_types.h:178
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