BLPAPI C++ 3.26.6
Loading...
Searching...
No Matches
blpapi_defs.h
Go to the documentation of this file.
1/* Copyright 2012. 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_DEFS
39#define INCLUDED_BLPAPI_DEFS
40
56
57#include <limits.h>
58
60
63
65#define BLPAPI_CORRELATION_TYPE_UNSET 0
67#define BLPAPI_CORRELATION_TYPE_INT 1
69#define BLPAPI_CORRELATION_TYPE_POINTER 2
71#define BLPAPI_CORRELATION_TYPE_AUTOGEN 3
73#define BLPAPI_CORRELATION_MAX_CLASS_ID ((1 << 16) - 1)
75#define BLPAPI_CORRELATION_INTERNAL_CLASS_FOREIGN_OBJECT 1
76
78#define BLPAPI_MANAGEDPTR_COPY 1
80#define BLPAPI_MANAGEDPTR_DESTROY (-1)
82#define BLPAPI_MANAGEDPTR_IMPOSSIBLE_OPERATION 0
83
85#define BLPAPI_DATETIME_YEAR_PART 0x1
87#define BLPAPI_DATETIME_MONTH_PART 0x2
89#define BLPAPI_DATETIME_DAY_PART 0x4
91#define BLPAPI_DATETIME_OFFSET_PART 0x8
93#define BLPAPI_DATETIME_HOURS_PART 0x10
95#define BLPAPI_DATETIME_MINUTES_PART 0x20
97#define BLPAPI_DATETIME_SECONDS_PART 0x40
99#define BLPAPI_DATETIME_MILLISECONDS_PART 0x80
101#define BLPAPI_DATETIME_FRACSECONDS_PART 0x80
103#define BLPAPI_DATETIME_DATE_PART \
104 (BLPAPI_DATETIME_YEAR_PART | BLPAPI_DATETIME_MONTH_PART \
105 | BLPAPI_DATETIME_DAY_PART)
107#define BLPAPI_DATETIME_TIME_PART \
108 (BLPAPI_DATETIME_HOURS_PART | BLPAPI_DATETIME_MINUTES_PART \
109 | BLPAPI_DATETIME_SECONDS_PART)
111#define BLPAPI_DATETIME_TIMEMILLI_PART \
112 (BLPAPI_DATETIME_TIME_PART | BLPAPI_DATETIME_MILLISECONDS_PART)
114#define BLPAPI_DATETIME_TIMEFRACSECONDS_PART \
115 (BLPAPI_DATETIME_TIME_PART | BLPAPI_DATETIME_FRACSECONDS_PART)
116
118#define BLPAPI_EVENTTYPE_ADMIN 1
120#define BLPAPI_EVENTTYPE_SESSION_STATUS 2
122#define BLPAPI_EVENTTYPE_SUBSCRIPTION_STATUS 3
124#define BLPAPI_EVENTTYPE_REQUEST_STATUS 4
126#define BLPAPI_EVENTTYPE_RESPONSE 5
128#define BLPAPI_EVENTTYPE_PARTIAL_RESPONSE 6
130#define BLPAPI_EVENTTYPE_SUBSCRIPTION_DATA 8
132#define BLPAPI_EVENTTYPE_SERVICE_STATUS 9
134#define BLPAPI_EVENTTYPE_TIMEOUT 10
136#define BLPAPI_EVENTTYPE_AUTHORIZATION_STATUS 11
138#define BLPAPI_EVENTTYPE_RESOLUTION_STATUS 12
140#define BLPAPI_EVENTTYPE_TOPIC_STATUS 13
142#define BLPAPI_EVENTTYPE_TOKEN_STATUS 14
144#define BLPAPI_EVENTTYPE_REQUEST 15
145
147#define BLPAPI_ELEMENT_INDEX_END 0xffffffff
148
150#define BLPAPI_STATUS_ACTIVE 0
152#define BLPAPI_STATUS_DEPRECATED 1
154#define BLPAPI_STATUS_INACTIVE 2
156#define BLPAPI_STATUS_PENDING_DEPRECATION 3
157
159#define BLPAPI_SUBSCRIPTIONSTATUS_UNSUBSCRIBED 0
161#define BLPAPI_SUBSCRIPTIONSTATUS_SUBSCRIBING 1
163#define BLPAPI_SUBSCRIPTIONSTATUS_SUBSCRIBED 2
165#define BLPAPI_SUBSCRIPTIONSTATUS_CANCELLED 3
167#define BLPAPI_SUBSCRIPTIONSTATUS_PENDING_CANCELLATION 4
168
170#define BLPAPI_CLIENTMODE_AUTO 0
172#define BLPAPI_CLIENTMODE_DAPI 1
174#define BLPAPI_CLIENTMODE_SAPI 2
176#define BLPAPI_CLIENTMODE_COMPAT_33X 16
177
179#define BLPAPI_ELEMENTDEFINITION_UNBOUNDED -1
180
182#define BLPAPI_RESOLVEMODE_DONT_REGISTER_SERVICES 0
184#define BLPAPI_RESOLVEMODE_AUTO_REGISTER_SERVICES 1
185
187#define BLPAPI_SEATTYPE_INVALID_SEAT -1
189#define BLPAPI_SEATTYPE_BPS 0
191#define BLPAPI_SEATTYPE_NONBPS 1
192
194#define BLPAPI_SERVICEREGISTRATIONOPTIONS_PRIORITY_LOW 0
196#define BLPAPI_SERVICEREGISTRATIONOPTIONS_PRIORITY_MEDIUM (INT_MAX / 2)
198#define BLPAPI_SERVICEREGISTRATIONOPTIONS_PRIORITY_HIGH INT_MAX
199
201#define BLPAPI_REGISTRATIONPARTS_DEFAULT 0x1
203#define BLPAPI_REGISTRATIONPARTS_PUBLISHING 0x2
205#define BLPAPI_REGISTRATIONPARTS_OPERATIONS 0x4
207#define BLPAPI_REGISTRATIONPARTS_SUBSCRIBER_RESOLUTION 0x8
209#define BLPAPI_REGISTRATIONPARTS_PUBLISHER_RESOLUTION 0x10
210
212#define BLPAPI_TOPICLIST_NOT_CREATED 0
214#define BLPAPI_TOPICLIST_CREATED 1
216#define BLPAPI_TOPICLIST_FAILURE 2
217
219#define BLPAPI_RESOLUTIONLIST_UNRESOLVED 0
221#define BLPAPI_RESOLUTIONLIST_RESOLVED 1
223#define BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_BAD_SERVICE 2
225#define BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_SERVICE_AUTHORIZATION_FAILED 3
227#define BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_BAD_TOPIC 4
229#define BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_TOPIC_AUTHORIZATION_FAILED 5
230
232#define BLPAPI_MESSAGE_FRAGMENT_NONE 0
234#define BLPAPI_MESSAGE_FRAGMENT_START 1
236#define BLPAPI_MESSAGE_FRAGMENT_INTERMEDIATE 2
238#define BLPAPI_MESSAGE_FRAGMENT_END 3
239
241#define BLPAPI_MESSAGE_RECAPTYPE_NONE 0
243#define BLPAPI_MESSAGE_RECAPTYPE_SOLICITED 1
245#define BLPAPI_MESSAGE_RECAPTYPE_UNSOLICITED 2
246
248#define BLPAPI_ZFPUTIL_REMOTE_8194 8194
250#define BLPAPI_ZFPUTIL_REMOTE_8196 8196
251
253#define BLPAPI_IDENTITYUTIL_USERTYPE_UNKNOWN (-2)
255#define BLPAPI_IDENTITYUTIL_USERTYPE_APP_PORTAL 8
257#define BLPAPI_IDENTITYUTIL_USERTYPE_SANDBOX_EXCEL 9
258
260#define BLPAPI_SUBSCRIPTIONPREPROCESS_INVALID_SUBSCRIPTION_STRING 1
262#define BLPAPI_SUBSCRIPTIONPREPROCESS_CORRELATIONID_ERROR 2
263
265#if defined(_WIN32) \
266 || defined(__WIN32__) && !(defined(cygwin) || defined(__cygwin))
267#ifdef BLPAPI_BUILD
268#define BLPAPI_EXPORT __declspec(dllexport)
269#else
270#define BLPAPI_EXPORT __declspec(dllimport)
271#endif
272#else
273#define BLPAPI_EXPORT
274#endif
275
278
279#endif // #ifndef INCLUDED_BLPAPI_DEFS