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