#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) |
| 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.
| blpapi::test::MessageProperties::MessageProperties | ( | ) |
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".
| blpapi::test::MessageProperties::MessageProperties | ( | const MessageProperties & | original | ) |
Creates a MessageProperties from original.
| blpapi::test::MessageProperties::~MessageProperties | ( | ) |
Destroys this MessageProperties.
| MessageProperties& blpapi::test::MessageProperties::operator= | ( | const MessageProperties & | rhs | ) |
Make this MessageProperties same as rhs.
| MessageProperties& blpapi::test::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& blpapi::test::MessageProperties::setCorrelationIds | ( | const std::vector< CorrelationId > & | correlationIds | ) |
Sets the CorrelationId property. correlationIds provides the CorrelationId to be added.
| MessageProperties& blpapi::test::MessageProperties::setCorrelationId | ( | const CorrelationId & | correlationId | ) |
Equivalent to setCorrelationIds(&correlationId, 1).
| MessageProperties& blpapi::test::MessageProperties::setRecapType | ( | Message::RecapType::Type | recapType, | |
| Message::Fragment | fragmentType = Message::FRAGMENT_NONE | |||
| ) |
Sets the RecapType and FragmentType properties.
| MessageProperties& blpapi::test::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.
| MessageProperties& blpapi::test::MessageProperties::setService | ( | const Service & | service | ) |
Sets the service property.
| blpapi_MessageProperties_t* blpapi::test::MessageProperties::handle | ( | ) | const |
Return the handle of the current MessageProperties. For internal use only.
1.7.1