Determine if a type has been previously registered

4 posts / 0 new
Last post
Offline
Last seen: 1 year 1 month ago
Joined: 10/23/2013
Posts: 43
Determine if a type has been previously registered

Hello,

Is there an API that can be used to determine if a type has been previously registered via DDS_DomainParticipantFactory_register_type_support()?

Thanks.

Mark.

Organization:
irwin's picture
Offline
Last seen: 3 years 8 months ago
Joined: 08/14/2010
Posts: 42

No there is no direct way tell id a type is registered. If you call it again no action will be taken and a RETURN_CODE_OK will be returned.

 

Offline
Last seen: 1 year 1 month ago
Joined: 10/23/2013
Posts: 43

Thanks for the quick response.  I was hoping to remove the following warning message that occurs when  calling DDS_DomainParticipantFactory_register_type_support() for a  previously registered type.  Maybe a future enhancement to either provide an API to check for existence or to only output this status information when verbose logging is enabled.

 

Type registration information already exists for registered type name "NonScalarType"
DDS_FactoryXmlPlugin_addUserTypeInfo:!add user type information for registered type name "NonScalarType"
DDS_DomainParticipantFactory_register_type_support:!Register type support with name: NonScalarType