38#ifndef INCLUDED_BLPAPI_TOPIC
39#define INCLUDED_BLPAPI_TOPIC
68#ifndef INCLUDED_BLPAPI_DEFS
72#ifndef INCLUDED_BLPAPI_SERVICE
82typedef struct blpapi_Topic blpapi_Topic_t;
98blpapi_Topic_t *blpapi_Topic_create(blpapi_Topic_t *from);
108void blpapi_Topic_destroy(blpapi_Topic_t *victim);
123int blpapi_Topic_compare(
const blpapi_Topic_t *lhs,
const blpapi_Topic_t *rhs);
135blpapi_Service_t *blpapi_Topic_service(
const blpapi_Topic_t *topic);
148int blpapi_Topic_isActive(
const blpapi_Topic_t *topic);
179 blpapi_Topic_t *d_handle;
189 explicit Topic(blpapi_Topic_t *handle);
224 const blpapi_Topic_t *impl()
const;
226 blpapi_Topic_t *impl();
258 : d_handle(blpapi_Topic_create(original.d_handle))
269 swap(tmp.d_handle, d_handle);
278 return blpapi_Topic_isActive(d_handle) != 0;
283 return Service(blpapi_Topic_service(d_handle));
287inline const blpapi_Topic_t *Topic::impl()
const {
return d_handle; }
289inline blpapi_Topic_t *Topic::impl() {
return d_handle; }
294 return blpapi_Topic_compare(lhs.impl(), rhs.impl()) == 0;
299 return blpapi_Topic_compare(lhs.impl(), rhs.impl()) != 0;
304 return blpapi_Topic_compare(lhs.impl(), rhs.impl()) < 0;
Common definitions used by the library.
A service which provides access to API data (provide or consume).
Definition blpapi_service.h:619
Definition blpapi_topic.h:177
Service service() const
Definition blpapi_topic.h:281
Topic & operator=(const Topic &rhs)
Definition blpapi_topic.h:264
bool isActive() const
Definition blpapi_topic.h:276
bool isValid() const
Definition blpapi_topic.h:274
Topic()
Definition blpapi_topic.h:247
~Topic()
Definition blpapi_topic.h:262
void swap(Event::iterator &lhs, Event::iterator &rhs)
Swap the contents of the lhs and rhs iterators.
Definition blpapi_event.h:860
Definition blpapi_abstractsession.h:452
bool operator==(const CorrelationId &lhs, const CorrelationId &rhs)
Definition blpapi_correlationid.h:718
bool operator!=(const CorrelationId &lhs, const CorrelationId &rhs)
Definition blpapi_correlationid.h:741
bool operator<(const CorrelationId &lhs, const CorrelationId &rhs)
Definition blpapi_correlationid.h:746
Definition blpapi_abstractsession.h:451