Click or drag to resize

DomainParticipantCreateMultiTopic Method

Creates a MultiTopic. A MultiTopic can be used to subscribe to multiple topics and combine/filter the received data into a resulting type. In particular, MultiTopic provides a content-based subscription mechanism.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public MultiTopic CreateMultiTopic(
	string name,
	string typeName,
	string subscriptionExpression,
	params string[] expressionParameters
)

Parameters

name
Type: SystemString
The name of the MultiTopic.
typeName
Type: SystemString
The type name used for the MultiTopic.
subscriptionExpression
Type: SystemString
The subscription expression used for the MultiTopic.
expressionParameters
Type: SystemString
The collection of parameters to be used in the subscription expression.

Return Value

Type: MultiTopic
The newly created MultiTopic on success, otherwise .
Remarks

The resulting type is specified by the typeName argument. Prior to creating a MultiTopic the type must have been registered. This is done using the RegisterType operation on a derived class of the TypeSupport interface.

The list of topics and the logic used to combine filter and re-arrange the information from each Topic are specified using the subscriptionExpression and expressionParameters arguments.

See Also