28#ifndef INCLUDED_BLPAPI_EVENTFORMATTER
29#define INCLUDED_BLPAPI_EVENTFORMATTER
61#include <blpapi_deprecate.h>
81 const char *typeString,
87 const char *typeString,
90 unsigned int sequenceNumber,
95 const char *typeString,
109 unsigned int sequenceNumber,
115 const char *typeString,
124 const char *typeString,
128 unsigned int sequenceNumber);
132 const char *typeString,
138 const char *typeString,
144 const char *typeString,
150 const char *typeString,
156 const char *typeString,
162 const char *typeString,
168 const char *typeString,
175 const char *typeString,
181 const char *typeString,
187 const char *typeString,
193 const char *typeString,
200 const char *typeString,
205 const char *typeString,
268#include <type_traits>
350 unsigned int sequenceNumber);
432 unsigned int sequenceNumber,
458 unsigned int sequenceNumber);
474 unsigned int sequenceNumber);
498 unsigned int sequenceNumber);
679 void setElement(
const Name& name,
const void *value,
size_t length);
693 template <
typename BYTES,
694 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type
840 const char *messageType,
const Topic& topic);
850 BLPAPI_DEPRECATE_STRING_NAME
void appendMessage(
const char *messageType,
852 unsigned int sequenceNumber);
867 const char *operationName);
881 const char *messageType,
905 const char *messageType,
907 unsigned int sequenceNumber);
924 const char *messageType,
927 unsigned int sequenceNumber);
951 const char *messageType,
975 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
const char *name,
bool value);
991 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
const char *name,
char value);
1007 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1008 const char *name,
Int32 value);
1024 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1025 const char *name,
Int64 value);
1041 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1042 const char *name,
Float32 value);
1058 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1059 const char *name,
Float64 value);
1075 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1076 const char *name,
const Datetime& value);
1093 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1112 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1113 const char *name,
const char *value);
1132 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1133 const char *name,
const Name& value);
1149 BLPAPI_DEPRECATE_STRING_NAME
void setElementNull(
const char *name);
1166 BLPAPI_DEPRECATE_STRING_NAME
void pushElement(
const char *name);
1203 void fromJson(
const std::string& json);
1241inline EventFormatter::EventFormatter(
Event& event)
1252 const char *messageType,
const Topic& topic)
1255 d_handle, messageType, 0, topic.
impl()));
1259 const Name& messageType,
const Topic& topic)
1262 d_handle, 0, messageType.
impl(), topic.
impl()));
1267 unsigned int sequenceNumber)
1270 d_handle, messageType, 0, topic.
impl(), sequenceNumber, 0));
1275 unsigned int sequenceNumber)
1278 d_handle, 0, messageType.
impl(), topic.
impl(), sequenceNumber, 0));
1290 d_handle, 0, operationName.
impl()));
1297 d_handle, topic.
impl(), cid ? &cid->impl() : 0));
1309 static_cast<int>(fragmentType)));
1322 static_cast<int>(fragmentType)));
1335 static_cast<int>(fragmentType)));
1339 unsigned int sequenceNumber,
1345 cid ? &cid->impl() : 0,
1352 unsigned int sequenceNumber)
1365 unsigned int sequenceNumber)
1378 unsigned int sequenceNumber)
1385 static_cast<int>(fragmentType),
1392 unsigned int sequenceNumber)
1399 static_cast<int>(fragmentType),
1406 unsigned int sequenceNumber)
1413 static_cast<int>(fragmentType),
1426 static_cast<int>(fragmentType)));
1439 static_cast<int>(fragmentType)));
1452 static_cast<int>(fragmentType)));
1494 d_handle, name, 0, &value.
rawValue()));
1502 d_handle, name, 0, &value));
1514 d_handle, name, 0, value.
impl()));
1526 d_handle, 0, name.
impl(), value));
1532 d_handle, 0, name.
impl(), value));
1538 d_handle, 0, name.
impl(), value));
1544 d_handle, 0, name.
impl(), value));
1550 d_handle, 0, name.
impl(), value));
1555 d_handle, 0, name.
impl(), value));
1569 d_handle, 0, name.
impl(), &value));
1575 d_handle, 0, name.
impl(), value));
1579 const Name& name,
const std::string& value)
1587 d_handle, 0, name.
impl(), value.
impl()));
1591 const Name& name,
const void *value,
size_t length)
1597 reinterpret_cast<const char *
>(value),
1601template <
typename BYTES,
1602 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type>
1605 setElement(name, value.data(), value.size());
1707 if (element ==
nullptr) {
Provide functions for dispatchtbl.
#define BLPAPI_CALL_EVENTFORMATTER_APPENDRECAPMESSAGESEQ(a1, a2, a3, a4, a5)
Definition blpapi_call.h:358
#define BLPAPI_CALL_EVENTFORMATTER_APPENDMESSAGESEQ(a1, a2, a3, a4, a5, a6)
Definition blpapi_call.h:356
#define BLPAPI_CALL_EVENTFORMATTER_SETVALUENULL(a1, a2, a3)
Definition blpapi_call.h:409
#define BLPAPI_CALL(FUNCNAME)
Definition blpapi_call.h:353
Common definitions used by the library.
#define BLPAPI_EXPORT
Definition blpapi_defs.h:172
struct blpapi_CorrelationId_t_ blpapi_CorrelationId_t
Definition blpapi_dispatchtbl.h:74
struct blpapi_Topic blpapi_Topic_t
Definition blpapi_dispatchtbl.h:77
Provide a representation of an item in a message.
A component which defines events related operations.
Provide representation of a Topic.
int blpapi_Bool_t
Definition blpapi_types.h:62
float blpapi_Float32_t
Definition blpapi_types.h:71
long long blpapi_Int64_t
Definition blpapi_types.h:69
int blpapi_Int32_t
Definition blpapi_types.h:67
double blpapi_Float64_t
Definition blpapi_types.h:72
Definition blpapi_correlationid.h:206
Definition blpapi_datetime.h:245
blpapi_Datetime_t & rawValue()
Definition blpapi_datetime.h:1952
Definition blpapi_element.h:473
void fromJson(const char *json)
Definition blpapi_element.h:2382
Definition blpapi_event.h:196
blpapi_Event_t * impl() const
Definition blpapi_event.h:553
static void throwOnError(int errorCode)
Definition blpapi_exception.h:526
Definition blpapi_exception.h:222
Fragment
Definition blpapi_message.h:171
@ FRAGMENT_NONE
message is not fragmented
Definition blpapi_message.h:173
Definition blpapi_name.h:150
blpapi_Name_t * impl() const
Definition blpapi_name.h:403
Definition blpapi_topic.h:114
const blpapi_Topic_t * impl() const
Definition blpapi_topic.h:221
struct blpapi_Event blpapi_Event_t
Definition blpapi_types.h:139
struct blpapi_EventFormatter blpapi_EventFormatter_t
Definition blpapi_types.h:145
struct blpapi_Name blpapi_Name_t
Definition blpapi_types.h:154
struct blpapi_SchemaElementDefinition blpapi_SchemaElementDefinition_t
Definition blpapi_types.h:191
struct blpapi_Element blpapi_Element_t
Definition blpapi_types.h:136
blpapi_Float64_t Float64
Definition blpapi_types.h:474
blpapi_Float32_t Float32
Definition blpapi_types.h:473
blpapi_Int64_t Int64
Definition blpapi_types.h:471
blpapi_Int32_t Int32
Definition blpapi_types.h:469
Definition blpapi_abstractsession.h:195
Definition blpapi_datetime.h:102
Definition blpapi_datetime.h:115