28 #ifndef INCLUDED_BLPAPI_TOPICLIST 29 #define INCLUDED_BLPAPI_TOPICLIST 59 #ifndef INCLUDED_BLPAPI_TYPES 63 #ifndef INCLUDED_BLPAPI_CORRELATIONID 67 #ifndef INCLUDED_BLPAPI_DEFS 71 #ifndef INCLUDED_BLPAPI_ELEMENT 75 #ifndef INCLUDED_BLPAPI_NAME 79 #ifndef INCLUDED_BLPAPI_MESSAGE 83 #ifndef INCLUDED_BLPAPI_RESOLUTIONLIST 87 struct blpapi_TopicList;
103 const blpapi_CorrelationId_t *correlationId);
108 const blpapi_CorrelationId_t *correlationId);
112 blpapi_CorrelationId_t *result,
118 const blpapi_CorrelationId_t *
id);
127 const blpapi_CorrelationId_t *
id);
136 const blpapi_CorrelationId_t *
id);
149 #ifndef INCLUDED_BLPAPI_EXCEPTION 163 class ResolutionList;
212 virtual int add(
const char *topic,
260 virtual int statusAt(
size_t index)
const;
286 virtual size_t size()
const;
336 d_handle_p, newMessage.impl(), &correlationId.impl());
341 blpapi_CorrelationId_t correlationId;
343 d_handle_p, &correlationId, index));
351 const char *topic = 0;
353 d_handle_p, &topic, &correlationId.impl()));
360 const char *topic = 0;
371 d_handle_p, &result, &correlationId.impl()));
390 d_handle_p, &messageByCid, &correlationId.impl()));
392 return Message(messageByCid,
true);
402 return Message(messageByIndex,
true);
417 #endif // ifdef __cplusplus 419 #endif // #ifndef INCLUDED_BLPAPI_TOPICLIST virtual Message const message(const CorrelationId &correlationId) const
Definition: blpapi_topiclist.h:385
virtual size_t size() const
Definition: blpapi_topiclist.h:405
Definition: blpapi_message.h:160
blpapi_TopicList_t * blpapi_TopicList_create(blpapi_TopicList_t *from)
#define BLPAPI_TOPICLIST_FAILURE
Definition: blpapi_defs.h:135
virtual int add(const char *topic, const CorrelationId &correlationId=CorrelationId())
Definition: blpapi_topiclist.h:326
Common definitions used by the library.
int blpapi_TopicList_addFromMessage(blpapi_TopicList_t *list, const blpapi_Message_t *topic, const blpapi_CorrelationId_t *correlationId)
struct blpapi_TopicList blpapi_TopicList_t
Definition: blpapi_topiclist.h:88
Definition: blpapi_abstractsession.h:220
int blpapi_TopicList_add(blpapi_TopicList_t *list, const char *topic, const blpapi_CorrelationId_t *correlationId)
virtual Message const messageAt(size_t index) const
Definition: blpapi_topiclist.h:395
int blpapi_TopicList_topicStringAt(const blpapi_TopicList_t *list, const char **topic, size_t index)
virtual ~TopicList()
Definition: blpapi_topiclist.h:324
int blpapi_TopicList_size(const blpapi_TopicList_t *list)
Status
Definition: blpapi_topiclist.h:182
struct blpapi_ResolutionList blpapi_ResolutionList_t
Definition: blpapi_resolutionlist.h:88
Not created.
Definition: blpapi_topiclist.h:183
TopicList()
Definition: blpapi_topiclist.h:307
Provide a key to identify individual subscriptions or requests.
struct blpapi_Message blpapi_Message_t
Definition: blpapi_message.h:71
static void throwOnError(int errorCode)
Definition: blpapi_exception.h:526
Topic creation failed.
Definition: blpapi_topiclist.h:185
int blpapi_TopicList_message(const blpapi_TopicList_t *list, blpapi_Message_t **element, const blpapi_CorrelationId_t *id)
const blpapi_TopicList_t * impl() const
Definition: blpapi_topiclist.h:410
Definition: blpapi_correlationid.h:201
Defines a message containing elements.
#define BLPAPI_TOPICLIST_CREATED
Definition: blpapi_defs.h:134
int blpapi_TopicList_topicString(const blpapi_TopicList_t *list, const char **topic, const blpapi_CorrelationId_t *id)
Definition: blpapi_topiclist.h:177
int blpapi_TopicList_messageAt(const blpapi_TopicList_t *list, blpapi_Message_t **element, size_t index)
virtual const char * topicStringAt(size_t index) const
Definition: blpapi_topiclist.h:358
virtual int statusAt(size_t index) const
Definition: blpapi_topiclist.h:376
int blpapi_TopicList_correlationIdAt(const blpapi_TopicList_t *list, blpapi_CorrelationId_t *result, size_t index)
Created successfully.
Definition: blpapi_topiclist.h:184
#define BLPAPI_TOPICLIST_NOT_CREATED
Definition: blpapi_defs.h:133
int blpapi_TopicList_statusAt(const blpapi_TopicList_t *list, int *status, size_t index)
Defines Exceptions that can be thrown by the blpapi library.
virtual CorrelationId correlationIdAt(size_t index) const
Definition: blpapi_topiclist.h:339
virtual int status(const CorrelationId &correlationId) const
Definition: blpapi_topiclist.h:367
int blpapi_TopicList_status(const blpapi_TopicList_t *list, int *status, const blpapi_CorrelationId_t *id)
virtual const char * topicString(const CorrelationId &correlationId) const
Definition: blpapi_topiclist.h:348
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
void blpapi_TopicList_destroy(blpapi_TopicList_t *list)
#define BLPAPI_CALL_MESSAGE_ADDREF(a1)
Definition: blpapi_call.h:360
Provide a representation of an item in a message.
Provide a representation of strings for use as container keys.
Definition: blpapi_resolutionlist.h:195
Provide a representation of a list of topics.