28 #ifndef INCLUDED_BLPAPI_SERVICE 29 #define INCLUDED_BLPAPI_SERVICE 66 #ifndef INCLUDED_BLPAPI_DEFS 70 #ifndef INCLUDED_BLPAPI_TYPES 74 #ifndef INCLUDED_BLPAPI_SCHEMA 78 #ifndef INCLUDED_BLPAPI_REQUEST 82 #ifndef INCLUDED_BLPAPI_CORRELATIONID 86 #ifndef INCLUDED_BLPAPI_STREAMPROXY 143 const char *nameString,
154 const char *nameString,
165 const char *operation);
170 const char *operation);
182 const blpapi_CorrelationId_t *correlationId,
194 #ifndef INCLUDED_BLPAPI_EXCEPTION 232 const char *
name()
const;
363 const char *authorizationOperation = 0)
const;
397 const char *
name()
const;
505 std::ostream& stream,
int level = 0,
int spacesPerLevel = 4)
const;
545 : d_handle(newHandle)
598 const Name& name)
const 604 d_handle, &definition,
name.impl()));
621 : d_handle(original.d_handle)
627 : d_handle(newHandle)
645 swap(tmp.d_handle, d_handle);
650 inline void Service::addRef()
657 inline void Service::release()
673 const char *authorizationOperation)
const 677 d_handle, &request, authorizationOperation));
702 d_handle, &correlationId.impl(), &event));
748 d_handle, &operation, 0, operationName.
impl())
764 d_handle, &operation, operationName, 0));
772 d_handle, &operation, 0, operationName.
impl()));
790 d_handle, &eventDefinition, definitionName, 0)
801 d_handle, &eventDefinition, 0, definitionName.
impl())
812 d_handle, &eventDefinition, index));
817 const char *definitionName)
const 821 d_handle, &eventDefinition, definitionName, 0));
826 const Name& definitionName)
const 830 d_handle, &eventDefinition, 0, definitionName.
impl()));
844 std::ostream& stream,
int level,
int spacesPerLevel)
const 856 return service.
print(stream, 0, -1);
862 #endif // #ifdef __cplusplus 863 #endif // #ifndef INCLUDED_BLPAPI_SERVICE int blpapi_Service_getEventDefinitionAt(blpapi_Service_t *service, blpapi_SchemaElementDefinition_t **result, size_t index)
const char * description() const
Definition: blpapi_service.h:560
bool hasEventDefinition(const char *name) const
Definition: blpapi_service.h:785
Request createRequest(const char *operation) const
Definition: blpapi_service.h:664
Request createAuthorizationRequest(const char *authorizationOperation=0) const
Definition: blpapi_service.h:672
const char * authorizationServiceName() const
Definition: blpapi_service.h:834
struct blpapi_Request blpapi_Request_t
Definition: blpapi_request.h:67
bool isValid() const
Definition: blpapi_service.h:708
const char * blpapi_Service_name(blpapi_Service_t *service)
struct blpapi_Operation blpapi_Operation_t
Definition: blpapi_types.h:157
Common definitions used by the library.
void swap(Event::iterator &lhs, Event::iterator &rhs)
Swap the contents of the lhs and rhs iterators.
Definition: blpapi_event.h:723
struct blpapi_Event blpapi_Event_t
Definition: blpapi_types.h:139
int blpapi_Operation_numResponseDefinitions(blpapi_Operation_t *operation)
size_t numOperations() const
Definition: blpapi_service.h:728
void blpapi_Service_release(blpapi_Service_t *service)
Definition: blpapi_abstractsession.h:220
int blpapi_Service_createAuthorizationRequest(blpapi_Service_t *service, blpapi_Request_t **request, const char *operation)
Definition: blpapi_name.h:150
#define BLPAPI_CALL(FUNCNAME)
Definition: blpapi_call.h:353
int blpapi_Operation_responseDefinition(blpapi_Operation_t *operation, blpapi_SchemaElementDefinition_t **responseDefinition, size_t index)
Definition: blpapi_service.h:304
int blpapi_Service_createAdminEvent(blpapi_Service_t *service, blpapi_Event_t **event)
int blpapi_Service_getEventDefinition(blpapi_Service_t *service, blpapi_SchemaElementDefinition_t **result, const char *nameString, const blpapi_Name_t *name)
Definition: blpapi_service.h:313
const char * blpapi_Service_authorizationServiceName(blpapi_Service_t *service)
blpapi_Name_t * impl() const
Definition: blpapi_name.h:403
struct blpapi_Name blpapi_Name_t
Definition: blpapi_types.h:154
Operation(blpapi_Operation_t *handle)
Definition: blpapi_service.h:544
blpapi_Service_t * handle() const
Definition: blpapi_service.h:706
Definition: blpapi_schema.h:327
blpapi_Operation_t * handle() const
Definition: blpapi_service.h:608
int(* blpapi_StreamWriter_t)(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:53
int blpapi_Service_createPublishEvent(blpapi_Service_t *service, blpapi_Event_t **event)
int blpapi_Service_print(const blpapi_Service_t *service, blpapi_StreamWriter_t streamWriter, void *stream, int level, int spacesPerLevel)
int blpapi_Service_getOperationAt(blpapi_Service_t *service, blpapi_Operation_t **operation, size_t index)
int blpapi_Service_numOperations(blpapi_Service_t *service)
Provide a key to identify individual subscriptions or requests.
Definition: blpapi_request.h:145
struct blpapi_SchemaElementDefinition blpapi_SchemaElementDefinition_t
Definition: blpapi_types.h:191
static void throwOnError(int errorCode)
Definition: blpapi_exception.h:526
Provide a representation of a schema describing structured messages.
int numResponseDefinitions() const
Definition: blpapi_service.h:578
Defines a request which can be sent for a service.
SchemaElementDefinition getEventDefinition(size_t index) const
Definition: blpapi_service.h:807
SchemaElementDefinition requestDefinition() const
Definition: blpapi_service.h:569
int blpapi_Service_addRef(blpapi_Service_t *service)
Operation getOperation(size_t index) const
Definition: blpapi_service.h:752
std::ostream & operator<<(std::ostream &os, const CorrelationId &correlator)
Definition: blpapi_correlationid.h:592
SchemaElementDefinition responseDefinition(size_t index) const
Definition: blpapi_service.h:587
Definition: blpapi_correlationid.h:201
blpapi_Event_t * createAdminEvent() const
Definition: blpapi_service.h:689
int blpapi_Service_createRequest(blpapi_Service_t *service, blpapi_Request_t **request, const char *operation)
blpapi_Event_t * createPublishEvent() const
Definition: blpapi_service.h:681
Service()
Definition: blpapi_service.h:615
Definition: blpapi_service.h:220
A signature for callback on print and default C++ implementation.
bool isValid() const
Definition: blpapi_service.h:610
const char * blpapi_Service_description(blpapi_Service_t *service)
const char * blpapi_Operation_name(blpapi_Operation_t *operation)
int blpapi_Operation_responseDefinitionFromName(blpapi_Operation_t *operation, blpapi_SchemaElementDefinition_t **responseDefinition, const blpapi_Name_t *name)
Defines Exceptions that can be thrown by the blpapi library.
~Service()
Definition: blpapi_service.h:638
~Operation()
Definition: blpapi_service.h:549
static int writeToStream(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:93
int blpapi_Operation_requestDefinition(blpapi_Operation_t *operation, blpapi_SchemaElementDefinition_t **requestDefinition)
const char * description() const
Definition: blpapi_service.h:719
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
struct blpapi_Service blpapi_Service_t
Definition: blpapi_types.h:166
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_service.h:843
const char * name() const
Definition: blpapi_service.h:551
blpapi_Event_t * createResponseEvent(const CorrelationId &correlationId) const
Definition: blpapi_service.h:697
int blpapi_Service_numEventDefinitions(blpapi_Service_t *service)
int blpapi_Service_createResponseEvent(blpapi_Service_t *service, const blpapi_CorrelationId_t *correlationId, blpapi_Event_t **event)
int blpapi_Service_getOperation(blpapi_Service_t *service, blpapi_Operation_t **operation, const char *nameString, const blpapi_Name_t *name)
#define BLPAPI_ERROR_ILLEGAL_ARG
Definition: blpapi_error.h:67
Service & operator=(const Service &rhs)
Definition: blpapi_service.h:640
const char * name() const
Definition: blpapi_service.h:710
bool hasOperation(const char *name) const
Definition: blpapi_service.h:737
const char * blpapi_Operation_description(blpapi_Operation_t *operation)
int numEventDefinitions() const
Definition: blpapi_service.h:776