Classes | Namespaces | Functions

blpapi_testutil.h File Reference

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

Go to the source code of this file.

Classes

class  blpapi::test::MessageProperties
class  blpapi::test::TestUtil

Namespaces

namespace  blpapi
namespace  blpapi::test

Functions

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

Detailed Description

Provides static utility for unit testing BLPAPI applications.


Function Documentation

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