BLPAPI C++  3.24.10
blpapi_names.h
Go to the documentation of this file.
1 /* Copyright 2021. 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_NAMES
29 #define INCLUDED_BLPAPI_NAMES
30 
64 #ifdef __cplusplus
65 
66 #include <blpapi_name.h>
67 
75 namespace BloombergLP {
76 namespace blpapi {
77 
86 struct Names {
87 
88  static const Name& slowConsumerWarning();
89  static const Name& slowConsumerWarningCleared();
90  static const Name& dataLoss();
91  static const Name& requestTemplateAvailable();
92  static const Name& requestTemplatePending();
93  static const Name& requestTemplateTerminated();
94  static const Name& subscriptionTerminated();
95  static const Name& subscriptionStarted();
96  static const Name& subscriptionFailure();
97  static const Name& subscriptionStreamsActivated();
98  static const Name& subscriptionStreamsDeactivated();
99  static const Name& requestFailure();
100  static const Name& tokenGenerationSuccess();
101  static const Name& tokenGenerationFailure();
102  static const Name& sessionStarted();
103  static const Name& sessionTerminated();
104  static const Name& sessionStartupFailure();
105  static const Name& sessionConnectionUp();
106  static const Name& sessionConnectionDown();
107  static const Name& serviceOpened();
108  static const Name& serviceOpenFailure();
109  static const Name& serviceRegistered();
110  static const Name& serviceRegisterFailure();
111  static const Name& serviceDeregistered();
112  static const Name& serviceUp();
113  static const Name& serviceDown();
114  static const Name& serviceAvailabilityInfo();
115  static const Name& resolutionSuccess();
116  static const Name& resolutionFailure();
117  static const Name& topicSubscribed();
118  static const Name& topicUnsubscribed();
119  static const Name& topicRecap();
120  static const Name& topicActivated();
121  static const Name& topicDeactivated();
122  static const Name& topicCreated();
123  static const Name& topicCreateFailure();
124  static const Name& topicDeleted();
125  static const Name& topicResubscribed();
126  static const Name& permissionRequest();
127  static const Name& permissionResponse();
128  static const Name& authorizationSuccess();
129  static const Name& authorizationFailure();
130  static const Name& authorizationRevoked();
131 
132 #if __cplusplus >= 201703L || _MSVC_LANG >= 201703L
133 
136  static const Name SlowConsumerWarning;
138  static const Name DataLoss;
143  static const Name SubscriptionStarted;
144  static const Name SubscriptionFailure;
147  static const Name RequestFailure;
150  static const Name SessionStarted;
151  static const Name SessionTerminated;
153  static const Name SessionConnectionUp;
155  static const Name ServiceOpened;
156  static const Name ServiceOpenFailure;
157  static const Name ServiceRegistered;
159  static const Name ServiceDeregistered;
160  static const Name ServiceUp;
161  static const Name ServiceDown;
163  static const Name ResolutionSuccess;
164  static const Name ResolutionFailure;
165  static const Name TopicSubscribed;
166  static const Name TopicUnsubscribed;
167  static const Name TopicRecap;
168  static const Name TopicActivated;
169  static const Name TopicDeactivated;
170  static const Name TopicCreated;
171  static const Name TopicCreateFailure;
172  static const Name TopicDeleted;
173  static const Name TopicResubscribed;
174  static const Name PermissionRequest;
175  static const Name PermissionResponse;
180 #endif
181 };
182 
187 {
188  static const Name name { "SlowConsumerWarning" };
189  return name;
190 }
191 
193 {
194  static const Name name { "SlowConsumerWarningCleared" };
195  return name;
196 }
197 
198 inline const Name& Names::dataLoss()
199 {
200  static const Name name { "DataLoss" };
201  return name;
202 }
203 
205 {
206  static const Name name { "RequestTemplateAvailable" };
207  return name;
208 }
209 
211 {
212  static const Name name { "RequestTemplatePending" };
213  return name;
214 }
215 
217 {
218  static const Name name { "RequestTemplateTerminated" };
219  return name;
220 }
221 
223 {
224  static const Name name { "SubscriptionTerminated" };
225  return name;
226 }
227 
229 {
230  static const Name name { "SubscriptionStarted" };
231  return name;
232 }
233 
235 {
236  static const Name name { "SubscriptionFailure" };
237  return name;
238 }
239 
241 {
242  static const Name name { "SubscriptionStreamsActivated" };
243  return name;
244 }
245 
247 {
248  static const Name name { "SubscriptionStreamsDeactivated" };
249  return name;
250 }
251 
253 {
254  static const Name name { "RequestFailure" };
255  return name;
256 }
257 
259 {
260  static const Name name { "TokenGenerationSuccess" };
261  return name;
262 }
263 
265 {
266  static const Name name { "TokenGenerationFailure" };
267  return name;
268 }
269 
271 {
272  static const Name name { "SessionStarted" };
273  return name;
274 }
275 
277 {
278  static const Name name { "SessionTerminated" };
279  return name;
280 }
281 
283 {
284  static const Name name { "SessionStartupFailure" };
285  return name;
286 }
287 
289 {
290  static const Name name { "SessionConnectionUp" };
291  return name;
292 }
293 
295 {
296  static const Name name { "SessionConnectionDown" };
297  return name;
298 }
299 
300 inline const Name& Names::serviceOpened()
301 {
302  static const Name name { "ServiceOpened" };
303  return name;
304 }
305 
307 {
308  static const Name name { "ServiceOpenFailure" };
309  return name;
310 }
311 
313 {
314  static const Name name { "ServiceRegistered" };
315  return name;
316 }
317 
319 {
320  static const Name name { "ServiceRegisterFailure" };
321  return name;
322 }
323 
325 {
326  static const Name name { "ServiceDeregistered" };
327  return name;
328 }
329 
330 inline const Name& Names::serviceUp()
331 {
332  static const Name name { "ServiceUp" };
333  return name;
334 }
335 
336 inline const Name& Names::serviceDown()
337 {
338  static const Name name { "ServiceDown" };
339  return name;
340 }
341 
343 {
344  static const Name name { "ServiceAvailabilityInfo" };
345  return name;
346 }
347 
349 {
350  static const Name name { "ResolutionSuccess" };
351  return name;
352 }
353 
355 {
356  static const Name name { "ResolutionFailure" };
357  return name;
358 }
359 
361 {
362  static const Name name { "TopicSubscribed" };
363  return name;
364 }
365 
367 {
368  static const Name name { "TopicUnsubscribed" };
369  return name;
370 }
371 
372 inline const Name& Names::topicRecap()
373 {
374  static const Name name { "TopicRecap" };
375  return name;
376 }
377 
379 {
380  static const Name name { "TopicActivated" };
381  return name;
382 }
383 
385 {
386  static const Name name { "TopicDeactivated" };
387  return name;
388 }
389 
390 inline const Name& Names::topicCreated()
391 {
392  static const Name name { "TopicCreated" };
393  return name;
394 }
395 
397 {
398  static const Name name { "TopicCreateFailure" };
399  return name;
400 }
401 
402 inline const Name& Names::topicDeleted()
403 {
404  static const Name name { "TopicDeleted" };
405  return name;
406 }
407 
409 {
410  static const Name name { "TopicResubscribed" };
411  return name;
412 }
413 
415 {
416  static const Name name { "PermissionRequest" };
417  return name;
418 }
419 
421 {
422  static const Name name { "PermissionResponse" };
423  return name;
424 }
425 
427 {
428  static const Name name { "AuthorizationSuccess" };
429  return name;
430 }
431 
433 {
434  static const Name name { "AuthorizationFailure" };
435  return name;
436 }
437 
439 {
440  static const Name name { "AuthorizationRevoked" };
441  return name;
442 }
443 
444 #if __cplusplus >= 201703L || _MSVC_LANG >= 201703L
445 inline const Name Names::SlowConsumerWarning { slowConsumerWarning() };
446 
447 inline const Name Names::SlowConsumerWarningCleared {
448  slowConsumerWarningCleared()
449 };
450 
451 inline const Name Names::DataLoss { dataLoss() };
452 
453 inline const Name Names::RequestTemplateAvailable {
454  requestTemplateAvailable()
455 };
456 
457 inline const Name Names::RequestTemplatePending { requestTemplatePending() };
458 
459 inline const Name Names::RequestTemplateTerminated {
460  requestTemplateTerminated()
461 };
462 
463 inline const Name Names::SubscriptionTerminated { subscriptionTerminated() };
464 
465 inline const Name Names::SubscriptionStarted { subscriptionStarted() };
466 
467 inline const Name Names::SubscriptionFailure { subscriptionFailure() };
468 
469 inline const Name Names::SubscriptionStreamsActivated {
470  subscriptionStreamsActivated()
471 };
472 
473 inline const Name Names::SubscriptionStreamsDeactivated {
474  subscriptionStreamsDeactivated()
475 };
476 
477 inline const Name Names::RequestFailure { requestFailure() };
478 
479 inline const Name Names::TokenGenerationSuccess { tokenGenerationSuccess() };
480 
481 inline const Name Names::TokenGenerationFailure { tokenGenerationFailure() };
482 
483 inline const Name Names::SessionStarted { sessionStarted() };
484 
485 inline const Name Names::SessionTerminated { sessionTerminated() };
486 
487 inline const Name Names::SessionStartupFailure { sessionStartupFailure() };
488 
489 inline const Name Names::SessionConnectionUp { sessionConnectionUp() };
490 
491 inline const Name Names::SessionConnectionDown { sessionConnectionDown() };
492 
493 inline const Name Names::ServiceOpened { serviceOpened() };
494 
495 inline const Name Names::ServiceOpenFailure { serviceOpenFailure() };
496 
497 inline const Name Names::ServiceRegistered { serviceRegistered() };
498 
499 inline const Name Names::ServiceRegisterFailure { serviceRegisterFailure() };
500 
501 inline const Name Names::ServiceDeregistered { serviceDeregistered() };
502 
503 inline const Name Names::ServiceUp { serviceUp() };
504 
505 inline const Name Names::ServiceDown { serviceDown() };
506 
507 inline const Name Names::ServiceAvailabilityInfo { serviceAvailabilityInfo() };
508 
509 inline const Name Names::ResolutionSuccess { resolutionSuccess() };
510 
511 inline const Name Names::ResolutionFailure { resolutionFailure() };
512 
513 inline const Name Names::TopicSubscribed { topicSubscribed() };
514 
515 inline const Name Names::TopicUnsubscribed { topicUnsubscribed() };
516 
517 inline const Name Names::TopicRecap { topicRecap() };
518 
519 inline const Name Names::TopicActivated { topicActivated() };
520 
521 inline const Name Names::TopicDeactivated { topicDeactivated() };
522 
523 inline const Name Names::TopicCreated { topicCreated() };
524 
525 inline const Name Names::TopicCreateFailure { topicCreateFailure() };
526 
527 inline const Name Names::TopicDeleted { topicDeleted() };
528 
529 inline const Name Names::TopicResubscribed { topicResubscribed() };
530 
531 inline const Name Names::PermissionRequest { permissionRequest() };
532 
533 inline const Name Names::PermissionResponse { permissionResponse() };
534 
535 inline const Name Names::AuthorizationSuccess { authorizationSuccess() };
536 
537 inline const Name Names::AuthorizationFailure { authorizationFailure() };
538 
539 inline const Name Names::AuthorizationRevoked { authorizationRevoked() };
540 
541 #endif
542 
543 } // close namespace blpapi
544 } // close namespace BloombergLP
545 
546 #endif // ifdef __cplusplus
547 
548 #endif // #ifndef INCLUDED_BLPAPI_NAMES
static const Name ServiceOpened
Definition: blpapi_names.h:155
static const Name & serviceDeregistered()
Definition: blpapi_names.h:324
static const Name & serviceDown()
Definition: blpapi_names.h:336
static const Name & subscriptionTerminated()
Definition: blpapi_names.h:222
static const Name & sessionConnectionUp()
Definition: blpapi_names.h:288
static const Name & serviceOpened()
Definition: blpapi_names.h:300
static const Name & topicDeleted()
Definition: blpapi_names.h:402
static const Name & requestTemplateTerminated()
Definition: blpapi_names.h:216
static const Name SessionStarted
Definition: blpapi_names.h:150
static const Name SlowConsumerWarningCleared
Definition: blpapi_names.h:137
static const Name SessionTerminated
Definition: blpapi_names.h:151
static const Name & sessionStarted()
Definition: blpapi_names.h:270
Definition: blpapi_names.h:86
static const Name SubscriptionStreamsActivated
Definition: blpapi_names.h:145
static const Name & resolutionFailure()
Definition: blpapi_names.h:354
static const Name TopicDeleted
Definition: blpapi_names.h:172
Definition: blpapi_abstractsession.h:187
static const Name SessionConnectionDown
Definition: blpapi_names.h:154
Definition: blpapi_name.h:150
static const Name SubscriptionFailure
Definition: blpapi_names.h:144
static const Name PermissionResponse
Definition: blpapi_names.h:175
static const Name & subscriptionStreamsDeactivated()
Definition: blpapi_names.h:246
static const Name & slowConsumerWarningCleared()
Definition: blpapi_names.h:192
static const Name SubscriptionTerminated
Definition: blpapi_names.h:142
static const Name DataLoss
Definition: blpapi_names.h:138
static const Name & authorizationRevoked()
Definition: blpapi_names.h:438
static const Name PermissionRequest
Definition: blpapi_names.h:174
static const Name & authorizationFailure()
Definition: blpapi_names.h:432
static const Name AuthorizationRevoked
Definition: blpapi_names.h:178
static const Name ResolutionSuccess
Definition: blpapi_names.h:163
static const Name & topicUnsubscribed()
Definition: blpapi_names.h:366
static const Name & requestTemplateAvailable()
Definition: blpapi_names.h:204
static const Name SessionStartupFailure
Definition: blpapi_names.h:152
static const Name RequestFailure
Definition: blpapi_names.h:147
static const Name & serviceRegisterFailure()
Definition: blpapi_names.h:318
static const Name & topicActivated()
Definition: blpapi_names.h:378
static const Name & topicRecap()
Definition: blpapi_names.h:372
static const Name TopicCreateFailure
Definition: blpapi_names.h:171
static const Name ServiceUp
Definition: blpapi_names.h:160
static const Name & serviceRegistered()
Definition: blpapi_names.h:312
static const Name RequestTemplatePending
Definition: blpapi_names.h:140
static const Name TopicActivated
Definition: blpapi_names.h:168
static const Name & permissionResponse()
Definition: blpapi_names.h:420
static const Name TopicCreated
Definition: blpapi_names.h:170
static const Name & serviceUp()
Definition: blpapi_names.h:330
static const Name ServiceDeregistered
Definition: blpapi_names.h:159
static const Name & resolutionSuccess()
Definition: blpapi_names.h:348
static const Name RequestTemplateTerminated
Definition: blpapi_names.h:141
static const Name & serviceAvailabilityInfo()
Definition: blpapi_names.h:342
static const Name & subscriptionStarted()
Definition: blpapi_names.h:228
static const Name SlowConsumerWarning
Definition: blpapi_names.h:136
static const Name TopicSubscribed
Definition: blpapi_names.h:165
static const Name ServiceDown
Definition: blpapi_names.h:161
static const Name & authorizationSuccess()
Definition: blpapi_names.h:426
static const Name & requestFailure()
Definition: blpapi_names.h:252
static const Name & serviceOpenFailure()
Definition: blpapi_names.h:306
static const Name & slowConsumerWarning()
Definition: blpapi_names.h:186
static const Name & topicResubscribed()
Definition: blpapi_names.h:408
static const Name & requestTemplatePending()
Definition: blpapi_names.h:210
static const Name & sessionTerminated()
Definition: blpapi_names.h:276
static const Name ResolutionFailure
Definition: blpapi_names.h:164
static const Name & topicSubscribed()
Definition: blpapi_names.h:360
static const Name ServiceAvailabilityInfo
Definition: blpapi_names.h:162
static const Name ServiceRegistered
Definition: blpapi_names.h:157
static const Name AuthorizationSuccess
Definition: blpapi_names.h:176
static const Name AuthorizationFailure
Definition: blpapi_names.h:177
static const Name & topicCreateFailure()
Definition: blpapi_names.h:396
static const Name TopicDeactivated
Definition: blpapi_names.h:169
static const Name SubscriptionStreamsDeactivated
Definition: blpapi_names.h:146
static const Name TopicRecap
Definition: blpapi_names.h:167
static const Name TopicResubscribed
Definition: blpapi_names.h:173
static const Name SessionConnectionUp
Definition: blpapi_names.h:153
static const Name & permissionRequest()
Definition: blpapi_names.h:414
static const Name RequestTemplateAvailable
Definition: blpapi_names.h:139
static const Name & tokenGenerationFailure()
Definition: blpapi_names.h:264
static const Name ServiceRegisterFailure
Definition: blpapi_names.h:158
static const Name ServiceOpenFailure
Definition: blpapi_names.h:156
static const Name & subscriptionFailure()
Definition: blpapi_names.h:234
static const Name & dataLoss()
Definition: blpapi_names.h:198
static const Name & topicDeactivated()
Definition: blpapi_names.h:384
static const Name & sessionConnectionDown()
Definition: blpapi_names.h:294
static const Name TokenGenerationSuccess
Definition: blpapi_names.h:148
Provide a representation of strings for use as container keys.
static const Name & topicCreated()
Definition: blpapi_names.h:390
static const Name TopicUnsubscribed
Definition: blpapi_names.h:166
static const Name SubscriptionStarted
Definition: blpapi_names.h:143
static const Name TokenGenerationFailure
Definition: blpapi_names.h:149
static const Name & sessionStartupFailure()
Definition: blpapi_names.h:282
static const Name & tokenGenerationSuccess()
Definition: blpapi_names.h:258
static const Name & subscriptionStreamsActivated()
Definition: blpapi_names.h:240