28 #ifndef INCLUDED_BLPAPI_MESSAGE 29 #define INCLUDED_BLPAPI_MESSAGE 70 struct blpapi_Message;
310 bool hasElement(
const Name& name,
bool excludeNullElements =
false)
const;
315 [[deprecated(
"Use the form that takes Name instead of const char*")]]
bool 316 hasElement(
const char *name,
bool excludeNullElements =
false)
const;
333 [[deprecated(
"Use the form that takes Name instead of const " 347 [[deprecated(
"Use the form that takes Name instead of const char*")]]
bool 360 [[deprecated(
"Use the form that takes Name instead of const char*")]]
char 373 [[deprecated(
"Use the form that takes Name instead of const char*")]]
Int32 386 [[deprecated(
"Use the form that takes Name instead of const char*")]]
Int64 400 "Use the form that takes Name instead of const char*")]]
Float32 414 "Use the form that takes Name instead of const char*")]]
Float64 428 "Use the form that takes Name instead of const char*")]]
Datetime 441 [[deprecated(
"Use the form that takes Name instead of const " 442 "char*")]]
const char *
474 [[deprecated(
"This method is no longer supported")]]
const char *
506 std::ostream& stream,
int level = 0,
int spacesPerLevel = 4)
const;
537 std::ostream&
operator<<(std::ostream& stream,
const Message& message);
560 , d_isCloned(clonable)
568 : d_handle(original.d_handle)
569 , d_elements(original.d_elements)
579 if (d_isCloned && d_handle) {
591 if (d_isCloned && (d_handle == rhs.d_handle)) {
595 if (d_isCloned && d_handle) {
598 d_handle = rhs.d_handle;
599 d_elements = rhs.d_elements;
638 const char *name,
bool excludeNullElements)
const 644 const Name& name,
bool excludeNullElements)
const 646 return d_elements.
hasElement(name, excludeNullElements);
748 const char *requestId = 0;
767 return static_cast<Message::RecapType::Type>(
777 std::ostream& stream,
int level,
int spacesPerLevel)
const 788 return d_elements.
print(stream, level, spacesPerLevel);
794 return message.
print(stream, 0, -1);
804 #endif // #ifdef __cplusplus 805 #endif // #ifndef INCLUDED_BLPAPI_MESSAGE Int64 getElementAsInt64(const Name &name) const
Definition: blpapi_message.h:691
int blpapi_Message_recapType(const blpapi_Message_t *message)
the first fragmented message
Definition: blpapi_message.h:174
Definition: blpapi_timepoint.h:104
Definition: blpapi_message.h:160
#define BLPAPI_MESSAGE_FRAGMENT_END
Definition: blpapi_defs.h:147
message is not fragmented
Definition: blpapi_message.h:172
Float32 getElementAsFloat32(const Name &name) const
Definition: blpapi_message.h:701
bool getElementAsBool(const char *name) const
Definition: blpapi_element.h:2242
int timeReceived(TimePoint *timestamp) const
Definition: blpapi_message.h:771
#define BLPAPI_MESSAGE_RECAPTYPE_SOLICITED
Definition: blpapi_defs.h:150
const char * blpapi_Message_topicName(const blpapi_Message_t *message)
struct blpapi_Element blpapi_Element_t
Definition: blpapi_types.h:136
Service service() const
Definition: blpapi_message.h:620
Common definitions used by the library.
Definition: blpapi_exception.h:271
blpapi_Int32_t Int32
Definition: blpapi_types.h:469
const char * blpapi_Message_privateData(const blpapi_Message_t *message, size_t *size)
Type
Definition: blpapi_message.h:196
#define BLPAPI_MESSAGE_FRAGMENT_INTERMEDIATE
Definition: blpapi_defs.h:146
Float32 getElementAsFloat32(const char *name) const
Definition: blpapi_element.h:2282
Float64 getElementAsFloat64(const char *name) const
Definition: blpapi_element.h:2292
Definition: blpapi_abstractsession.h:220
Definition: blpapi_name.h:150
#define BLPAPI_CALL(FUNCNAME)
Definition: blpapi_call.h:353
blpapi_Float64_t Float64
Definition: blpapi_types.h:474
Definition: blpapi_service.h:304
int blpapi_Message_fragmentType(const blpapi_Message_t *message)
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_message.h:776
#define BLPAPI_CALL_MESSAGE_TIMERECEIVED(a1, a2)
Definition: blpapi_call.h:453
int blpapi_Message_numCorrelationIds(const blpapi_Message_t *message)
CorrelationId correlationId(size_t index=0) const
Definition: blpapi_message.h:630
Message & operator=(const Message &rhs)
Definition: blpapi_message.h:584
struct blpapi_Name blpapi_Name_t
Definition: blpapi_types.h:154
#define BLPAPI_MESSAGE_RECAPTYPE_NONE
Definition: blpapi_defs.h:149
int(* blpapi_StreamWriter_t)(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:53
blpapi_Float32_t Float32
Definition: blpapi_types.h:473
A service which provides access to API data (provide or consume).
Provide a time point with respect to an epoch.
Provide a key to identify individual subscriptions or requests.
struct blpapi_Message blpapi_Message_t
Definition: blpapi_message.h:71
Datetime getElementAsDatetime(const char *name) const
Definition: blpapi_element.h:2302
Definition: blpapi_element.h:464
bool getElementAsBool(const Name &name) const
Definition: blpapi_message.h:661
Int32 getElementAsInt32(const char *name) const
Definition: blpapi_element.h:2262
Fragment fragmentType() const
Definition: blpapi_message.h:760
int blpapi_Message_print(const blpapi_Message_t *message, blpapi_StreamWriter_t streamWriter, void *stream, int indentLevel, int spacesPerLevel)
#define BLPAPI_CALL_MESSAGE_FRAGMENTTYPE(a1)
Definition: blpapi_call.h:370
const char * getElementAsString(const Name &name) const
Definition: blpapi_message.h:731
Int32 getElementAsInt32(const Name &name) const
Definition: blpapi_message.h:681
std::ostream & operator<<(std::ostream &os, const CorrelationId &correlator)
Definition: blpapi_correlationid.h:592
Definition: blpapi_correlationid.h:201
blpapi_Int64_t Int64
Definition: blpapi_types.h:471
const char * blpapi_Message_typeString(const blpapi_Message_t *message)
int blpapi_Message_timeReceived(const blpapi_Message_t *message, blpapi_TimePoint_t *timeReceived)
blpapi_Name_t * blpapi_Message_messageType(const blpapi_Message_t *message)
blpapi_CorrelationId_t blpapi_Message_correlationId(const blpapi_Message_t *message, size_t index)
int getElement(Element *result, const char *name) const
Definition: blpapi_element.h:1922
Int64 getElementAsInt64(const char *name) const
Definition: blpapi_element.h:2272
const char * getPrivateData(size_t *size) const
Definition: blpapi_message.h:755
size_t numElements() const
Definition: blpapi_element.h:1997
A signature for callback on print and default C++ implementation.
Fragment
Definition: blpapi_message.h:170
int numCorrelationIds() const
Definition: blpapi_message.h:625
const char * topicName() const
Definition: blpapi_message.h:615
const char * getRequestId() const
Definition: blpapi_message.h:746
char getElementAsChar(const char *name) const
Definition: blpapi_element.h:2252
RecapType::Type recapType() const
Definition: blpapi_message.h:765
const Element getElement(const Name &name) const
Definition: blpapi_message.h:651
blpapi_Element_t * blpapi_Message_elements(const blpapi_Message_t *message)
Message(const Message &original)
Definition: blpapi_message.h:558
Float64 getElementAsFloat64(const Name &name) const
Definition: blpapi_message.h:711
bool hasElement(const Name &name, bool excludeNullElements=false) const
Definition: blpapi_message.h:643
bool hasElement(const char *name, bool excludeNullElements=false) const
Definition: blpapi_element.h:2013
Bytes getElementAsBytes(const Name &name) const
Definition: blpapi_element.h:2322
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_element.h:2339
Definition: blpapi_message.h:195
static int writeToStream(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:93
blpapi_Service_t * blpapi_Message_service(const blpapi_Message_t *message)
Name messageType() const
Definition: blpapi_message.h:610
normal data tick; not a recap
Definition: blpapi_message.h:197
Datetime getElementAsDatetime(const Name &name) const
Definition: blpapi_message.h:721
const Element asElement() const
Definition: blpapi_message.h:753
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
struct blpapi_Service blpapi_Service_t
Definition: blpapi_types.h:166
#define BLPAPI_CALL_AVAILABLE(FUNCNAME)
Definition: blpapi_call.h:352
Definition: blpapi_datetime.h:245
intermediate fragmented messages
Definition: blpapi_message.h:176
Provide functions for dispatchtbl.
generated on request by subscriber
Definition: blpapi_message.h:199
#define BLPAPI_MESSAGE_RECAPTYPE_UNSOLICITED
Definition: blpapi_defs.h:151
#define BLPAPI_CALL_MESSAGE_ADDREF(a1)
Definition: blpapi_call.h:360
#define BLPAPI_MESSAGE_FRAGMENT_START
Definition: blpapi_defs.h:145
#define BLPAPI_MESSAGE_FRAGMENT_NONE
Definition: blpapi_defs.h:144
char getElementAsChar(const Name &name) const
Definition: blpapi_message.h:671
Bytes getElementAsBytes(const Name &name) const
Definition: blpapi_message.h:741
the last fragmented message
Definition: blpapi_message.h:178
Provide a representation of an item in a message.
const char * getElementAsString(const char *name) const
Definition: blpapi_element.h:2312
int blpapi_Message_release(const blpapi_Message_t *message)
Provide a representation of strings for use as container keys.
Definition: blpapi_types.h:312
size_t numElements() const
Definition: blpapi_message.h:649
~Message()
Definition: blpapi_message.h:577
generated at discretion of the service
Definition: blpapi_message.h:201
#define BLPAPI_CALL_MESSAGE_RELEASE(a1)
Definition: blpapi_call.h:361
int blpapi_Message_addRef(const blpapi_Message_t *message)
int blpapi_Message_getRequestId(const blpapi_Message_t *message, const char **requestId)