BLPAPI C++
3.22.1
|
#include <blpapi_testutil.h>
Public Member Functions | |
MessageProperties () | |
MessageProperties (const MessageProperties &original) | |
~MessageProperties () | |
MessageProperties & | operator= (const MessageProperties &rhs) |
MessageProperties & | setCorrelationIds (const blpapi_CorrelationId_t *correlationIds, size_t correlationIdCount) |
MessageProperties & | setCorrelationIds (const std::vector< CorrelationId > &correlationIds) |
MessageProperties & | setCorrelationId (const CorrelationId &correlationId) |
MessageProperties & | setRecapType (Message::RecapType::Type recapType, Message::Fragment fragmentType=Message::FRAGMENT_NONE) |
MessageProperties & | setTimeReceived (const Datetime &timeReceived) |
MessageProperties & | setService (const Service &service) |
MessageProperties & | setRequestId (const char *requestId) |
blpapi_MessageProperties_t * | handle () const |
This class represents properties of a message that are not part of the message contents, for example the correlation ids, or timestamp.
Creates a MessageProperties
with default values. Default value for CorrelationId
property is an empty vector. Default value for RecapType
property is Message::RecapType::e_none
. Default value for FragmentType
property is Message::FRAGMENT_NONE
. Value for Service
and timestamp is "unset".
MessageProperties | ( | const MessageProperties & | original | ) |
Creates a MessageProperties
from original
.
~MessageProperties | ( | ) |
Destroys this MessageProperties
.
blpapi_MessageProperties_t * handle | ( | ) | const |
Return the handle of the current MessageProperties
. For internal use only.
MessageProperties & operator= | ( | const MessageProperties & | rhs | ) |
Make this MessageProperties
same as rhs
.
MessageProperties & setCorrelationId | ( | const CorrelationId & | correlationId | ) |
Equivalent to setCorrelationIds(&correlationId, 1)
.
MessageProperties & setCorrelationIds | ( | const blpapi_CorrelationId_t * | correlationIds, |
size_t | correlationIdCount | ||
) |
Sets the CorrelationId
property. correlationIdCount
provides the number of correlationIds
to be added. The behavior is undefined unless correlationIds
points to an array of at least correlationIdCount
elements. The default value of CorrelationId
property is an empty vector.
MessageProperties & setCorrelationIds | ( | const std::vector< CorrelationId > & | correlationIds | ) |
Sets the CorrelationId
property. correlationIds
provides the CorrelationId
to be added.
MessageProperties & setRecapType | ( | Message::RecapType::Type | recapType, |
Message::Fragment | fragmentType = Message::FRAGMENT_NONE |
||
) |
Sets the RecapType
and FragmentType
properties.
MessageProperties & setRequestId | ( | const char * | requestId | ) |
Sets the request id property. A copy of this string is expected to be returned by Message::getRequestId()
. If requestId
is empty or null, the method throws.
MessageProperties & setService | ( | const Service & | service | ) |
Sets the service property.
MessageProperties & setTimeReceived | ( | const Datetime & | timeReceived | ) |
Sets the time received property. The default timestamp is "unset", so attempting to retrieve the timestamp of a message with default properties will throw an exception.