|
DomainParticipantCreateTopic Method (String, String, TopicQos, TopicListener)
|
Namespace:
OpenDDSharp.DDS
Assembly:
OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax public Topic CreateTopic(
string topicName,
string typeName,
TopicQos qos,
TopicListener listener
)
Public Function CreateTopic (
topicName As String,
typeName As String,
qos As TopicQos,
listener As TopicListener
) As Topic
public:
Topic^ CreateTopic(
String^ topicName,
String^ typeName,
TopicQos^ qos,
TopicListener^ listener
)
member CreateTopic :
topicName : string *
typeName : string *
qos : TopicQos *
listener : TopicListener -> Topic
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. - qos
- Type: OpenDDSharp.DDSTopicQos
The TopicQos policies to be used for creating the new Topic. - listener
- Type: OpenDDSharp.DDSTopicListener
The TopicListener to be attached to the newly created Topic.
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.
If the specified QoS policies are not consistent, the operation will fail and no Topic will be created.
See Also