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