38#ifndef INCLUDED_BLPAPI_IDENTITY
39#define INCLUDED_BLPAPI_IDENTITY
96void blpapi_Identity_release(blpapi_Identity_t *handle);
110int blpapi_Identity_addRef(blpapi_Identity_t *handle);
138int blpapi_Identity_hasEntitlements(
const blpapi_Identity_t *handle,
139 const blpapi_Service_t *service,
140 const blpapi_Element_t *eidElement,
141 const int *entitlementIds,
142 size_t numEntitlements,
143 int *failedEntitlements,
144 int *failedEntitlementsCount);
157int blpapi_Identity_isAuthorized(
158 const blpapi_Identity_t *handle,
const blpapi_Service_t *service);
172int blpapi_Identity_getSeatType(
173 const blpapi_Identity_t *handle,
int *seatType);
219 blpapi_Identity_t *d_handle_p;
230 BPS = BLPAPI_SEATTYPE_BPS,
238 explicit Identity(blpapi_Identity_t *handle);
269 const int *entitlementIds,
270 size_t numEntitlements)
const;
281 const int *entitlementIds,
282 size_t numEntitlements,
283 int *failedEntitlements,
284 int *failedEntitlementsCount)
const;
306 int *failedEntitlements,
307 int *failedEntitlementsCount)
const;
349 blpapi_Identity_t *handle()
const;
370 : d_handle_p(newHandle)
375 : d_handle_p(original.d_handle_p)
387 swap(tmp.d_handle_p, d_handle_p);
392inline void Identity::addRef()
395 blpapi_Identity_addRef(d_handle_p);
399inline void Identity::release()
402 blpapi_Identity_release(d_handle_p);
407 const int *entitlementIds,
408 size_t numEntitlements)
const
410 return blpapi_Identity_hasEntitlements(d_handle_p,
422 const int *entitlementIds,
423 size_t numEntitlements,
424 int *failedEntitlements,
425 int *failedEntitlementsCount)
const
427 return blpapi_Identity_hasEntitlements(d_handle_p,
433 failedEntitlementsCount)
440 int *failedEntitlements,
441 int *failedEntitlementsCount)
const
443 return blpapi_Identity_hasEntitlements(d_handle_p,
445 entitlementIds.handle(),
449 failedEntitlementsCount)
458 return blpapi_Identity_isAuthorized(d_handle_p, service.handle()) ? true
464 int seatType = BLPAPI_SEATTYPE_INVALID_SEAT;
466 blpapi_Identity_getSeatType(d_handle_p, &seatType));
467 return static_cast<SeatType>(seatType);
471inline blpapi_Identity_t *Identity::handle()
const {
return d_handle_p; }
Common definitions used by the library.
Defines Exceptions that can be thrown by the blpapi library.
A service which provides access to API data (provide or consume).
Definition blpapi_element.h:1098
static void throwOnError(int errorCode)
Definition blpapi_exception.h:556
Definition blpapi_identity.h:217
Identity()
Definition blpapi_identity.h:364
~Identity()
Definition blpapi_identity.h:380
SeatType
Definition blpapi_identity.h:225
@ NONBPS
Not permissioned for Bloomberg Professional Service.
Definition blpapi_identity.h:233
@ BPS
Bloomberg Professional Service.
Definition blpapi_identity.h:230
@ INVALID_SEAT
Definition blpapi_identity.h:226
bool isValid() const
Definition blpapi_identity.h:454
bool hasEntitlements(const Service &service, const int *entitlementIds, size_t numEntitlements) const
Definition blpapi_identity.h:406
Identity & operator=(const Identity &)
Definition blpapi_identity.h:382
Identity(blpapi_Identity_t *handle)
Definition blpapi_identity.h:369
SeatType getSeatType() const
Definition blpapi_identity.h:462
bool isAuthorized(const Service &service) const
Definition blpapi_identity.h:456
Definition blpapi_service.h:619
void swap(Event::iterator &lhs, Event::iterator &rhs)
Swap the contents of the lhs and rhs iterators.
Definition blpapi_event.h:860
Definition blpapi_abstractsession.h:452
Definition blpapi_abstractsession.h:451