28#ifndef INCLUDED_BLPAPI_IDENTITY
29#define INCLUDED_BLPAPI_IDENTITY
78 const int *entitlementIds,
79 size_t numEntitlements,
80 int *failedEntitlements,
81 int *failedEntitlementsCount);
183 const int *entitlementIds,
184 size_t numEntitlements)
const;
195 const int *entitlementIds,
196 size_t numEntitlements,
197 int *failedEntitlements,
198 int *failedEntitlementsCount)
const;
220 int *failedEntitlements,
221 int *failedEntitlementsCount)
const;
280 : d_handle_p(newHandle)
285 : d_handle_p(original.d_handle_p)
297 swap(tmp.d_handle_p, d_handle_p);
302inline void Identity::addRef()
309inline void Identity::release()
317 const int *entitlementIds,
318 size_t numEntitlements)
const
332 const int *entitlementIds,
333 size_t numEntitlements,
334 int *failedEntitlements,
335 int *failedEntitlementsCount)
const
343 failedEntitlementsCount)
350 int *failedEntitlements,
351 int *failedEntitlementsCount)
const
359 failedEntitlementsCount)
377 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:274
~Identity()
Definition blpapi_identity.h:290
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:364
bool hasEntitlements(const Service &service, const int *entitlementIds, size_t numEntitlements) const
Definition blpapi_identity.h:316
blpapi_Identity_t * handle() const
Definition blpapi_identity.h:380
Identity & operator=(const Identity &)
Definition blpapi_identity.h:292
SeatType getSeatType() const
Definition blpapi_identity.h:372
bool isAuthorized(const Service &service) const
Definition blpapi_identity.h:366
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