28 #ifndef INCLUDED_BLPAPI_EVENTFORMATTER 29 #define INCLUDED_BLPAPI_EVENTFORMATTER 61 #include <blpapi_deprecate.h> 80 const char *typeString,
86 const char *typeString,
89 unsigned int sequenceNumber,
94 const char *typeString,
101 const blpapi_CorrelationId_t *cid);
107 const blpapi_CorrelationId_t *cid,
108 unsigned int sequenceNumber,
114 const char *typeString,
117 const blpapi_CorrelationId_t *cid,
123 const char *typeString,
127 unsigned int sequenceNumber);
131 const char *typeString,
137 const char *typeString,
143 const char *typeString,
149 const char *typeString,
155 const char *typeString,
161 const char *typeString,
167 const char *typeString,
174 const char *typeString,
180 const char *typeString,
186 const char *typeString,
192 const char *typeString,
199 const char *typeString,
204 const char *typeString,
263 #include <type_traits> 345 unsigned int sequenceNumber);
427 unsigned int sequenceNumber,
453 unsigned int sequenceNumber);
469 unsigned int sequenceNumber);
493 unsigned int sequenceNumber);
674 void setElement(
const Name& name,
const void *value,
size_t length);
688 template <
typename BYTES,
689 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type
835 const char *messageType,
const Topic& topic);
845 BLPAPI_DEPRECATE_STRING_NAME
void appendMessage(
const char *messageType,
847 unsigned int sequenceNumber);
862 const char *operationName);
876 const char *messageType,
900 const char *messageType,
902 unsigned int sequenceNumber);
919 const char *messageType,
922 unsigned int sequenceNumber);
946 const char *messageType,
970 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
const char *name,
bool value);
986 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
const char *name,
char value);
1002 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1003 const char *name,
Int32 value);
1019 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1020 const char *name,
Int64 value);
1036 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1037 const char *name,
Float32 value);
1053 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1054 const char *name,
Float64 value);
1070 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1071 const char *name,
const Datetime& value);
1088 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1107 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1108 const char *name,
const char *value);
1127 BLPAPI_DEPRECATE_STRING_NAME
void setElement(
1128 const char *name,
const Name& value);
1144 BLPAPI_DEPRECATE_STRING_NAME
void setElementNull(
const char *name);
1161 BLPAPI_DEPRECATE_STRING_NAME
void pushElement(
const char *name);
1194 inline EventFormatter::EventFormatter(
Event& event)
1205 const char *messageType,
const Topic& topic)
1208 d_handle, messageType, 0, topic.
impl()));
1212 const Name& messageType,
const Topic& topic)
1215 d_handle, 0, messageType.
impl(), topic.
impl()));
1220 unsigned int sequenceNumber)
1223 d_handle, messageType, 0, topic.
impl(), sequenceNumber, 0));
1228 unsigned int sequenceNumber)
1231 d_handle, 0, messageType.
impl(), topic.
impl(), sequenceNumber, 0));
1243 d_handle, 0, operationName.
impl()));
1250 d_handle, topic.
impl(), cid ? &cid->impl() : 0));
1262 static_cast<int>(fragmentType)));
1275 static_cast<int>(fragmentType)));
1288 static_cast<int>(fragmentType)));
1292 unsigned int sequenceNumber,
1298 cid ? &cid->impl() : 0,
1305 unsigned int sequenceNumber)
1318 unsigned int sequenceNumber)
1331 unsigned int sequenceNumber)
1338 static_cast<int>(fragmentType),
1345 unsigned int sequenceNumber)
1352 static_cast<int>(fragmentType),
1359 unsigned int sequenceNumber)
1366 static_cast<int>(fragmentType),
1379 static_cast<int>(fragmentType)));
1392 static_cast<int>(fragmentType)));
1405 static_cast<int>(fragmentType)));
1447 d_handle, name, 0, &value.
rawValue()));
1455 d_handle, name, 0, &value));
1467 d_handle, name, 0, value.
impl()));
1479 d_handle, 0, name.
impl(), value));
1485 d_handle, 0, name.
impl(), value));
1491 d_handle, 0, name.
impl(), value));
1497 d_handle, 0, name.
impl(), value));
1503 d_handle, 0, name.
impl(), value));
1508 d_handle, 0, name.
impl(), value));
1522 d_handle, 0, name.
impl(), &value));
1528 d_handle, 0, name.
impl(), value));
1532 const Name& name,
const std::string& value)
1540 d_handle, 0, name.
impl(), value.
impl()));
1544 const Name& name,
const void *value,
size_t length)
1550 reinterpret_cast<const char *>(value),
1554 template <
typename BYTES,
1555 typename std::enable_if<IsByteSequence<BYTES>::value,
bool>::type>
1558 setElement(name, value.data(), value.size());
1665 #endif // #ifdef __cplusplus 1666 #endif // #ifndef INCLUDED_BLPAPI_EVENTFORMATTER
message is not fragmented
Definition: blpapi_message.h:173
Common definitions used by the library.
struct blpapi_Event blpapi_Event_t
Definition: blpapi_types.h:139
blpapi_Int32_t Int32
Definition: blpapi_types.h:469
Definition: blpapi_abstractsession.h:187
#define BLPAPI_CALL_EVENTFORMATTER_APPENDMESSAGESEQ(a1, a2, a3, a4, a5, a6)
Definition: blpapi_call.h:356
Definition: blpapi_name.h:150
#define BLPAPI_CALL(FUNCNAME)
Definition: blpapi_call.h:353
blpapi_Float64_t Float64
Definition: blpapi_types.h:474
blpapi_Name_t * impl() const
Definition: blpapi_name.h:403
int blpapi_Int32_t
Definition: blpapi_types.h:67
struct blpapi_Name blpapi_Name_t
Definition: blpapi_types.h:154
#define BLPAPI_CALL_EVENTFORMATTER_APPENDRECAPMESSAGESEQ(a1, a2, a3, a4, a5)
Definition: blpapi_call.h:358
int blpapi_Bool_t
Definition: blpapi_types.h:62
blpapi_Float32_t Float32
Definition: blpapi_types.h:473
A component which defines events related operations.
struct blpapi_SchemaElementDefinition blpapi_SchemaElementDefinition_t
Definition: blpapi_types.h:191
static void throwOnError(int errorCode)
Definition: blpapi_exception.h:526
const blpapi_Topic_t * impl() const
Definition: blpapi_topic.h:221
#define BLPAPI_CALL_EVENTFORMATTER_SETVALUENULL(a1, a2, a3)
Definition: blpapi_call.h:409
blpapi_Datetime_t & rawValue()
Definition: blpapi_datetime.h:1952
Definition: blpapi_correlationid.h:201
Provide representation of a Topic.
blpapi_Int64_t Int64
Definition: blpapi_types.h:471
struct blpapi_Topic blpapi_Topic_t
Definition: blpapi_dispatchtbl.h:75
Definition: blpapi_datetime.h:102
struct blpapi_EventFormatter blpapi_EventFormatter_t
Definition: blpapi_types.h:145
double blpapi_Float64_t
Definition: blpapi_types.h:72
Definition: blpapi_topic.h:114
Fragment
Definition: blpapi_message.h:171
long long blpapi_Int64_t
Definition: blpapi_types.h:69
Definition: blpapi_event.h:196
float blpapi_Float32_t
Definition: blpapi_types.h:71
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
Definition: blpapi_datetime.h:245
Provide functions for dispatchtbl.
blpapi_Event_t * impl() const
Definition: blpapi_event.h:553
Definition: blpapi_datetime.h:115