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