Click or drag to resize

DomainParticipantCreateTopic Method (String, String, TopicListener, StatusMask)

Creates a Topic with the default QoS policies and attaches to it the specified TopicListener.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public Topic CreateTopic(
	string topicName,
	string typeName,
	TopicListener listener,
	StatusMask statusMask
)

Parameters

topicName
Type: SystemString
The name for the new topic.
typeName
Type: SystemString
The name of the type which the new Topic will be bound.
listener
Type: OpenDDSharp.DDSTopicListener
The TopicListener to be attached to the newly created Topic.
statusMask
Type: OpenDDSharp.DDSStatusMask
The StatusMask of which status changes the listener should be notified.

Return Value

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

The created Topic belongs to the DomainParticipant that is its factory.

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

See Also