28#ifndef INCLUDED_BLPAPI_IDENTITY
29#define INCLUDED_BLPAPI_IDENTITY
78 const int *entitlementIds,
79 size_t numEntitlements,
80 int *failedEntitlements,
81 int *failedEntitlementsCount);
184 const int *entitlementIds,
185 size_t numEntitlements)
const;
196 const int *entitlementIds,
197 size_t numEntitlements,
198 int *failedEntitlements,
199 int *failedEntitlementsCount)
const;
221 int *failedEntitlements,
222 int *failedEntitlementsCount)
const;
281 : d_handle_p(newHandle)
286 : d_handle_p(original.d_handle_p)
298 swap(tmp.d_handle_p, d_handle_p);
303inline void Identity::addRef()
310inline void Identity::release()
318 const int *entitlementIds,
319 size_t numEntitlements)
const
333 const int *entitlementIds,
334 size_t numEntitlements,
335 int *failedEntitlements,
336 int *failedEntitlementsCount)
const
344 failedEntitlementsCount)
351 int *failedEntitlements,
352 int *failedEntitlementsCount)
const
360 failedEntitlementsCount)
378 return static_cast<SeatType>(seatType);
Common definitions used by the library.
#define BLPAPI_SEATTYPE_INVALID_SEAT
Definition blpapi_defs.h:119
#define BLPAPI_SEATTYPE_NONBPS
Definition blpapi_defs.h:121
#define BLPAPI_EXPORT
Definition blpapi_defs.h:171
#define BLPAPI_SEATTYPE_BPS
Definition blpapi_defs.h:120
Defines Exceptions that can be thrown by the blpapi library.
BLPAPI_EXPORT int blpapi_Identity_hasEntitlements(const blpapi_Identity_t *handle, const blpapi_Service_t *service, const blpapi_Element_t *eidElement, const int *entitlementIds, size_t numEntitlements, int *failedEntitlements, int *failedEntitlementsCount)
BLPAPI_EXPORT int blpapi_Identity_getSeatType(const blpapi_Identity_t *handle, int *seatType)
BLPAPI_EXPORT int blpapi_Identity_isAuthorized(const blpapi_Identity_t *handle, const blpapi_Service_t *service)
BLPAPI_EXPORT void blpapi_Identity_release(blpapi_Identity_t *handle)
BLPAPI_EXPORT int blpapi_Identity_addRef(blpapi_Identity_t *handle)
A service which provides access to API data (provide or consume).
Definition blpapi_element.h:465
blpapi_Element_t * handle()
Definition blpapi_element.h:1903
static void throwOnError(int errorCode)
Definition blpapi_exception.h:526
Definition blpapi_identity.h:131
Identity()
Definition blpapi_identity.h:275
~Identity()
Definition blpapi_identity.h:291
SeatType
Definition blpapi_identity.h:139
@ NONBPS
Not permissioned for Bloomberg Professional Service.
Definition blpapi_identity.h:147
@ BPS
Bloomberg Professional Service.
Definition blpapi_identity.h:144
@ INVALID_SEAT
Definition blpapi_identity.h:140
bool isValid() const
Definition blpapi_identity.h:365
bool hasEntitlements(const Service &service, const int *entitlementIds, size_t numEntitlements) const
Definition blpapi_identity.h:317
blpapi_Identity_t * handle() const
Definition blpapi_identity.h:381
Identity & operator=(const Identity &)
Definition blpapi_identity.h:293
SeatType getSeatType() const
Definition blpapi_identity.h:373
bool isAuthorized(const Service &service) const
Definition blpapi_identity.h:367
Definition blpapi_service.h:304
blpapi_Service_t * handle() const
Definition blpapi_service.h:706
void swap(Event::iterator &lhs, Event::iterator &rhs)
Swap the contents of the lhs and rhs iterators.
Definition blpapi_event.h:723
struct blpapi_Service blpapi_Service_t
Definition blpapi_types.h:166
struct blpapi_Identity blpapi_Identity_t
Definition blpapi_types.h:188
struct blpapi_Element blpapi_Element_t
Definition blpapi_types.h:136
Definition blpapi_abstractsession.h:195