BLPAPI C++ 3.26.5
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
35
36#ifndef INCLUDED_BLPAPI_DEFS
37#define INCLUDED_BLPAPI_DEFS
38
56
57#include <limits.h>
58
60
63
64#define BLPAPI_CORRELATION_TYPE_UNSET 0
65#define BLPAPI_CORRELATION_TYPE_INT 1
66#define BLPAPI_CORRELATION_TYPE_POINTER 2
67#define BLPAPI_CORRELATION_TYPE_AUTOGEN 3
68#define BLPAPI_CORRELATION_MAX_CLASS_ID ((1 << 16) - 1)
69#define BLPAPI_CORRELATION_INTERNAL_CLASS_FOREIGN_OBJECT 1
70
71#define BLPAPI_MANAGEDPTR_COPY 1
72#define BLPAPI_MANAGEDPTR_DESTROY (-1)
73#define BLPAPI_MANAGEDPTR_IMPOSSIBLE_OPERATION 0
74
75#define BLPAPI_DATETIME_YEAR_PART 0x1
76#define BLPAPI_DATETIME_MONTH_PART 0x2
77#define BLPAPI_DATETIME_DAY_PART 0x4
78#define BLPAPI_DATETIME_OFFSET_PART 0x8
79#define BLPAPI_DATETIME_HOURS_PART 0x10
80#define BLPAPI_DATETIME_MINUTES_PART 0x20
81#define BLPAPI_DATETIME_SECONDS_PART 0x40
82#define BLPAPI_DATETIME_MILLISECONDS_PART 0x80
83#define BLPAPI_DATETIME_FRACSECONDS_PART 0x80
84#define BLPAPI_DATETIME_DATE_PART \
85 (BLPAPI_DATETIME_YEAR_PART | BLPAPI_DATETIME_MONTH_PART \
86 | BLPAPI_DATETIME_DAY_PART)
87#define BLPAPI_DATETIME_TIME_PART \
88 (BLPAPI_DATETIME_HOURS_PART | BLPAPI_DATETIME_MINUTES_PART \
89 | BLPAPI_DATETIME_SECONDS_PART)
90#define BLPAPI_DATETIME_TIMEMILLI_PART \
91 (BLPAPI_DATETIME_TIME_PART | BLPAPI_DATETIME_MILLISECONDS_PART)
92#define BLPAPI_DATETIME_TIMEFRACSECONDS_PART \
93 (BLPAPI_DATETIME_TIME_PART | BLPAPI_DATETIME_FRACSECONDS_PART)
94
95#define BLPAPI_EVENTTYPE_ADMIN 1
96#define BLPAPI_EVENTTYPE_SESSION_STATUS 2
97#define BLPAPI_EVENTTYPE_SUBSCRIPTION_STATUS 3
98#define BLPAPI_EVENTTYPE_REQUEST_STATUS 4
99#define BLPAPI_EVENTTYPE_RESPONSE 5
100#define BLPAPI_EVENTTYPE_PARTIAL_RESPONSE 6
101#define BLPAPI_EVENTTYPE_SUBSCRIPTION_DATA 8
102#define BLPAPI_EVENTTYPE_SERVICE_STATUS 9
103#define BLPAPI_EVENTTYPE_TIMEOUT 10
104#define BLPAPI_EVENTTYPE_AUTHORIZATION_STATUS 11
105#define BLPAPI_EVENTTYPE_RESOLUTION_STATUS 12
106#define BLPAPI_EVENTTYPE_TOPIC_STATUS 13
107#define BLPAPI_EVENTTYPE_TOKEN_STATUS 14
108#define BLPAPI_EVENTTYPE_REQUEST 15
109
110#define BLPAPI_ELEMENT_INDEX_END 0xffffffff
111
112#define BLPAPI_STATUS_ACTIVE 0
113#define BLPAPI_STATUS_DEPRECATED 1
114#define BLPAPI_STATUS_INACTIVE 2
115#define BLPAPI_STATUS_PENDING_DEPRECATION 3
116
117#define BLPAPI_SUBSCRIPTIONSTATUS_UNSUBSCRIBED 0
118#define BLPAPI_SUBSCRIPTIONSTATUS_SUBSCRIBING 1
119#define BLPAPI_SUBSCRIPTIONSTATUS_SUBSCRIBED 2
120#define BLPAPI_SUBSCRIPTIONSTATUS_CANCELLED 3
121#define BLPAPI_SUBSCRIPTIONSTATUS_PENDING_CANCELLATION 4
122
123#define BLPAPI_CLIENTMODE_AUTO 0
124#define BLPAPI_CLIENTMODE_DAPI 1
125#define BLPAPI_CLIENTMODE_SAPI 2
126#define BLPAPI_CLIENTMODE_COMPAT_33X 16
127
128#define BLPAPI_ELEMENTDEFINITION_UNBOUNDED -1
129
130#define BLPAPI_RESOLVEMODE_DONT_REGISTER_SERVICES 0
131#define BLPAPI_RESOLVEMODE_AUTO_REGISTER_SERVICES 1
132
133#define BLPAPI_SEATTYPE_INVALID_SEAT -1
134#define BLPAPI_SEATTYPE_BPS 0
135#define BLPAPI_SEATTYPE_NONBPS 1
136
137#define BLPAPI_SERVICEREGISTRATIONOPTIONS_PRIORITY_LOW 0
138#define BLPAPI_SERVICEREGISTRATIONOPTIONS_PRIORITY_MEDIUM INT_MAX / 2
139#define BLPAPI_SERVICEREGISTRATIONOPTIONS_PRIORITY_HIGH INT_MAX
140
141#define BLPAPI_REGISTRATIONPARTS_DEFAULT 0x1
142#define BLPAPI_REGISTRATIONPARTS_PUBLISHING 0x2
143#define BLPAPI_REGISTRATIONPARTS_OPERATIONS 0x4
144#define BLPAPI_REGISTRATIONPARTS_SUBSCRIBER_RESOLUTION 0x8
145#define BLPAPI_REGISTRATIONPARTS_PUBLISHER_RESOLUTION 0x10
146
147#define BLPAPI_TOPICLIST_NOT_CREATED 0
148#define BLPAPI_TOPICLIST_CREATED 1
149#define BLPAPI_TOPICLIST_FAILURE 2
150
151#define BLPAPI_RESOLUTIONLIST_UNRESOLVED 0
152#define BLPAPI_RESOLUTIONLIST_RESOLVED 1
153#define BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_BAD_SERVICE 2
154#define BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_SERVICE_AUTHORIZATION_FAILED 3
155#define BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_BAD_TOPIC 4
156#define BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_TOPIC_AUTHORIZATION_FAILED 5
157
158#define BLPAPI_MESSAGE_FRAGMENT_NONE 0
159#define BLPAPI_MESSAGE_FRAGMENT_START 1
160#define BLPAPI_MESSAGE_FRAGMENT_INTERMEDIATE 2
161#define BLPAPI_MESSAGE_FRAGMENT_END 3
162
163#define BLPAPI_MESSAGE_RECAPTYPE_NONE 0
164#define BLPAPI_MESSAGE_RECAPTYPE_SOLICITED 1
165#define BLPAPI_MESSAGE_RECAPTYPE_UNSOLICITED 2
166
167#define BLPAPI_ZFPUTIL_REMOTE_8194 8194
168#define BLPAPI_ZFPUTIL_REMOTE_8196 8196
169
170#define BLPAPI_IDENTITYUTIL_USERTYPE_UNKNOWN (-2)
171#define BLPAPI_IDENTITYUTIL_USERTYPE_APP_PORTAL 8
172#define BLPAPI_IDENTITYUTIL_USERTYPE_SANDBOX_EXCEL 9
173
174#define BLPAPI_SUBSCRIPTIONPREPROCESS_INVALID_SUBSCRIPTION_STRING 1
175#define BLPAPI_SUBSCRIPTIONPREPROCESS_CORRELATIONID_ERROR 2
176
177#if defined(_WIN32) \
178 || defined(__WIN32__) && !(defined(cygwin) || defined(__cygwin))
179#ifdef BLPAPI_BUILD
180#define BLPAPI_EXPORT __declspec(dllexport)
181#else
182#define BLPAPI_EXPORT __declspec(dllimport)
183#endif
184#else
185#define BLPAPI_EXPORT
186#endif
187
190
191#endif // #ifndef INCLUDED_BLPAPI_DEFS