36#ifndef INCLUDED_BLPAPI_RESOLUTIONLIST
37#define INCLUDED_BLPAPI_RESOLUTIONLIST
69#ifndef INCLUDED_BLPAPI_TYPES
73#ifndef INCLUDED_BLPAPI_CORRELATIONID
77#ifndef INCLUDED_BLPAPI_DEFS
81#ifndef INCLUDED_BLPAPI_ELEMENT
85#ifndef INCLUDED_BLPAPI_NAME
89#ifndef INCLUDED_BLPAPI_MESSAGE
95struct blpapi_ResolutionList;
101typedef struct blpapi_ResolutionList blpapi_ResolutionList_t;
108blpapi_Element_t *blpapi_ResolutionList_extractAttributeFromResolutionSuccess(
109 const blpapi_Message_t *message,
const blpapi_Name_t *attribute);
112blpapi_ResolutionList_t *blpapi_ResolutionList_create(
113 blpapi_ResolutionList_t *from);
116void blpapi_ResolutionList_destroy(blpapi_ResolutionList_t *list);
119int blpapi_ResolutionList_add(blpapi_ResolutionList_t *list,
121 const blpapi_CorrelationId_t *correlationId);
124int blpapi_ResolutionList_addFromMessage(blpapi_ResolutionList_t *list,
125 const blpapi_Message_t *topic,
126 const blpapi_CorrelationId_t *correlationId);
129int blpapi_ResolutionList_addAttribute(
130 blpapi_ResolutionList_t *list,
const blpapi_Name_t *name);
133int blpapi_ResolutionList_correlationIdAt(
const blpapi_ResolutionList_t *list,
134 blpapi_CorrelationId_t *result,
138int blpapi_ResolutionList_topicString(
const blpapi_ResolutionList_t *list,
140 const blpapi_CorrelationId_t *
id);
143int blpapi_ResolutionList_topicStringAt(
144 const blpapi_ResolutionList_t *list,
const char **topic,
size_t index);
147int blpapi_ResolutionList_status(
const blpapi_ResolutionList_t *list,
149 const blpapi_CorrelationId_t *
id);
152int blpapi_ResolutionList_statusAt(
153 const blpapi_ResolutionList_t *list,
int *status,
size_t index);
156int blpapi_ResolutionList_attribute(
const blpapi_ResolutionList_t *list,
157 blpapi_Element_t **element,
158 const blpapi_Name_t *attribute,
159 const blpapi_CorrelationId_t *
id);
162int blpapi_ResolutionList_attributeAt(
const blpapi_ResolutionList_t *list,
163 blpapi_Element_t **element,
164 const blpapi_Name_t *attribute,
168int blpapi_ResolutionList_message(
const blpapi_ResolutionList_t *list,
169 blpapi_Message_t **element,
170 const blpapi_CorrelationId_t *
id);
173int blpapi_ResolutionList_messageAt(
const blpapi_ResolutionList_t *list,
174 blpapi_Message_t **element,
178int blpapi_ResolutionList_size(
const blpapi_ResolutionList_t *list);
186#ifndef INCLUDED_BLPAPI_EXCEPTION
213 blpapi_ResolutionList_t *d_handle_p;
222 = BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_BAD_SERVICE,
228 = BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_SERVICE_AUTHORIZATION_FAILED,
233 = BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_BAD_TOPIC,
239 = BLPAPI_RESOLUTIONLIST_RESOLUTION_FAILURE_TOPIC_AUTHORIZATION_FAILED
275 virtual int add(
const char *topic,
284 virtual int add(
Message const& topicSubscribedMessage,
337 virtual int statusAt(
size_t index)
const;
394 virtual size_t size()
const;
399 const blpapi_ResolutionList_t *
impl()
const;
401 blpapi_ResolutionList_t *
impl();
425 : d_handle_p(blpapi_ResolutionList_create(0))
430 : d_handle_p(blpapi_ResolutionList_create(original.d_handle_p))
436 blpapi_ResolutionList_destroy(d_handle_p);
442 return blpapi_ResolutionList_add(d_handle_p, topic, &correlationId.impl());
448 return blpapi_ResolutionList_addFromMessage(
449 d_handle_p, topicSubscribedMessage.impl(), &correlationId.impl());
457 return BLPAPI_ERROR_UNSUPPORTED_OPERATION;
462 blpapi_CorrelationId_t correlationId;
464 d_handle_p, &correlationId, index));
472 const char *topic = 0;
474 d_handle_p, &topic, &correlationId.impl()));
481 const char *topic = 0;
483 blpapi_ResolutionList_topicStringAt(d_handle_p, &topic, index));
492 d_handle_p, &result, &correlationId.impl()));
501 blpapi_ResolutionList_statusAt(d_handle_p, &result, index));
526 blpapi_Message_t *messageByCid = 0;
528 d_handle_p, &messageByCid, &correlationId.impl()));
530 bool makeMessageCopyable =
true;
532 return Message(messageByCid, makeMessageCopyable);
537 blpapi_Message_t *messageByIndex = 0;
539 d_handle_p, &messageByIndex, index));
541 bool makeMessageCopyable =
true;
543 return Message(messageByIndex, makeMessageCopyable);
548 return static_cast<size_t>(blpapi_ResolutionList_size(d_handle_p));
#define BLPAPI_CALL_MESSAGE_ADDREF(a1)
Definition blpapi_call.h:368
Provide a key to identify individual subscriptions or requests.
Common definitions used by the library.
Provide a representation of an item in a message.
Defines Exceptions that can be thrown by the blpapi library.
Defines a message containing elements.
Provide a representation of strings for use as container keys.
Definition blpapi_correlationid.h:225
Definition blpapi_element.h:1167
static void throwOnError(int errorCode)
Definition blpapi_exception.h:541
Definition blpapi_message.h:177
Definition blpapi_name.h:242
Definition blpapi_resolutionlist.h:211
Element attributeAt(const Name &attribute, size_t index) const
Definition blpapi_resolutionlist.h:515
virtual const char * topicString(const CorrelationId &correlationId) const
Definition blpapi_resolutionlist.h:469
virtual ~ResolutionList()
Definition blpapi_resolutionlist.h:434
virtual Message const message(const CorrelationId &correlationId) const
Definition blpapi_resolutionlist.h:523
virtual const char * topicStringAt(size_t index) const
Definition blpapi_resolutionlist.h:479
virtual size_t size() const
Definition blpapi_resolutionlist.h:546
static Element extractAttributeFromResolutionSuccess(Message const &message, Name const &attribute)
Definition blpapi_resolutionlist.h:415
Status
Definition blpapi_resolutionlist.h:216
@ RESOLUTION_FAILURE_SERVICE_AUTHORIZATION_FAILED
Definition blpapi_resolutionlist.h:227
@ RESOLUTION_FAILURE_BAD_SERVICE
Definition blpapi_resolutionlist.h:221
@ RESOLUTION_FAILURE_TOPIC_AUTHORIZATION_FAILED
Currently unused.
Definition blpapi_resolutionlist.h:238
@ RESOLUTION_FAILURE_BAD_TOPIC
Definition blpapi_resolutionlist.h:232
@ UNRESOLVED
Not yet resolved.
Definition blpapi_resolutionlist.h:217
@ RESOLVED
Resolved successfully.
Definition blpapi_resolutionlist.h:219
Element attribute(const Name &attribute, const CorrelationId &correlationId) const
Definition blpapi_resolutionlist.h:506
virtual int statusAt(size_t index) const
Definition blpapi_resolutionlist.h:497
virtual CorrelationId correlationIdAt(size_t index) const
Definition blpapi_resolutionlist.h:460
int addAttribute(const Name &attribute)
Definition blpapi_resolutionlist.h:452
virtual int status(const CorrelationId &correlationId) const
Definition blpapi_resolutionlist.h:488
ResolutionList()
Definition blpapi_resolutionlist.h:424
virtual int add(const char *topic, const CorrelationId &correlationId=CorrelationId())
Definition blpapi_resolutionlist.h:439
virtual Message const messageAt(size_t index) const
Definition blpapi_resolutionlist.h:535
const blpapi_ResolutionList_t * impl() const
Definition blpapi_resolutionlist.h:551
Definition blpapi_abstractsession.h:212
Definition blpapi_abstractsession.h:211