BLPAPI C++  3.22.1
blpapi_testutil.h File Reference

Provides static utility for unit testing BLPAPI applications. More...

#include <blpapi_correlationid.h>
#include <blpapi_datetime.h>
#include <blpapi_defs.h>
#include <blpapi_event.h>
#include <blpapi_messageformatter.h>
#include <blpapi_service.h>
#include <blpapi_streamproxy.h>
#include <blpapi_topic.h>
#include <blpapi_types.h>
#include <cassert>
#include <cstdio>
#include <fstream>
#include <vector>

Go to the source code of this file.

Classes

class  MessageProperties
 
class  TestUtil
 

Namespaces

 BloombergLP
 
 BloombergLP::blpapi
 
 BloombergLP::blpapi::test
 

Typedefs

typedef test::TestUtil TestUtil
 

Functions

int blpapi_TestUtil_createEvent (blpapi_Event_t **event, int eventType)
 
int blpapi_TestUtil_deserializeService (const char *schema, size_t schemaLength, blpapi_Service_t **service)
 
int blpapi_TestUtil_serializeService (blpapi_StreamWriter_t streamWriter, void *stream, const blpapi_Service_t *service)
 
int blpapi_TestUtil_appendMessage (blpapi_MessageFormatter_t **formatter, blpapi_Event_t *event, const blpapi_SchemaElementDefinition_t *messageType, const blpapi_MessageProperties_t *properties)
 
int blpapi_TestUtil_createTopic (blpapi_Topic_t **topic, const blpapi_Service_t *service, int isActive)
 
int blpapi_TestUtil_getAdminMessageDefinition (blpapi_SchemaElementDefinition_t **definition, blpapi_Name_t *messageName)
 
int blpapi_MessageProperties_create (blpapi_MessageProperties_t **messageProperties)
 
void blpapi_MessageProperties_destroy (blpapi_MessageProperties_t *messageProperties)
 
int blpapi_MessageProperties_copy (blpapi_MessageProperties_t **dest, const blpapi_MessageProperties_t *src)
 
int blpapi_MessageProperties_assign (blpapi_MessageProperties_t *lhs, const blpapi_MessageProperties_t *rhs)
 
int blpapi_MessageProperties_setCorrelationIds (blpapi_MessageProperties_t *messageProperties, const blpapi_CorrelationId_t *correlationIds, size_t numCorrelationIds)
 
int blpapi_MessageProperties_setRecapType (blpapi_MessageProperties_t *messageProperties, int recap, int fragment)
 
int blpapi_MessageProperties_setTimeReceived (blpapi_MessageProperties_t *messageProperties, const blpapi_HighPrecisionDatetime_t *timestamp)
 
int blpapi_MessageProperties_setService (blpapi_MessageProperties_t *messageProperties, const blpapi_Service_t *service)
 
int blpapi_MessageProperties_setRequestId (blpapi_MessageProperties_t *messageProperties, const char *requestId)
 

Detailed Description

Provides static utility for unit testing BLPAPI applications.

Function Documentation

◆ blpapi_MessageProperties_assign()

int blpapi_MessageProperties_assign ( blpapi_MessageProperties_t lhs,
const blpapi_MessageProperties_t rhs 
)

◆ blpapi_MessageProperties_copy()

int blpapi_MessageProperties_copy ( blpapi_MessageProperties_t **  dest,
const blpapi_MessageProperties_t src 
)

◆ blpapi_MessageProperties_create()

int blpapi_MessageProperties_create ( blpapi_MessageProperties_t **  messageProperties)

◆ blpapi_MessageProperties_destroy()

void blpapi_MessageProperties_destroy ( blpapi_MessageProperties_t messageProperties)

◆ blpapi_MessageProperties_setCorrelationIds()

int blpapi_MessageProperties_setCorrelationIds ( blpapi_MessageProperties_t messageProperties,
const blpapi_CorrelationId_t *  correlationIds,
size_t  numCorrelationIds 
)

◆ blpapi_MessageProperties_setRecapType()

int blpapi_MessageProperties_setRecapType ( blpapi_MessageProperties_t messageProperties,
int  recap,
int  fragment 
)

◆ blpapi_MessageProperties_setRequestId()

int blpapi_MessageProperties_setRequestId ( blpapi_MessageProperties_t messageProperties,
const char *  requestId 
)

◆ blpapi_MessageProperties_setService()

int blpapi_MessageProperties_setService ( blpapi_MessageProperties_t messageProperties,
const blpapi_Service_t service 
)

◆ blpapi_MessageProperties_setTimeReceived()

int blpapi_MessageProperties_setTimeReceived ( blpapi_MessageProperties_t messageProperties,
const blpapi_HighPrecisionDatetime_t timestamp 
)

◆ blpapi_TestUtil_appendMessage()

int blpapi_TestUtil_appendMessage ( blpapi_MessageFormatter_t **  formatter,
blpapi_Event_t event,
const blpapi_SchemaElementDefinition_t messageType,
const blpapi_MessageProperties_t properties 
)

◆ blpapi_TestUtil_createEvent()

int blpapi_TestUtil_createEvent ( blpapi_Event_t **  event,
int  eventType 
)

◆ blpapi_TestUtil_createTopic()

int blpapi_TestUtil_createTopic ( blpapi_Topic_t **  topic,
const blpapi_Service_t service,
int  isActive 
)

◆ blpapi_TestUtil_deserializeService()

int blpapi_TestUtil_deserializeService ( const char *  schema,
size_t  schemaLength,
blpapi_Service_t **  service 
)

◆ blpapi_TestUtil_getAdminMessageDefinition()

int blpapi_TestUtil_getAdminMessageDefinition ( blpapi_SchemaElementDefinition_t **  definition,
blpapi_Name_t messageName 
)

◆ blpapi_TestUtil_serializeService()

int blpapi_TestUtil_serializeService ( blpapi_StreamWriter_t  streamWriter,
void *  stream,
const blpapi_Service_t service 
)